Continue through zer0pii

מוצג מתוך docs/dev-tools/continue.md. המסמכים מוצגים כפי שנכתבו במאגר הקוד, ברובם באנגלית.

Continue (the open-source IDE extension for VS Code and JetBrains) configures each model with a provider, a key and, for OpenAI-compatible endpoints, a base URL. That is exactly the shape zer0pii needs.

Field names below are from Continue's official documentation, read 2026-09-22:

OpenAI models (verified path)

~/.continue/config.yaml:

models:
  - name: GPT via zer0pii
    provider: openai
    model: gpt-4o
    apiBase: https://api.zer0pii.com/v1
    apiKey: zpii_...
    roles:
      - chat
      - edit
      - apply
    requestOptions:
      headers:
        X-zer0pii-Upstream-Key: sk-...

What each line does:

Streaming and tool calls work through this route.

Anthropic models (documented with a caveat)

Continue's Anthropic provider page does not show apiBase. The config reference lists apiBase as a general per-model override without restricting it to a provider, so the following is expected to work, but it was not confirmed against the Anthropic provider page and you should run verify.md before relying on it:

models:
  - name: Claude via zer0pii
    provider: anthropic
    model: claude-sonnet-4-5
    apiBase: https://api.zer0pii.com/v1
    apiKey: zpii_...
    requestOptions:
      headers:
        X-zer0pii-Upstream-Key: sk-ant-...

Two things to know about this path:

If neither variant works for you, the OpenAI-compatible route above is the verified path.

Legacy config.json

Older Continue installs use ~/.continue/config.json with the same field names in JSON:

{
  "models": [
    {
      "title": "GPT via zer0pii",
      "provider": "openai",
      "model": "gpt-4o",
      "apiBase": "https://api.zer0pii.com/v1",
      "apiKey": "zpii_...",
      "requestOptions": {
        "headers": { "X-zer0pii-Upstream-Key": "sk-..." }
      }
    }
  ]
}

Continue's docs treat config.yaml as current; use it for new setups.

Optional headers

Add these under the same requestOptions.headers block when you need them (source: proxy.py):

Autocomplete and embeddings