Continue Setup: Any Model in VS Code and JetBrains
Point the Continue extension at FreeModel with one models entry. The config.yaml and config.json versions, roles, tool use, and what to check when it fails.
Continue is an open-source AI assistant for VS Code and JetBrains IDEs. It does not lock you to one vendor: every model it talks to is a line in a config file. That makes it one of the easiest tools to connect to FreeModel.
This guide walks through the setup step by step. You need a FreeModel key, the Continue extension, and about five minutes.
Before you start
- Continue installed from the VS Code Marketplace or the JetBrains Marketplace.
- A FreeModel API key. Create one at Dashboard → API Keys. Keys start with
fm_and are shown once. New keys have theinferenceandmodels:readscopes by default; keep both. - A model id. On the free plan (1M tokens after a one-time Telegram verification, no card), pick one of the free models: GPT-6.2 Astra, GPT-6 Luna, Grok 4.6, Grok 4.7, Claude Haiku 5.5, GLM-5.3 Flash, Qwen 3.8 Omni Flash and DeepSeek V4.1 Flash 1017. This guide uses
gpt-6-luna.
Step 1: Check your key from a terminal
Do this first. If it fails here, no editor setting will fix it.
curl https://freemodel.in/v1/models \
-H "Authorization: Bearer fm_your_key_here"
A JSON list of models means the key and base URL are correct. Copy the id of the model you want exactly as it appears.
Step 2: Open the Continue config file
Current Continue versions keep the local configuration in a YAML file in your home directory:
- macOS and Linux:
~/.continue/config.yaml - Windows:
%USERPROFILE%\.continue\config.yaml
The easiest way to open it is from the Continue side panel: open the model or assistant selector and use its settings (gear) link for your local configuration. Older installs use config.json in the same folder instead; that format is covered in Step 4.
Step 3: Add a FreeModel entry to config.yaml
name: My Local Config
version: 0.0.1
schema: v1
models:
- name: FreeModel GPT-6 Luna
provider: openai
model: gpt-6-luna
apiBase: https://freemodel.in/v1
apiKey: fm_your_key_here
roles:
- chat
- edit
- apply
capabilities:
- tool_use
Save the file. Continue reloads it, and FreeModel GPT-6 Luna appears in the model selector.
What each field does
| Field | Value | Why |
|---|---|---|
provider | openai | Uses the OpenAI request format, which FreeModel speaks |
apiBase | https://freemodel.in/v1 | Ends at /v1; Continue adds the endpoint path itself |
model | an id from /v1/models | Sent as-is; must match exactly |
apiKey | your fm_ key | Sent as Authorization: Bearer |
roles | chat, edit, apply | Where Continue may use this model |
capabilities | tool_use | Tells Continue the model can call tools, which agent mode needs |
Only list tool_use for models that have the Tools capability on the models page. If a model also has Vision, you can add image_input so Continue lets you attach images.
Step 4: The older config.json format
If your Continue install still uses ~/.continue/config.json, the same entry looks like this (it is also the example on our coding agents docs page):
{
"models": [
{
"title": "FreeModel",
"provider": "openai",
"model": "gpt-6-luna",
"apiBase": "https://freemodel.in/v1",
"apiKey": "fm_your_key_here"
}
]
}
Use one format, not both. If you are unsure which file your version reads, open the config from the Continue panel and edit whatever file it opens.
Step 5: Add a second model for harder work
Each entry in models is one option in the selector, so you can keep a light model for quick questions and a stronger one for refactors. On a paid plan, every model is available. For example:
- name: FreeModel Claude Sonnet 5
provider: openai
model: claude-sonnet-5
apiBase: https://freemodel.in/v1
apiKey: fm_your_key_here
roles:
- chat
- edit
- apply
capabilities:
- tool_use
- image_input
Claude Sonnet 5 needs a paid plan and uses plan tokens at 3×: one token on that model counts as three plan tokens. Input and output tokens both count. The pricing page lists each plan and the full multiplier table.
What about autocomplete?
Continue can also do tab autocomplete, but that role is usually served by small models made for fill-in-the-middle completion. FreeModel serves chat models through /v1/chat/completions and has no legacy /v1/completions endpoint. Keep the FreeModel entries on chat, edit and apply, and leave autocomplete to whatever you use for it today.
Keep the key out of git
The config file lives in your home directory, not your project, so it is not committed by accident. If you ever copy a model entry into a project-level config, remove the key first. A key that leaks can be revoked in Dashboard → API Keys; create a separate key for Continue so you can revoke it without breaking other tools.
Troubleshooting
| What you see | Likely cause | Fix |
|---|---|---|
| 401 | Key missing, mistyped or revoked | Paste the full fm_ key again, or create a new one |
403 upgrade_required | Free account asked for a paid model | Use a free model, or upgrade |
404 model_not_found | Model id does not match a listed model | Copy the id from /v1/models |
| 404 on every request | apiBase ends in /chat/completions | End it at /v1 |
| 402 | Tokens used up (tokens_exhausted) | Wait for the monthly reset or pick a plan; the rejected request is not charged |
| 429 | Per-key rate limit for your plan | Wait for the time in Retry-After |
| Agent mode never edits files | Model or entry has no tool use | Pick a Tools model and add tool_use |
Empty answers from a reasoning model usually mean the output budget went on thinking. Raise the max tokens setting for that model in Continue if your version exposes one.
FAQ
Does the same config work in VS Code and JetBrains?
Yes. Both Continue extensions read the same configuration folder in your home directory, so one models entry serves both editors.
Can I use FreeModel for Continue autocomplete?
We do not recommend it. FreeModel serves chat models through /v1/chat/completions and has no legacy /v1/completions endpoint, so give FreeModel entries the chat, edit and apply roles.
Which model should a free account use?
Use one of the free models, for example gpt-6-luna. Claude Haiku 5.5 and GPT-6.2 Astra are on the free plan; the other Claude models, GPT-6 Astra, Gemini and the other premium models need a paid plan; a free key gets a 403 upgrade_required error for them.
Why does Continue say the model was not found?
The model value must match an id from GET /v1/models exactly. FreeModel does not map other names such as gpt-4o to a different model, so a typo or an old name returns 404 model_not_found.
More setups: Cline, opencode, and the full list on the coding agents docs page.
Grab a free API key — 1M tokens on 8 free models after a one-time Telegram verification, no card. Every model from $1.20.