Open source

OpenCode

Open-source terminal agent with a provider block per model.

Step by step

01
Get your key
Redeem a voucher at /redeem and copy the key.
02
Add the provider
Put the block below in opencode.json (project root or ~/.config/opencode/).
03
Pick a model
List any /models id under the provider's models and set it as "model".
04
Run opencode
Start it and confirm the model answers.
Protocol
OpenAI Chat Completions
Configured in
opencode.json
Base URL
https://api.luxechain.si/v1

Copy this

opencode
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "luxechain": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "luxechain",
      "options": {
        "baseURL": "https://api.luxechain.si/v1",
        "apiKey": "lxc_live_YOUR_KEY"
      },
      "models": {
        "claude-opus-4.8": { "name": "Claude Opus 4.8" },
        "gpt-6-luna": { "name": "GPT-6 Luna" },
        "gemini-3.8-flash": { "name": "Gemini 3.8 Flash" },
        "grok-4.7": { "name": "Grok 4.7" }
      }
    }
  },
  "model": "luxechain/claude-opus-4.8"
}
The base URL here must INCLUDE /v1, OpenCode resolves paths relative to it.

← All tools Get tokens