Zum Inhalt springen

Integrationsanleitung

Cline & Roo Code Custom API Provider Anleitung (/v1 & /anthropic)

Verbinden Sie Cline und Roo Code in VS Code über OpenAI Compatible (https://proxystacks.com/v1) oder natives Anthropic (https://proxystacks.com/anthropic) und kombinieren Sie funsion-sonnet-5-5 (-50 %) und gpt-6.1-sol (-30 %) mit deepseek-v4.1-flash ($0.18/1M) und glm-5.3 ($0.98/1M).

Einrichtung

  1. 1

    Erstellen Sie einen Relay-API-Schlüssel (sk-relay-...) in der Konsole; ein Prepaid-Guthaben (ab US$10) deckt /v1 und /anthropic gleichermaßen ab.

  2. 2

    Wählen Sie in VS Code Cline oder Roo Code OpenAI Compatible mit https://proxystacks.com/v1 oder Anthropic mit eigener Base URL https://proxystacks.com/anthropic.

  3. 3

    Tragen Sie funsion-sonnet-5-5, gpt-6.1-sol, deepseek-v4.1-flash oder glm-5.3 als Model ID ein und speichern Sie getrennte Plan- und Act-Profile (Kontext 1.000.000, Max Output 64.000).

Konfiguration

deepseek-v4.1-flash
VS Code Cline → API Provider
{
  "apiProvider": "openai",
  "openAiBaseUrl": "https://proxystacks.com/v1",
  "openAiApiKey": "sk-relay-your-key",
  "openAiModelId": "deepseek-v4.1-flash",
  "openAiStreamingEnabled": true
}

Unterstützt sowohl OpenAI-Compatible- (/v1) als auch native Anthropic-Profile (/anthropic) für Plan/Act-Modellprofile in Cline & Roo Code.

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

Projektspezifische Konfiguration oder Profile mit Umgebungsvariablen für Funsion 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.

Cline / Roo Code Profiles (/v1 & /anthropic)
{
  // Cline / Roo Code multi-profile setup (/anthropic + /v1; CN edge: https://hk.proxystacks.com)
  "providerProfiles": {
    "currentApiConfigName": "relay-claude-agent",
    "apiConfigs": {
      "relay-claude-agent": {
        // Native Anthropic Messages API — 50% off Claude 5.5 benchmark
        "apiProvider": "anthropic",
        "anthropicBaseUrl": "https://proxystacks.com/anthropic",
        "apiKey": "sk-relay-your-key",
        "apiModelId": "funsion-sonnet-5-5",
        "modelMaxTokens": 64000
      },
      "relay-gpt-architect": {
        // OpenAI-compatible /v1 — GPT-6.1 Sol (-30%) for Plan / Architect mode
        "apiProvider": "openai",
        "openAiBaseUrl": "https://proxystacks.com/v1",
        "openAiApiKey": "sk-relay-your-key",
        "openAiModelId": "gpt-6.1-sol",
        "openAiCustomModelInfo": { "contextWindow": 1000000, "maxTokens": 64000 }
      },
      "relay-deepseek-act": {
        // $0.18/1M input — high-speed Act / bulk file edits
        "apiProvider": "openai",
        "openAiBaseUrl": "https://proxystacks.com/v1",
        "openAiApiKey": "sk-relay-your-key",
        "openAiModelId": "deepseek-v4.1-flash",
        "openAiCustomModelInfo": { "contextWindow": 1000000, "maxTokens": 64000 }
      },
      "relay-glm-repo": {
        // $0.98/1M input — 1M context full-repo comprehension
        "apiProvider": "openai",
        "openAiBaseUrl": "https://proxystacks.com/v1",
        "openAiApiKey": "sk-relay-your-key",
        "openAiModelId": "glm-5.3",
        "openAiCustomModelInfo": { "contextWindow": 1000000, "maxTokens": 64000 }
      }
    }
  }
}

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

Sollte ich in Cline und Roo Code OpenAI Compatible (/v1) oder Anthropic (/anthropic) wählen?

Beide Endpunkte funktionieren mit demselben sk-relay-... Schlüssel. Nutzen Sie Anthropic mit https://proxystacks.com/anthropic für funsion-sonnet-5-5 (-50 %) inklusive nativem Prompt-Caching und OpenAI Compatible mit https://proxystacks.com/v1 für gpt-6.1-sol (-30 %), deepseek-v4.1-flash ($0.18/1M) sowie glm-5.3 ($0.98/1M).

Wie kombiniere ich Plan- & Act-Modelle (bzw. Architect & Code in Roo Code) kostensparend?

Legen Sie zwei Profile an: funsion-sonnet-5-5 (-50 %) oder gpt-6.1-sol (-30 %) für Plan / Architect und deepseek-v4.1-flash ($0.18/1M, Off-Peak $0.0895/1M) oder glm-5.3 ($0.98/1M) für Act / Code.

Wie verhindere ich abgeschnittene Datei-Diffs in Cline / Roo Code?

Aktivieren Sie in den Modelleinstellungen (openAiCustomModelInfo) Streaming und setzen Sie Context Window auf 1000000 sowie Max Output Tokens auf 64000.

Alle Dokumente