Continue
Add FreeModel models to Continue in VS Code or JetBrains with a few lines of config.
Overview
Continue is an open-source assistant for VS Code and JetBrains IDEs with chat, edit and agent modes. Its openai provider accepts a custom apiBase, so FreeModel models are added as ordinary entries in Continue's config file.
Prerequisites
- The Continue extension installed in VS Code or a JetBrains IDE.
- A FreeModel key from Dashboard → API Keys.
- Free accounts: the free models only (for example
gpt-6-luna). Claude Haiku 5.5 and GPT-6.2 Astra are on the free plan; the other Claude models and premium models need a paid plan.
Configuration
Open the config from Continue's settings, or edit the file directly. Current versions use ~/.continue/config.yaml:
name: FreeModel
version: 0.0.1
schema: v1
models:
- name: GPT-6 Luna (FreeModel)
provider: openai
model: gpt-6-luna
apiBase: https://freemodel.in/v1
apiKey: fm_your_key_here
roles:
- chat
- edit
- apply
| Field | Value |
|---|---|
provider | openai — the OpenAI-format provider |
model | an exact FreeModel id |
apiBase | https://freemodel.in/v1 |
apiKey | your fm_… key |
roles | which Continue features may use this model |
name | label in the model picker (free text) |
To add more models, repeat the block with another model id. Keep the file private: it holds your key.
Older versions: config.json
Older Continue versions read ~/.continue/config.json. The same values in that format:
{
"models": [
{
"title": "GPT-6 Luna (FreeModel)",
"provider": "openai",
"model": "gpt-6-luna",
"apiBase": "https://freemodel.in/v1",
"apiKey": "fm_your_key_here"
}
]
}
Agent mode and images
Agent mode needs a model that can call tools, and image input needs a model with vision. Continue may not detect this for a custom model; if agent mode or images are unavailable for your entry, declare it in the YAML with capabilities:
capabilities:
- tool_use
- image_input
Only list what the model card on Models shows: Tools for tool_use, Vision for image_input. gpt-6-luna lists both.
Autocomplete
Tab autocomplete sends a request on almost every pause in typing, which uses tokens quickly and runs into the per-minute rate limit. Use FreeModel models for chat, edit and agent; if you also give one the autocomplete role, expect much higher token use.
Test the connection
Check the values outside the IDE first:
curl https://freemodel.in/v1/chat/completions \
-H "Authorization: Bearer fm_your_key_here" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-6-luna", "messages": [{"role": "user", "content": "Reply with the word ok."}]}'
Then reload the IDE window, select the new model in Continue's model picker and send a short chat message.
Which model ids to use
| Account | Ids |
|---|---|
| Free | gpt-6-luna or another free model: 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. |
| Paid | Any listed id, e.g. claude-sonnet-5 or claude-haiku-5.5 (1.5×) for cheaper edits. |
Common errors and fixes
| Status | What it means | Fix |
|---|---|---|
401 | Key missing, mistyped or revoked. | Check apiKey; YAML needs no quotes, but no stray spaces either. |
403 upgrade_required | Free account, paid model. | Use a free model id, or buy a plan. |
404 model_not_found | model is not a FreeModel id. | Copy it from Models. Unlisted names are not mapped to other models. |
402 | Tokens used up (tokens_exhausted). | Renew or upgrade. Refused requests are not charged. |
429 | Plan requests-per-minute limit, often from autocomplete. | Remove the autocomplete role or wait. |
If apiBase is missing, Continue sends the request to OpenAI and you get an OpenAI error about an invalid key, not a FreeModel one.
Related pages
- Using Coding Agents
- Cline — agent-first alternative in VS Code
- Authentication — rate limits per plan