Continue
Connect Continue in VS Code or JetBrains to Inference.net using config.yaml, verified 1M-context coding models, autocomplete roles, and prompt caching.
Last updated
Connect Continue in VS Code or JetBrains to Inference.net by adding provider: openai entries with apiBase: https://api.inference.net/v1 in ~/.continue/config.yaml. One API key powers chat, edit, apply, and tab autocomplete across verified DeepSeek, GLM, and Kimi models.
Quick configuration
Create a free account at /register and generate a project key in API keys.
| Continue setting | Value |
|---|---|
provider | openai |
apiBase | https://api.inference.net/v1 |
US-only apiBase (optional) | https://us.api.inference.net/v1 |
apiKey | Your Inference.net API key (inf_sk_...) |
| Chat / edit / apply models | deepseek-v4.1-flash-1017, glm-5.3, moonshotai/kimi-k3.1-pro |
| Fast autocomplete model | deepseek-v4.1-flash-1017 or glm-5.3-flash |
Copy-paste ~/.continue/config.yaml
Open the Continue sidebar, click the gear icon to open ~/.continue/config.yaml, and paste the configuration below. Replace inf_sk_... with your key from API keys (or reference a Continue secret) and never commit API keys to git.
name: Inference.net Coding Agent
version: 1.0.0
schema: v1
models:
- name: DeepSeek V4.1 Flash (Chat & Edit)
provider: openai
model: deepseek-v4.1-flash-1017
apiBase: https://api.inference.net/v1
apiKey: inf_sk_...
capabilities:
- tool_use
- image_input
defaultCompletionOptions:
contextLength: 1040000
maxTokens: 16384
requestOptions:
headers:
x-inference-task-id: continue
roles:
- chat
- edit
- apply
- name: Kimi K3.1 Pro (Architecture & Refactors)
provider: openai
model: moonshotai/kimi-k3.1-pro
apiBase: https://api.inference.net/v1
apiKey: inf_sk_...
capabilities:
- tool_use
- image_input
defaultCompletionOptions:
contextLength: 1048576
maxTokens: 16384
requestOptions:
headers:
x-inference-task-id: continue
roles:
- chat
- edit
- name: GLM-5.3 (Reasoning & Long Output)
provider: openai
model: glm-5.3
apiBase: https://api.inference.net/v1
apiKey: inf_sk_...
capabilities:
- tool_use
defaultCompletionOptions:
contextLength: 1048576
maxTokens: 16384
requestOptions:
headers:
x-inference-task-id: continue
extraBodyProperties:
prompt_cache_key: continue-glm-workspace
roles:
- chat
- edit
- name: DeepSeek V4.1 Flash (Autocomplete)
provider: openai
model: deepseek-v4.1-flash-1017
apiBase: https://api.inference.net/v1
apiKey: inf_sk_...
defaultCompletionOptions:
contextLength: 1040000
maxTokens: 512
temperature: 0
requestOptions:
headers:
x-inference-task-id: continue-autocomplete
extraBodyProperties:
reasoning_effort: none
roles:
- autocompleteStep-by-step setup in VS Code or JetBrains
Install the Continue extension
Install Continue from the VS Code Marketplace or JetBrains Plugin Marketplace and open the Continue side panel.
Open local config.yaml
Click the assistant selector in the Continue panel, choose Local Config, and click the edit icon to open
~/.continue/config.yaml.Add your Inference.net models and roles
Paste the
models:block above, insert your Inference.net API key, and switchapiBasetohttps://us.api.inference.net/v1if you want US-only routing on eligible hosted models.Save and verify chat plus autocomplete
Save
config.yaml(Continue reloads automatically). Select DeepSeek V4.1 Flash (Chat & Edit) in the model dropdown, ask it to explain a file, and confirm token counts and cached reads under Usage.
Verified models for Continue
All models below are Inference.net-hosted US routes with supports_tools: true verified from GET https://api.inference.net/v1/models on 2026-12-06:
| Model ID | Context / max output | Fresh / Cached / Output ($/1M) | Recommended Continue roles | Model page |
|---|---|---|---|---|
deepseek-v4.1-flash-1017 | 1,040,000 / 393,216 | $0.08 / $0.007 / $0.635 | chat, edit, apply, autocomplete (reasoning_effort: none) | DeepSeek V4.1 Flash |
glm-5.3-flash | 1,048,576 / 262,144 | $0.10 / $0.03 / $0.35 | chat, edit, apply (multimodal) | GLM-5.3 Flash |
glm-5.3 | 1,048,576 / 943,718 | $0.084 / $0.079 / $3.00 | chat, edit (deep reasoning) | GLM-5.3 |
moonshotai/kimi-k3.1-pro | 1,048,576 / 1,048,576 | $1.80 / $0.198 / $9.00 | chat, edit (complex multi-file refactors) | Kimi K3.1 Pro |
moonshotai/kimi-k3 | 1,048,576 / 1,048,576 | $0.245 / $0.224 / $15.00 | chat (input-heavy repo analysis) | Kimi K3 |
Prompt caching and Zero Data Retention notes
- DeepSeek and Kimi use automatic prefix caching: Keep
.continue/rulesand system instructions stable across turns to capture$0.007/1Mcached reads ondeepseek-v4.1-flash-1017(91.3% off fresh input) and$0.198/1Monmoonshotai/kimi-k3.1-pro(89.0% off fresh input). Do not addprompt_cache_keyto DeepSeek entries inconfig.yaml. - GLM models require
prompt_cache_key: KeepextraBodyProperties.prompt_cache_keyset onglm-5.3andglm-5.3-flashblocks so repeated system prompts and context files maintain cache affinity. - Zero Data Retention (ZDR): All five hosted models in the table above run on Inference.net-hosted US infrastructure with Zero Data Retention enabled by default for new teams. Externally routed models (such as
deepseek-v4.1-flash,glm-5.2, orkimi-k2.6) follow upstream provider retention terms. - Model your savings: Estimate multi-turn session spend in the Prompt Cache Calculator or browse the full model catalog.
Verify connectivity with cURL
Test your API key outside the editor if Continue reports a connection error:
export INFERENCE_API_KEY="inf_sk_..."
curl https://api.inference.net/v1/chat/completions \
-H "Authorization: Bearer $INFERENCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4.1-flash-1017",
"messages": [{"role": "user", "content": "Reply with OK."}]
}'Frequently asked questions
Does Continue work with config.json as well as config.yaml?
Continue has standardized on ~/.continue/config.yaml (schema: v1) for model roles (chat, edit, apply, autocomplete). Use config.yaml for all new setups so requestOptions.extraBodyProperties and role assignments load consistently in VS Code and JetBrains.
Why did my glm-5.3 autocomplete block fail with reasoning_effort: none?
glm-5.3 and glm-5.3-flash are always-thinking models supporting low, high, and max reasoning efforts. Use deepseek-v4.1-flash-1017 with reasoning_effort: none for inline autocomplete, and keep glm-5.3 or glm-5.3-flash assigned to chat and edit.
Can I use moonshotai/kimi-k3.1-pro without editing model IDs?
Yes. Enter the exact catalog ID moonshotai/kimi-k3.1-pro (including the moonshotai/ prefix) in the model: field of config.yaml. Verify any live ID at GET https://api.inference.net/v1/models.
How do I track Continue usage separately from other tools?
Keep requestOptions.headers.x-inference-task-id set (for example continue for chat/edit and continue-autocomplete for tab completions) and filter by task ID on your Usage page.
Ready to start? Create a free API key, explore the model catalog, estimate savings in the Prompt Cache Calculator, or compare DeepSeek V4.1 vs Kimi K3 vs GLM-5.3.