Skip to Content
Simpang Router

opencode

Add Simpang as a provider in opencode.

In opencode.json (project) or ~/.config/opencode/opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "simpang": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Simpang Router",
      "options": {
        "baseURL": "https://simpang.zakiego.com/api/v1",
        "apiKey": "{env:SIMPANG_API_KEY}"
      },
      "models": {
        "claude-sonnet-4-5-20250929": { "name": "Claude Sonnet 4.5" },
        "claude-haiku-4-5-20251001": { "name": "Claude Haiku 4.5" }
      }
    }
  }
}
export SIMPANG_API_KEY=sk-sp-...
opencode

Pick a Simpang model with /models.