# OpenCode

<div style={{maxWidth: '500px'}}>
![OpenCode model selector listing Opus 5.5, Gemini 4 Carbon, Gemini 4 Argon, Gemini 4 Neon, Gemini 4 Hydrogen, Gemini 3.8 Flash, GPT-6.1 Sol, Grok 4.7, DeepSeek V4.1 Flash, Kimi K3, and Qwen3.8 Max](</docs/_next/static/media/model-selection-multi-provider.42qcw2_31qe3y.jpg>)
</div>

## Credentials [#credentials]

Configure your OpenCode API key at the Project or Workspace level.

You can get an API key from [OpenCode Zen](https://opencode.ai/auth).

You can also run OpenCode on [workspace credits](/docs/workspaces#billing-and-credits) when you haven't connected your own credentials.

## Models [#models]

OpenCode supports models from multiple providers:

**Anthropic**
- **Opus 5.5 (High)** - Most capable Opus-tier model for complex reasoning

**Google**
- **Gemini 4 Carbon** - Google's most capable Gemini model, for complex engineering and long agentic tasks
- **Gemini 4 Argon** - Google's previous flagship reasoning model
- **Gemini 4 Neon** - Google's fast Gemini 4 model for everyday agentic coding
- **Gemini 4 Hydrogen** - Google's lower-cost Gemini 4 model for high-volume coding work
- **Gemini 3.8 Flash** - Google's newest Flash model, for fast iteration

**OpenAI**
- **GPT-6.1 Sol (Xhigh)** - The most capable GPT-6.1 option for complex coding, reasoning, and polish

**Other Providers**
- **Grok 4.7 (High)** - xAI's latest model, for comparing against Grok Build
- **DeepSeek V4.1 Flash** - Fast DeepSeek model for lighter changes
- **Kimi K3** - Moonshot AI's coding model
- **Qwen3.8 Max** - Alibaba's most capable coding model

Learn more about OpenCode Zen in the [OpenCode documentation](https://opencode.ai/docs/zen/).