Skip to content

Guide to Using OpenCode with ZenMux

OpenCode is a terminal-first AI coding agent. Through its integration with ZenMux, you gain access to more powerful models to boost development efficiency.

Install OpenCode

OpenCode offers multiple installation methods. Choose the one that best fits your system environment:

bash
# Use the installation script (recommended)
curl -fsSL https://opencode.ai/install | bash
bash
# Install with npm
npm i -g opencode-ai@latest

# Or install with pnpm
pnpm i -g opencode-ai@latest

# Or install with yarn
yarn global add opencode-ai@latest

# Or install with bun
bun i -g opencode-ai@latest
bash
# Install via Homebrew (macOS and Linux)
brew install sst/tap/opencode
bash
# Install via Scoop
scoop bucket add extras
scoop install extras/opencode

# Or install via Chocolatey
choco install opencode
bash
# Install via paru
paru -S opencode-bin

More Installation Methods

For more detailed installation options and instructions, please refer to the OpenCode official documentation

Configure OpenCode

Sign in and configure ZenMux

After installation, you need to configure OpenCode to use the ZenMux API.

Step 1: Launch OpenCode and sign in

On first use, OpenCode will prompt you to sign in and configure:

bash
opencode auth login

Select ZenMux in the provider selection screen:

OpenCode Login

Important Note

Please ensure you select ZenMux as your API provider, not another vendor.

Step 2: Enter your ZenMux API Key

After selecting ZenMux, you will be prompted to enter your API Key. Please enter your ZenMux API Key (format sk-ai-v1-xxx):

Enter API Key

Get API Key

You can obtain or create your API Key in the ZenMux Console.

Step 3: Choose a model

Once configured, use the /models command to view and select available models:

bash
# Launch OpenCode
opencode

# List available models
/models
Select Model

Supported Models

ZenMux provides a wide range of models for OpenCode. Below is the current list of supported models (continuously updated):

Model Update Notes

The table below lists recommended models that have been verified to work with OpenCode. If you need other models, please contact us via the methods at the bottom of the page. We will provide native support as soon as possible.

No.Model NameModel Slug
1Ling-1Tinclusionai/ling-1t
2Ring-1Tinclusionai/ring-1t
3Claude Haiku 4.5anthropic/claude-haiku-4.5
4Claude Opus 4.1anthropic/claude-opus-4.1
5Claude Sonnet 4.5anthropic/claude-sonnet-4.5
6DeepSeek-V3.2-Exp (Non-thinking Mode)deepseek/deepseek-chat
7Gemini 2.5 Progoogle/gemini-2.5-pro
8KAT-Coder-Pro-V1kat-ai/kat-coder-pro-v1
9Kimi K2 0905moonshotai/kimi-k2-0905
10GPT-5 Codexopenai/gpt-5-codex
11GPT-5openai/gpt-5
12Qwen3 Coder Plusqwen/qwen3-coder-plus
13Grok 4 Fast Non Reasoningx-ai/grok-4-fast-non-reasoning
14Grok 4 Fastx-ai/grok-4-fast
15Grok 4x-ai/grok-4
16Grok Code Fast 1x-ai/grok-code-fast-1
17GLM 4.5 Airz-ai/glm-4.5-air
18GLM 4.6z-ai/glm-4.6

Usage Experience

Once configured, OpenCode delivers powerful AI-assisted coding capabilities:

OpenCode in Action

Troubleshooting

Common Issues

API Key Error

Issue: API Key reported as invalid or unauthorized

Solution:

  • Verify that the ZenMux API Key you entered is correct
  • Confirm the API Key is active and has sufficient balance
  • Check that the API Key format starts with sk-ai-v1-
  • Re-run the opencode command and reconfigure

Contact Us

If you encounter any issues during use, or have suggestions and feedback, please contact us through the following channels:

Get Help

For more contacts and details, visit our Contact Us page.