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
opencodeConfigure with /connect
Inside OpenCode, run:
text
/connectChoose a custom OpenAI-compatible provider and enter:
| Setting | Value |
|---|---|
| Provider name | APIClaw |
| API Key | Your APIClaw API key from API Keys |
| Base URL | https://apiclaw.biz/v1 |
| Model | Full 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.