Your OpenCode loginsas an API.
OpenAI, Anthropic and Gemini compatible apps call plugboard with their own key and use the models you already have in OpenCode.
OpenAI, Anthropic and Gemini compatible apps call plugboard with their own key and use the models you already have in OpenCode.
$ bunx opencode-plugboard@latest init --fast anthropic/claude-haiku-4-5
Added opencode-plugboard@0.69.0 in ~/.config/opencode/opencode.jsonc.
App key for `my-app` (it is also saved in that file; keep the file private): pb_u3oW-g8E3gZ-aA3mduNUm…
$ curl -s 127.0.0.1:4010/v1/chat/completions -H "Authorization: Bearer $KEY" --json '{"model": "fast", "messages": [{"role": "user", "content": "say pong"}]}'
{ "model": "anthropic/claude-haiku-4-5",
"choices": [{ "message": { "role": "assistant", "content": "Pong!" } }],
"usage": { "prompt_tokens": 26, "completion_tokens": 7 } }