• English
  • OpenCode

    An open-source terminal agent with multi-model switching; connects to ByteSeek via the OpenAI-compatible protocol.

    Install

    Install script
    npm
    Homebrew

    macOS / Linux

    curl -fsSL https://opencode.ai/install | bash

    Website: opencode.ai.

    Prerequisites

    • OpenCode installed (opencode --version prints a version)
    • An OpenAI-format group key from the API Keys page

    Configure

    Edit OpenCode's config (~/.config/opencode/opencode.json) and add a custom provider:

    {
      "provider": {
        "byteseek": {
          "npm": "@ai-sdk/openai-compatible",
          "name": "ByteSeek",
          "options": {
            "baseURL": "https://tokens.byteseek.ai/v1",
            "apiKey": "sk-your-key"
          },
          "models": {
            "claude-sonnet-4": { "name": "Claude Sonnet 4" },
            "deepseek-v3": { "name": "DeepSeek V3" }
          }
        }
      }
    }

    List the models you want under models, with IDs from the model plaza; with a composite key, include the prefix.

    What you should see
    • Start opencode and press Ctrl+X to switch models — the list shows the byteseek provider and your configured models;
    • The bottom-right corner shows the current model name;
    • A test message returns normally with no auth errors.

    Verify

    Start OpenCode, switch to a ByteSeek model in the picker and send a message. Charges appear on the usage page.

    Common issues

    SymptomFix
    401Check the apiKey field is complete
    Model missing from the listNot registered under models, or not in the key's group
    403Group / model / format mismatch, see Error Codes
    © 2026 ByteSeek Limited. All rights reserved.TermsPrivacyDisclaimer