Documentation / Connect

Connect → VS Code

Use AxForge with VS Code

Our AxForge extension puts our chat models in the model picker of VS Code's chat. Install it, paste your key once, and pick a model. When we add a model, it shows up there by itself.

Before you start
  • An AxForge API key. Get one (a minute).
  • VS Code 1.104 or newer. This guide was tried with VS Code 1.146 and the AxForge extension 0.1.0 on 2026-11-20. It worked without a GitHub sign-in.

Set it up

  1. Install the AxForge extension

    Open Extensions (Ctrl+Shift+X, Cmd+Shift+X on a Mac), search axforge and click Install. Or install it from its page on the VS Code Marketplace.

    VS Code's Extensions view searched for axforge, with the AxForge extension and its Install button marked
  2. Trust the publisher

    The first time you install an extension from a publisher, VS Code asks whether you trust it. Click Trust Publisher & Install.

    VS Code asking whether you trust the publisher AxForge, with Trust Publisher and Install marked
  3. Paste your key

    Press Ctrl+Shift+P (Cmd+Shift+P on a Mac), run AxForge: Set your API key, paste your key and press Enter. VS Code keeps it in its own secret store and shows it as dots. If you have set AXFORGE_API_KEY for our other guides, the extension uses it and does not ask.

    VS Code asking for your AxForge API key, the key shown as dots
  4. Pick a model in the chat

    Open the chat (Chat: Open Chat) and click the model button under the message box. The AxForge tab lists our chat models.

    VS Code's chat model picker on its AxForge tab, with GLM-5.3-Flash marked above MiMo-V2.6-Flash, Qwen3.8 27B and Qwen3.8 Flash Next
  5. Ask something

    The answer comes from your AxForge key.

    VS Code's chat with a question about base URLs and a one-sentence answer

Which model for what. The extension's commands are AxForge: Set your API key and AxForge: Remove your API key. It talks only to api.axforge.ai and sends no telemetry.

The other way: VS Code's Custom Endpoint, by hand

VS Code's chat can also use any OpenAI-compatible service through its own Custom Endpoint provider, with no extension. You write the model list yourself, and a model we add later has to be added by hand too. These steps were tried with VS Code 1.141 on 2026-10-17.

  1. Add a Custom Endpoint

    Press Ctrl+Shift+P (Cmd+Shift+P on a Mac) and run Chat: Manage Language Models. Click Add Models, then Custom Endpoint.

    VS Code's Language Models window with Add Models open, and Custom Endpoint marked in its list
  2. Name it and paste your key

    Type AxForge as the group name and press Enter. Then paste your key and press Enter. VS Code keeps the key in its own secret store and shows it as dots.

    VS Code asking for the API key, the key shown as dots
  3. Choose Chat Completions

    VS Code asking for the API type, with Chat Completions marked
  4. Add the models

    VS Code opens chatLanguageModels.json with a group for AxForge. Keep its apiKey line as it is (that is VS Code's pointer to your stored key) and make "models" this list, then save:

    "models": [
        { "id": "qwen3.8-27b", "name": "Qwen3.8 27B", "url": "https://api.axforge.ai/v1/chat/completions",
          "toolCalling": true, "vision": true, "maxInputTokens": 245760, "maxOutputTokens": 16384 },
        { "id": "glm-5.3-flash", "name": "GLM-5.3-Flash", "url": "https://api.axforge.ai/v1/chat/completions",
          "toolCalling": true, "vision": true, "maxInputTokens": 245760, "maxOutputTokens": 16384 },
        { "id": "mimo-v2.6-flash", "name": "MiMo-V2.6-Flash", "url": "https://api.axforge.ai/v1/chat/completions",
          "toolCalling": true, "vision": true, "maxInputTokens": 245760, "maxOutputTokens": 16384 }
    ]

    The url is the whole address, /chat/completions included. Input and output together make 262,144 tokens, and each of the three reads at least that at once.

    chatLanguageModels.json in VS Code with the AxForge group, the apiKey reference and the three models
  5. Pick the model in the chat

    Open the chat (Chat: Open Chat), click the model name under the message box and type Qwen. Our models are under Other Models.

    VS Code's chat model picker searched for Qwen, with Qwen3.8 27B from AxForge marked and its 262K context shown
  6. Ask something

    The answer comes from your AxForge key. The name under the message box says which model answered.

    VS Code's chat with a question about base URLs and a two-sentence answer, Qwen3.8 27B under the message box

The settings, by hand

FieldValue
ProviderCustom Endpoint
API typeChat Completions
url (each model)https://api.axforge.ai/v1/chat/completions
idqwen3.8-27b, glm-5.3-flash, mimo-v2.6-flash
toolCallingtrue (all three)
visiontrue (all three)
maxInputTokens · maxOutputTokens245760 · 16384

Which model for what: qwen3.8-27b is the everyday default and reads images, glm-5.3-flash thinks before it answers, mimo-v2.6-flash is the fastest.

VS Code may show Set BYOK utility models. That offers to use your own models also for its small background jobs, such as chat titles. It is not needed for the chat to work.

Check that it works

The picker shows our models (on its AxForge tab with the extension) and a question gets an answer. The call also shows in the console under API Keys → Recent calls within a minute.

When it does not work

Not sure which it is? The connection doctor makes seven small checks on your key and names the fix: irm https://dev.axforge.ai/assets/axforge-doctor.ps1 | iex in PowerShell, curl -fsSL https://dev.axforge.ai/assets/axforge-doctor.sh | bash on macOS and Linux.

What you seeWhat it meansFix
The extension will not installan older VS Codeupdate VS Code to 1.104 or newer
No AxForge tab in the pickerthe extension has no key yet, or the key was refused (VS Code then shows a message starting AxForge:)run AxForge: Set your API key with the key pasted whole, or make a new key
By hand: no Custom Endpoint under Add Modelsan older VS Codeupdate VS Code
By hand: our models are not in the pickerthe file was not saved, or its JSON has a mistakesave the file; a red underline shows where the mistake is
By hand: 404the url is not the whole addressuse https://api.axforge.ai/v1/chat/completions
By hand: 401the key was refusedadd the group again with the key pasted whole, or make a new key

Test a call says in one click whether a problem is your key, your balance or us.

Ask on the forum Markdown For AI Updated 2026-11-20

Anything unclear on this page?

Ask on the forum. The answer helps the next person too.

Ask about this page