Zum Inhalt springen

Integrationsanleitung

Kilo Code Custom Provider Anleitung (.kilo/kilo.jsonc & VS Code)

Verbinden Sie Kilo Code CLI, VS Code und JetBrains über ./.kilo/kilo.jsonc oder Settings → Providers (https://proxystacks.com/v1) mit aktiviertem tool_call: true: claude-sonnet-5-5 (-50 %) und gpt-6.1-sol (-30 %) für Orchestrator/Architect sowie glm-5.3 ($0.98/1M) und deepseek-v4.1-flash ($0.18/1M) für Code/Debug.

Einrichtung

  1. 1

    Exportieren Sie RELAY_API_KEY="sk-relay-..." aus der ProxyStacks Relay-Konsole (Prepaid-Guthaben ab US$5, 0 % Gebühr, kein Ablaufdatum).

  2. 2

    Erstellen Sie ./.kilo/kilo.jsonc oder ~/.config/kilo/kilo.jsonc mit provider.relay (npm "@ai-sdk/openai-compatible", baseURL "https://proxystacks.com/v1") oder wählen Sie OpenAI Compatible unter Settings → Providers.

  3. 3

    Setzen Sie tool_call: true und limit: { context, output } für jedes Modell (claude-sonnet-5-5, gpt-6.1-sol, glm-5.3, deepseek-v4.1-flash), damit Orchestrator-, Architect-, Code- und Debug-Modi Tools und MCP ausführen können.

Konfiguration

deepseek-v4.1-flash
./.kilo/kilo.jsonc · Providers UI
{
  "provider": {
    "relay": {
      "options": {
        "baseURL": "https://proxystacks.com/v1",
        "apiKey": "sk-relay-your-key"
      },
      "models": {
        "deepseek-v4.1-flash": {
          "name": "deepseek-v4.1-flash",
          "tool_call": true,
          "reasoning": true,
          "limit": {
            "context": 1000000,
            "output": 64000
          }
        }
      }
    }
  }
}

Konfigurieren Sie ./.kilo/kilo.jsonc mit @ai-sdk/openai-compatible und tool_call: true für modusspezifisches Routing in Kilo Code.

Erweiterte Konfiguration: API-Schlüssel per Umgebungsvariable, Multi-Modell-Routing & Token-Limits

Projektspezifische Konfiguration oder Profile mit Umgebungsvariablen für Claude Opus/Sonnet 5.5 (-50 %), GPT-6.1 Sol / GPT-6 Luna (-30 %), DeepSeek V4.1 Flash (-40 %), GLM-5.3 & Kimi K3.1 Pro (-30 %) sowie expliziten Kontext- und Ausgabelimits.

./.kilo/kilo.jsonc & .kilocode/mcp.json
{
  // ./.kilo/kilo.jsonc or ~/.config/kilo/kilo.jsonc — Mode-separated multi-model config + .kilocode/mcp.json
  // APAC / CN low-latency endpoint: "https://hk.proxystacks.com/v1" (or native Anthropic: "https://proxystacks.com/anthropic")
  "provider": {
    "relay": {
      "options": {
        "baseURL": "https://proxystacks.com/v1",
        "apiKey": "{env:RELAY_API_KEY}"
      },
      "models": {
        "claude-sonnet-5-5": {
          "name": "Claude Sonnet 5.5 (-50% · Architect & Orchestrator)",
          "tool_call": true,
          "reasoning": true,
          "limit": { "context": 1000000, "output": 64000 }
        },
        "gpt-6.1-sol": {
          "name": "GPT-6.1 Sol (-30% · Deep Debug)",
          "tool_call": true,
          "reasoning": true,
          "limit": { "context": 1000000, "output": 64000 }
        },
        "deepseek-v4.1-flash": {
          "name": "DeepSeek V4.1 Flash ($0.18/1M · Fast Code Edits)",
          "tool_call": true,
          "limit": { "context": 1000000, "output": 64000 }
        },
        "glm-5.3": {
          "name": "GLM-5.3 ($0.98/1M · 1M Repo Context)",
          "tool_call": true,
          "reasoning": true,
          "limit": { "context": 1000000, "output": 64000 }
        }
      }
    }
  },
  // Project MCP tools (.kilocode/mcp.json or top-level mcp block):
  "mcp": {
    "filesystem": {
      "type": "local",
      "command": ["npx", "-y", "@modelcontextprotocol/server-filesystem", "."],
      "enabled": true
    }
  }
}

Fehlerbehebung

  • 401: Relay-Schlüssel und Authentifizierungsheader prüfen. Keine Geheimnisse an den Support senden.
  • 404: exakte veröffentlichte Modell-ID und dokumentierte Basis-URL verwenden, keinen Upstream-Alias.
  • Für Streaming stream: true setzen. Codex verwendet Responses; disable_response_storage = true beibehalten.

Häufige Fragen

Wo liegen kilo.jsonc und .kilocode/mcp.json bei Kilo Code?

Projektkonfigurationen liegen unter ./.kilo/kilo.jsonc (bzw. ./.kilocode/mcp.json), globale Einstellungen unter ~/.config/kilo/kilo.jsonc.

Warum ist tool_call: true in kilo.jsonc wichtig?

Damit die Modi Orchestrator, Architect, Code und Debug Datei- und Terminal-Werkzeuge sauber aufrufen können.

Alle Dokumente