Install
npm install -g opencode-aiFor other installation methods, see the OpenCode documentation .
Authenticate
Set the API key for your preferred provider:
export ANTHROPIC_API_KEY="sk-ant-..."
export OPENAI_API_KEY="sk-..."See opencode.ai/docs/providers for all supported providers.
Launch
Open a terminal with ⌘+⌥+1, then type opencode.
Last updated on