HERMES NODE
>_
SnipGeekLABS
ZCode Model Settings OpenCode Zen Provider
#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.

<IE/>
Ieproject

Tech Enthusiast & AI Explorer

last month•2 min read

Why Connect OpenCode Zen to ZCode IDE?

If you are using ZCode IDE, configuring custom model providers gives you direct access to high-performance AI models without being locked into a single ecosystem. By bringing your own API keys from OpenCode Zen (or OpenCode Go), you unlock an extensive roster of models, including generous free-tier endpoints. In this practical guide, we walk through how to configure OpenCode Zen inside ZCode IDE and leverage free-tier models featuring up to 1M context windows.
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:
  1. Log in to your OpenCode account at opencode.ai.
  2. Navigate to your Auth / Workspace settings at opencode.ai/auth.
  3. 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 IDContext WindowKey Strengths
deepseek-v4-flash-free1M tokensUltra-fast reasoning, code completion & refactoring
mimo-v2.5-free1M tokensMulti-turn instruction following & long context
nemotron-3.5-lightning-free200K tokensEfficient latency, concise responses
laguna-s-2.1-free200K tokensSolid 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, select deepseek-v4-flash-free from the model selector, and run a test query:
Explain how to implement an async token bucket rate limiter in TypeScript.
Your ZCode environment is now supercharged with versatile AI models!

Share this research

Share on X
Share on LinkedIn
Share on Facebook
Share on Telegram
Share on WhatsApp
Copy Link
<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