OpenCode

Connect OpenCode to APIClaw using a custom OpenAI-compatible provider.

OpenCode is a terminal-first coding agent. Install it, then add APIClaw through the built-in connect flow or your config file.

Install

bash
curl -fsSL https://opencode.ai/install | bash
opencode

Configure with /connect

Inside OpenCode, run:

text
/connect

Choose a custom OpenAI-compatible provider and enter:

SettingValue
Provider nameAPIClaw
API KeyYour APIClaw API key from API Keys
Base URLhttps://apiclaw.biz/v1
ModelFull model ID from the model hub

Verify

Run /models to confirm your model appears, then send a test prompt. Check logs if the request does not show up.