# Continue (https://inference.net/docs/integrations/continue)

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](/register/?model=deepseek-v4.1-flash-1017) and generate a project key in [API keys](/dashboard/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](/dashboard/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
```

<Callout title="Disable reasoning for low-latency tab autocomplete" tone="info">

`deepseek-v4.1-flash-1017` thinks by default. Passing `reasoning_effort: none` inside `requestOptions.extraBodyProperties` on your `autocomplete` entry skips reasoning tokens and lowers time to first token for inline completions. Note that `glm-5.3` and `glm-5.3-flash` are always-thinking models (`low`, `high`, `max` only) and do not accept `reasoning_effort: none`.

</Callout>

## Step-by-step setup in VS Code or JetBrains

<Steps>
<Step title="Install the Continue extension">

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

</Step>
<Step title="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`.

</Step>
<Step title="Add your Inference.net models and roles">

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

</Step>
<Step title="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](/dashboard/usage/).

</Step>
</Steps>

## 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](/models/deepseek-v4-1-flash-1017/) |
| `glm-5.3-flash` | 1,048,576 / 262,144 | `$0.10` / `$0.03` / `$0.35` | `chat`, `edit`, `apply` (multimodal) | [GLM-5.3 Flash](/models/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](/models/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](/models/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](/models/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](/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](/tools/prompt-cache-calculator/) or browse the full [model catalog](/models/).

## 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](/dashboard/usage/) page.

Ready to start? [Create a free API key](/register/?model=deepseek-v4.1-flash-1017), explore the [model catalog](/models/), estimate savings in the [Prompt Cache Calculator](/tools/prompt-cache-calculator/), or compare [DeepSeek V4.1 vs Kimi K3 vs GLM-5.3](/guides/deepseek-vs-kimi-vs-glm-coding-agents/).