OpenCode

Prerequisites

Configure via environment variables for Claude model users:

terminal
bash
export ANTHROPIC_BASE_URL=https://api.chuizi.ai/anthropic
export ANTHROPIC_API_KEY=ck-your-key-here

To make this permanent, add to your shell configuration:

terminal
bash
echo 'export ANTHROPIC_BASE_URL=https://api.chuizi.ai/anthropic' >> ~/.zshrc
echo 'export ANTHROPIC_API_KEY=ck-your-key-here' >> ~/.zshrc
source ~/.zshrc

Next Steps