OpenCodeconfigurationbuilt-in

/connect

Add a provider and API key to connect a new AI model provider.

When to use

  • Adding OpenAI, Anthropic, or Google credentials
  • Connecting a local Ollama or custom endpoint

More OpenCode commands