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/v1API Key
sk-... (create in Console → API Keys)Recommended
claude-opus-4-8 · claude-sonnet-4-6 · claude-haiku-4-5Setup steps
- OpenCode (
opencode.json) — add an OpenAI-compatible provider withbaseURLending 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": {} }
}
}
}- 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
- Both Base URLs include
/v1(do not add/chat/completions, or you get "Route not found").
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