ZCode is Z.ai’s open-source AI coding agent for multi-step development tasks involving project files, terminal commands, Git, and browser checks.
Describe what you want to build or fix and choose a model and permission mode. ZCode Agent works directly in your project and retains the conversation and project context throughout the task.
For longer assignments, Goal Mode lets the agent work toward a verifiable objective across multiple rounds. It can divide the work among subagents, edit the code, and check frontend changes in the built-in browser.
Z.ai open-sourced ZCode in September 2026. The release includes the desktop app, web client, backend services, shared packages, Agent CLI, TUI, and runtime source.
Key Features
- Work across project files, terminal commands, Git state, and browser checks in one ZCode task.
- Use Goal Mode to keep a long task running across repeated rounds until the objective is verified or the run budget ends.
- Choose how much control the agent has over file changes and commands, or use Plan mode to review its proposed work first.
- Test web pages in the built-in browser or interact with native desktop apps through Computer Use.
- Run projects locally or inside SSH, WSL, and Docker environments.
- Start or continue coding tasks from your phone or a connected messaging bot.
- Schedule recurring development tasks or queue non-urgent work for spare model capacity.
- Delegate research or implementation to built-in and custom subagents.
- Build dynamic multi-agent workflows and adjust workflow concurrency during a run.
- Install Plugins, Skills, Commands, MCP servers, and Hooks for reusable instructions and external integrations.
- Connect GLM Coding Plan, Z.ai or BigModel APIs, Anthropic, OpenAI, OpenRouter, Moonshot, MiniMax, DeepSeek, Xiaomi MiMo, or compatible custom endpoints.
How to Install and Use ZCode
1. Download and Install ZCode
Download the desktop app for your operating system and processor.
- macOS: Choose the Apple Silicon or Intel DMG, open it, and copy ZCode to Applications.
- Windows: Run the x64 or ARM64 installer and launch ZCode from the Start menu.
- Linux: Download an x64 or ARM64 AppImage, DEB, or RPM package. Install DEB and RPM packages with your distribution’s package manager. For AppImage, run the following command in your download directory before opening the file.
chmod +x ZCode-*.AppImage2. Connect an AI Model
Launch ZCode and select Login with Browser to authorize your Z.ai account. New users can activate the Start Plan after signing in. If you already have a GLM Coding Plan API key, select Use API key and enter the key for Z.ai or BigModel.
For other model providers, open Settings -> Model settings -> Add provider. Choose a preset such as OpenAI, Anthropic, or OpenRouter, enter your API key, enable the models you want to use, and click Test model. For pay-as-you-go GLM access, use the Z.ai API or BigModel API preset.
3. Run Your First Coding Task
- Click New task in the sidebar and select your project folder from the project menu above the message box.
- Select GLM-5.4 or another connected model and choose Ask before changes to review file edits and commands as they occur.
- Describe the work you want done. Type
@to reference specific files or attach a screenshot with the+button.
For example, open an existing frontend project and submit this prompt:
Inspect the project and fix any layout issues on mobile screens.
Preserve the existing design and functionality.
Run the available tests and check the result in the built-in browser.
Summarize the changes and list the files you modified.Approve the proposed actions as needed. Once the agent has finished, open Review in the side pane to inspect the code diffs. Check the test results in the conversation or terminal and send follow-up instructions in the current task if the result needs further changes.
How ZCode Works
A ZCode task keeps the conversation, project references, branch state, tool output, and permission state attached to one piece of work.
ZCode Agent can read and edit files, run terminal commands, inspect Git changes, use configured tools, and review results as the task progresses.
The permission mode determines which actions require your approval. Plan mode can be enabled separately from the three permission levels.
- Ask before changes requests confirmation before each file edit or command and is the default mode.
- Autonomous mode proceeds with routine actions and asks for approval when an operation is considered risky.
- Plan analyzes the project and waits for approval before implementation begins.
- Full access authorizes file access, commands, and network activity without repeated approval after you confirm the risks.
Goal Mode for Long Tasks
Goal Mode adds a completion condition to the current session. A command such as /goal make pnpm test pass gives ZCode Agent an objective it can check after each round. If work remains, the agent begins another round.
The run stops when verification passes, you pause or clear the goal, or the configured usage budget is reached.
Scheduled and Idle-Time Tasks
Use Automations to schedule recurring jobs such as reviewing recent commits, checking documentation, or preparing a weekly release summary. Set the project, instructions, model, and schedule. ZCode runs the task locally and records the result for review.
For work with no deadline, idle-time tasks run once when spare compute capacity is available. Automatic runs are free for Coding Plan subscribers with access to idle-time tasks and do not consume their plan quota. Both types of automation require ZCode to be running and your computer to be awake.
Browser Checks, Remote Projects, and Multi-Agent Work
ZCode Desktop includes browser automation through the built-in browser panel.
After editing a frontend, the agent can open the development server, interact with the page, and capture screenshots to inspect the result. Local web previews can refresh automatically as the files change.
For native desktop software, Computer Use lets the agent operate app controls and inspect the screen. Enable it in Settings -> Computer Use on Windows or macOS. On macOS, grant Accessibility and Screen Recording permissions.
Remote Development moves file access, terminal commands, Git operations, and agent execution into an SSH host, WSL distribution, or local Docker environment. The desktop client continues to handle your account, model configuration, and task controls.
With Remote Control, you can open a running ZCode instance from a mobile browser to review changes, check task progress, or send further instructions. You can also use Telegram, WeChat, or Feishu/Lark bots to start and follow tasks on your connected computer.
Subagents handle bounded pieces of larger jobs with their own context. ZCode includes general-purpose and Explore subagents, and custom or plugin subagents can define their own instructions and model settings.
Dynamic workflows coordinate multiple subagents from one workflow definition. For a large refactor, for example, you can assign separate models to code exploration and implementation, adjust concurrency during execution, and save the workflow for reuse.
Plugins, Skills, MCP, Commands, and Hooks
A plugin can package Skills, Commands, subagents, MCP servers, and Hooks. The built-in Plugin Marketplace lets you install official and community extensions or add your own plugin catalog.
MCP servers connect ZCode Agent to external services through stdio, HTTP, or SSE. ZCode can import MCP configuration from Claude Code, Codex CLI, and OpenCode. Hooks can run local processes around events such as session startup, prompt submission, tool use, permission requests, failures, and task completion.
Your team can keep extensions at user or workspace scope. Remote SSH and WSL projects also support manual syncing for selected Skills, MCP configuration, and Plugins.
Desktop, Terminal, Web, and Source Builds
The desktop app is the main ZCode client and is available for macOS, Windows, and Linux (beta). It contains the file tree, task list, terminal, Git controls, Review, built-in browser, remote workspace controls, and model settings.
The codebase also contains a unified command-line distribution. The zcode command opens the terminal UI, and zcode --web starts the local Web client. These clients use the ZCode Agent runtime and backend from the public repository.
Models and Pricing
The ZCode app is free and open source. Model access is billed or limited by the account, Coding Plan, API key, or third-party service connected to ZCode.
GLM-5.4 comes preconfigured for Coding Plan subscribers, with native image input and a 1-million-token context window. GLM-5.3 and GLM-5.3-Flash are also available through Z.ai and BigModel.
Other provider options include Anthropic, OpenAI, OpenRouter, Moonshot, MiniMax, DeepSeek, Xiaomi MiMo, and custom services that implement Anthropic-compatible or OpenAI-compatible APIs.
Connect a Z.ai or BigModel Coding Plan through account authorization or its coding-specific API endpoint. New users can claim the free five-day Start Plan, which includes a daily allowance of 3 million tokens for GLM-5.4 and 5 million for GLM-5.3-Flash.
Open Source and Data Privacy
Z.ai open-sourced ZCode after developers reported that its Codebase Indexing feature packaged local workspace data and uploaded encrypted archives to Alibaba Cloud object storage.
Z.ai apologized, said the reported issue had been remediated, and moved the client code into a public Apache-2.0 repository for community review.
For private repositories, check which model provider receives your project context and which extensions have access to your workspace. Remote configuration syncing can also transfer sensitive settings to the connected host.
Pros
- Persistent task context for long coding work
- Goal-based execution with completion checks
- Built-in browser verification on desktop
- Local, SSH, WSL, and Docker project execution
- Open-source desktop, Web, CLI, and runtime code
- Scheduled and idle-time task automation
Cons
- Ongoing model access generally requires a subscription or API credits
- Browser automation requires desktop ZCode
- Remote sync can transfer sensitive configuration
Alternatives & Related Resources
- 10 Best CLI AI Coding Agents: Open-Source & Commercial
- AI Coding Plan Comparison: Prices, Limits, and Features
- bb: Free Open-Source Agentic IDE for AI Coding Agents
- Kimi Code CLI: Open-Source AI Coding Agent with Skills & MCP Support










