Docs / OpenCode / Crush

OpenCode / Crush

OpenAI-compatible (with /v1)

OpenCode and Crush are two different terminal coding agents with slightly different configs.

Base URL
https://api.llmapi.pro:99/v1
API Key
sk-... (create in Console → API Keys)
Recommended
claude-opus-4-8 · claude-sonnet-4-6 · claude-haiku-4-5

Setup steps

  1. OpenCode (opencode.json) — add an OpenAI-compatible provider with baseURL ending in /v1, and list models explicitly:
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "llmapi": {
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "https://api.llmapi.pro:99/v1",
        "apiKey": "sk-YOUR_KEY"
      },
      "models": { "claude-opus-4-8": {} }
    }
  }
}
  1. Crush (crush.json) — "type" must be "openai-compat" (the default "openai" will not connect):
{
  "providers": {
    "llmapi": {
      "type": "openai-compat",
      "base_url": "https://api.llmapi.pro:99/v1",
      "api_key": "sk-YOUR_KEY",
      "models": [{ "id": "claude-opus-4-8" }]
    }
  }
}

Notes

Client not listed? Any "OpenAI-compatible" app works: Base URL = https://api.llmapi.pro:99/v1, key = your sk-..., type the model name. Or email [email protected].
Need help? Email [email protected] · Home