Manage OpenCode API upstream
Save profiles with clovapi add, then apply with clovapi switch for OpenCode — official subscriptions or third-party APIs.
Install CLI
$
npm i -g @clovapi/cli$
clovapi add --name prod$
clovapi switch --cli opencode prodAutomatic API format
When switching to OpenCode, clovapi picks the upstream protocol that CLI expects.
openai-chat
/v1/chat/completions · Chat Completions format, compatible with most OpenAI-style SDKs.