Coding Tools

OpenCode

OpenCode supports custom providers using the same openai-completions shape described in OpenClaw.

Installation

macOS / Linux — quick install
curl -fsSL https://opencode.ai/install | bash

Or via a package manager, if you prefer:

Package managers
# npm (any OS, needs Node.js 18+)
npm install -g opencode-ai

# Homebrew (macOS/Linux)
brew install sst/tap/opencode

# Windows
winget install opencode
# or
choco install opencode

Verify with opencode --version, then run opencode to launch the terminal UI.

Setup

opencode config
{
  "provider": {
    "dravenai": {
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "https://api.dravenai.lat/v1",
        "apiKey": "sk-drv-your-api-key"
      },
      "models": {
        "your-model-id": { "name": "Your Model" }
      }
    }
  }
}

Add this to OpenCode's config file, then select your-model-id from its model picker.