Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>Custom AI Chat ProviderNew to Visual Studio Code? Get it now.
Custom AI Chat Provider

Custom AI Chat Provider

Md Murad Hasan Media

|
1 install
| (0) | Free
Use your own OpenAI-compatible AI APIs in VS Code Chat. Add models with per-model base URL and API key.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Custom AI Chat Provider

Use your own OpenAI-compatible AI APIs inside VS Code Chat.

Each model has its own base URL and API key. Manage everything from commands — nothing appears in Settings.

Publisher: Murad Hasan Media
Repository: mdmuradhasanmedia/Custom-AI-Chat-Provider

Features

  • Native VS Code Chat model picker
  • OpenAI-compatible streaming (/chat/completions)
  • Multiple models and multiple endpoints
  • Per-model API keys (VS Code SecretStorage)
  • Models stored in extension state (not Settings UI)
  • Add, fetch, test, and manage models from Command Palette
  • Image / vision input support
  • Tool calling support

Requirements

  • VS Code 1.104.0 or higher
  • An OpenAI-compatible API endpoint

Getting Started

  1. Install the extension from the Marketplace
  2. Open Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
  3. Run Custom AI: Add Model
  4. Enter:
    • Model ID
    • Display name
    • Base URL
    • API key (or skip for local/open servers)
  5. Open Chat and select your model under Custom AI

Commands

Command Purpose
Custom AI: Add Model Add model + base URL + key
Custom AI: Manage Models Add / fetch / key / test / remove
Custom AI: Fetch Models from API Load models from /models
Custom AI: Set Model API Key Set key for one model
Custom AI: Test Connection Test one model
Custom AI: Remove Model Remove one model
Custom AI: List Configured Models List all configured models

API Format

POST {model.baseUrl}/chat/completions
Authorization: Bearer <per-model-key>
Content-Type: application/json

Works with OpenAI-compatible providers such as OpenAI, DeepSeek, local servers (for example Ollama with an OpenAI-compatible endpoint), and similar APIs.

Privacy

  • API keys are stored securely with VS Code SecretStorage
  • Model settings are stored in extension state
  • Requests go only to the base URL you configure

Support

  • Issues: GitHub Issues
  • Source: GitHub Repository

License

MIT © Murad Hasan Media

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft