Skip to contentNewKimi K3.1 Pro is now availableTry it now
Docs / Continue

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 settingValue
provideropenai
apiBasehttps://api.inference.net/v1
US-only apiBase (optional)https://us.api.inference.net/v1
apiKeyYour Inference.net API key (inf_sk_...)
Chat / edit / apply modelsdeepseek-v4.1-flash-1017, glm-5.3, moonshotai/kimi-k3.1-pro
Fast autocomplete modeldeepseek-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.

yaml
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:
      - autocomplete

Step-by-step setup in VS Code or JetBrains

  1. Install the Continue extension

    Install Continue from the VS Code Marketplace or JetBrains Plugin Marketplace and open the Continue side panel.

  2. 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.

  3. Add your Inference.net models and roles

    Paste the models: block above, insert your Inference.net API key, and switch apiBase to https://us.api.inference.net/v1 if you want US-only routing on eligible hosted models.

  4. 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 IDContext / max outputFresh / Cached / Output ($/1M)Recommended Continue rolesModel page
deepseek-v4.1-flash-10171,040,000 / 393,216$0.08 / $0.007 / $0.635chat, edit, apply, autocomplete (reasoning_effort: none)DeepSeek V4.1 Flash
glm-5.3-flash1,048,576 / 262,144$0.10 / $0.03 / $0.35chat, edit, apply (multimodal)GLM-5.3 Flash
glm-5.31,048,576 / 943,718$0.084 / $0.079 / $3.00chat, edit (deep reasoning)GLM-5.3
moonshotai/kimi-k3.1-pro1,048,576 / 1,048,576$1.80 / $0.198 / $9.00chat, edit (complex multi-file refactors)Kimi K3.1 Pro
moonshotai/kimi-k31,048,576 / 1,048,576$0.245 / $0.224 / $15.00chat (input-heavy repo analysis)Kimi K3

Prompt caching and Zero Data Retention notes

  • DeepSeek and Kimi use automatic prefix caching: Keep .continue/rules and system instructions stable across turns to capture $0.007/1M cached reads on deepseek-v4.1-flash-1017 (91.3% off fresh input) and $0.198/1M on moonshotai/kimi-k3.1-pro (89.0% off fresh input). Do not add prompt_cache_key to DeepSeek entries in config.yaml.
  • GLM models require prompt_cache_key: Keep extraBodyProperties.prompt_cache_key set on glm-5.3 and glm-5.3-flash blocks 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, or kimi-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:

bash
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.