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

|
46 installs
| (0) | Free
Use your own OpenAI-compatible AI APIs in VS Code Chat. Add models, set API keys, and manage endpoints from the sidebar.
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 models from the Custom AI activity bar — nothing appears in Settings.

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

Features

  • Activity Bar Model Settings to add, select, test, and remove models
  • Native VS Code Chat model picker under Custom AI
  • 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
  • Azure OpenAI deployment endpoints with configurable api-version

Requirements

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

Getting Started

  1. Install the extension from the Marketplace
  2. Open the Custom AI icon in the Activity Bar (Model Settings)
  3. Click Add (or run Custom AI: Add Model from the Command Palette)
  4. Enter:
    • Model ID
    • Display name
    • Base URL
    • API key (or skip for local/open servers)
  5. Select the model from the dropdown, then use Set key, Test, Fetch, or Remove as needed
  6. In VS Code Chat, pick the same 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
Custom AI: Open Chat Open the Custom AI Model Settings sidebar

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.

For Azure OpenAI, enter the Azure resource endpoint (for example https://RESOURCE.openai.azure.com) and use the deployment name as the model ID. The extension builds the deployment chat URL and adds the selected api-version.

Privacy

  • API keys are stored securely with VS Code SecretStorage
  • Model settings are stored in extension state
  • Empty keys do not send an authentication header
  • Remote plaintext HTTP endpoints require an explicit warning confirmation
  • 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
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft