
#opencode#zcode#tutorial#devops#ai
How to Connect OpenCode Zen Models to ZCode IDE: Free Tier & Setup Guide
Step-by-step tutorial on connecting OpenCode Zen and Go custom model providers to ZCode IDE, featuring free-tier models with up to 1M context.
#Table of Contents
Why Connect OpenCode Zen to ZCode IDE?
Tip
OpenCode Zen provides a unified OpenAI-compatible API endpoint that effortlessly routes requests to top-tier foundation models, making it a frictionless match for ZCode IDE.
Step 1: Obtain Your OpenCode API Key
Before configuring ZCode, grab your API credentials:- Log in to your OpenCode account at opencode.ai.
- Navigate to your Auth / Workspace settings at
opencode.ai/auth. - Generate or copy your API key (formatted as
sk-...).
Step 2: Configure Custom Provider in ZCode
Open ZCode and head over to Model Settings:1
Click on + Add provider under the Custom providers section on the left sidebar.
2
Fill out the configuration parameters as follows:
- Provider Name:
OpenCode Zen - Base URL:
https://opencode.ai/zen/v1 - API format: Select
Chat completions (/chat/completions) - API key: Paste your secret API key
3
Click + Add model to register the models you wish to use.
Step 3: Available Free-Tier Models
Here are the tested free-tier models you can immediately add to your ZCode model list:| Model ID | Context Window | Key Strengths |
|---|---|---|
deepseek-v4-flash-free | 1M tokens | Ultra-fast reasoning, code completion & refactoring |
mimo-v2.5-free | 1M tokens | Multi-turn instruction following & long context |
nemotron-3.5-lightning-free | 200K tokens | Efficient latency, concise responses |
laguna-s-2.1-free | 200K tokens | Solid code debugging & syntax assistance |
Info
If you have an active OpenCode Go subscription or pay-as-you-go credits, you can also add flagship models like
deepseek-v4-pro, glm-5.2, kimi-k3, and qwen3.8-max.Step 4: Test and Verify
Once saved and marked as Enabled, open a new chat window in ZCode, selectdeepseek-v4-flash-free from the model selector, and run a test query:
Explain how to implement an async token bucket rate limiter in TypeScript.Share this research
<IE/>
Written by Ieproject
Tech hobbyist and explorer passionate about DeepSeek V4 Flash, Antigravity AI, OpenCode, Hermes Agent, and modern developer tools.
More Research & Guides


26 days agoIeproject