What is ZCode? Download, CLI, Free Quota & API Guide
As AI coding transitions from simple autocomplete plugins to autonomous end-to-end task execution, standard chat sidebars are no longer sufficient for complex multi-file refactoring and long-horizon engineering. Zhipu AI has officially launched ZCode, a dedicated Agentic Development Environment (ADE) designed to deeply integrate frontier models into every stage of software creation. This comprehensive guide covers what ZCode is, how to download and install it across platforms, the reality of its CLI tooling, its API support architecture, and an overview of its recurring free token events.
💡 Key Highlights
- Core Identity: An official AI coding agent development environment created by Zhipu AI, built for goal-driven autonomous implementation, terminal command execution, automated debugging, and multi-file architecture refactoring.
- Multi-Platform Support: Native desktop clients are available for macOS, Windows, and Linux at the official portal zcode.z.ai.
- Command-Line Ecosystem: The official open-source repository provides zcode-cli runtime source code, alongside community terminal packages. However, the desktop client remains the primary, most complete, and stable interface.
- API Reality Check: ZCode is a developer workbench and client application, not a public commercial API provider. It does not distribute universal OpenAI-compatible API keys. Workloads run on authenticated account quotas or custom user-configured endpoints.
- Recurring Free Quota: Zhipu frequently runs massive free compute campaigns within ZCode, including weekend 300M token drops, off-peak night compute, and holiday gift packs. Registering and installing early secures immediate access to these promotions.
1. What is ZCode? Zhipu's Agentic Development Environment
ZCode is an engineering workspace engineered specifically for developers, categorized as an Agentic Development Environment (ADE). Rather than functioning as a lightweight code completion extension, ZCode is an independent workbench capable of holistic project reasoning and system-level execution.
Under the hood, ZCode is co-optimized with Zhipu's frontier models, including GLM-5.3 and GLM-4. Featuring native 1M token context capacity, ZCode can ingest extensive legacy codebases in a single pass while delivering three fundamental capabilities:
- Goal Mode: Developers declare a high-level objective, such as adding complete integration test coverage to an authentication module and resolving all edge-case failures. The agent plans the workflow, updates files in sequence, runs tests in the built-in terminal, and iterates against errors until the goal is verified.
- Complete Tooling Loop: An integrated code editor, file tree, interactive terminal, Git version control, and real-time runtime preview work in concert, empowering the agent to compile, build, test, and manage dependencies autonomously.
- Extensibility and Protocol Support: Native support for the Model Context Protocol (MCP) and subagent orchestration allows seamless integration with external dev tools and internal documentation repositories.
2. Official Download and Cross-Platform Setup
ZCode is built as a native application for major operating systems, making installation straightforward.
1. Account Setup and Welcome Perks
New developers should register through the official referral channel to lock in newcomer perks and event notifications:
Visit the author's official invitation link: https://zcode.z.ai/invite/XVJNUH5K (Invite Code: XVJNUH5K) to register via phone number or third-party authentication.
2. Download the Client
Visit the official download portal at https://zcode.z.ai. The website automatically identifies your operating system and suggests the appropriate build:
- macOS: Offers native disk images (dmg) for Apple Silicon (M-series) and Intel architectures. Simply drag the application into the Applications directory.
- Windows: Standard 64-bit installers supporting Windows 10 and Windows 11. Run the installer to deploy the workbench.
- Linux: AppImage and deb distributions cater to Ubuntu, Debian, and related distributions.
3. Sign In and Verify Privileges
Launch ZCode and click the sign-in prompt in the upper-right corner or welcome view. Authenticate with your Zhipu account. Once signed in, ZCode syncs available compute packages and promotional tokens automatically, enabling instant development without manual environment variable setup.
3. What is ZCode CLI? Terminal Agent Status and Usage
Developers frequently search for zcode cli to determine whether ZCode offers a terminal-first workflow similar to Claude Code or Codex CLI.
1. Open-Source CLI Runtime
Zhipu open-sources core agent components on GitHub. Within the official repository under apps/zcode-cli/, the codebase includes the Agent CLI and runtime engine. This headless runtime is intended for CI/CD pipelines, containerized build environments, and remote servers where graphical displays are unavailable.
2. Community Terminal Wrappers
Community developers have packaged this agent runtime into terminal user interface (TUI) tools distributed via package managers like npm. These wrappers allow developers to run agent tasks directly from shell environments, inspecting directory contents and executing commands.
3. Recommended Practical Setup
While headless CLI runtimes are valuable for automated pipelines, the official desktop application provides the most stable and feature-rich daily experience. The desktop interface embeds a native terminal alongside human-in-the-loop permission inspection, visual side-by-side diffing, and single-click rollbacks.
4. Can ZCode Be Used as an API? Architecture and Truth
Many developers query zcode api hoping to access a public OpenAI-compatible endpoint or retrieve a ZCode API key.
To clarify unequivocally: ZCode is a client-side development tool and agent harness. It is not an API service provider and does not issue standalone external API keys.
Understanding how compute is provisioned inside and outside ZCode involves three models:
1. Native Client Compute Quota
When running tasks inside the ZCode client, inference consumes compute associated with your authenticated account. Zhipu regularly provisions temporary token packages directly into accounts or deducts from active GLM Coding Plan subscriptions.
2. Bring Your Own Key (BYOK)
ZCode supports custom model integration. If you wish to use other models inside ZCode, navigate to the provider settings in the client to input custom OpenAI-compatible Base URLs and API keys from providers like OpenRouter or DeepSeek.
3. Invoking Zhipu GLM Models in Code
If you need to call Zhipu models in external applications, scripts, or coding environments like Cursor and Claude Code, use Zhipu's official BigModel open platform API:
Base URL: https://open.bigmodel.cn/api/paas/v4
Coding Dedicated URL: https://open.bigmodel.cn/api/coding/paas/v4Avoid unverified reverse-proxy scripts that claim to turn ZCode into a free API server. These methods frequently cause session expiration and trigger account risk controls.
5. ZCode Free Quota and Campaign Summary
Zhipu actively releases compute promotions for ZCode and its GLM models. Utilizing server off-peak hours, these campaigns reward developers with massive compute pools:
- Zhipu ZCode: 300M Free Tokens & Global Build Guide: Covers the weekend 300M token drops, long-horizon building strategies, and effective token conversions.
- ZCode 1024 Programmer Day: 500M Free Tokens Guide: Detailed walkthrough for claiming the 500M holiday compute pack and newcomer guidance.
- ZCode Nightly 300M Tokens: Off-Peak Compute Guide: How to leverage nightly off-peak compute windows for automated testing and refactoring.
- ZCode Trust Patch: Execution Safeguards and Security: Security sandboxing, file modification safeguards, and operational best practices.
- ZCode Free Weekend: 100M Tokens Sprint: Reviewing prior short-term sprint promotions and fast-claiming techniques.
To secure future token releases, download and sign in to ZCode ahead of time so you can claim promotional notifications the moment they go live.
6. Frequently Asked Questions
Is the ZCode client completely free?
The ZCode application is 100% free to download and use. For model compute, Zhipu frequently awards free promotional token pools within the client, and developers can also connect their own external API keys.
Does ZCode work offline?
Basic file browsing and text editing function offline. However, agentic goal planning, code synthesis, and automated debugging rely on frontier models hosted in the cloud, requiring an active internet connection.
How do I update ZCode to the latest release?
ZCode checks for updates automatically in the background. When an update is detected, an upgrade prompt appears in the interface, allowing one-click silent updates. You can also re-download the latest installer directly from the official portal.
📬 Subscribe to the Free AI API Radar
Free developer compute campaigns are often time-sensitive and distributed on a first-come, first-served basis. Subscribe to the Free AI API newsletter to receive instant alerts on verified free tiers, zero-dollar developer APIs, and limited-time cloud promotions.

Community Feedback
Comments are tied to your GitHub account — sign in to join the discussion.