SuperAPIAI Directory

ZCode

github.com · AI coding

ZCode is an AI coding workbench launched by Z.ai, offering three usage forms: a desktop application, a browser interface, and a terminal Agent. The repository contains the client, backend services, shared UI, as well as the Agent CLI and runtime source code, and supports plugin extensions and command-line distribution packages.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

ZCode is Z.ai's coding agent harness, positioned as a powerful, intelligent, and extensible AI programming tool. According to the repository description, it offers three forms: a desktop application, a browser interface, and a terminal Agent. This repository contains the client, backend services, shared UI, as well as the Agent CLI and runtime source code.

Main capabilities and forms:

  • Desktop application: Based on Electron, launched via pnpm dev:desktop, using the production service configuration by default; the startup script prepares local runtime resources, builds the desktop Agent, and starts Electron with source watching.
  • Browser interface: In development mode, pnpm dev:web simultaneously starts the Web development server (default http://localhost:5173)和后端(默认 http://localhost:3030),浏览器访问前者;/ws and proxies general /api requests to the local backend.
  • Terminal Agent: The command-line distribution package includes TUI, Web, and Agent, all launched uniformly via zcode; with no arguments it enters the TUI, when the first argument is --web it starts the Web, and other arguments are passed to the existing Agent CLI. Both modes run locally and do not require Electron.
  • Plugin extensions: Supports UI Plugins; the repository provides documentation on plugin installation and updates, page APIs, and host integration entry points, and accepts plugin PRs submitted to zcode-plugins.

Usage (development and build): Requires Git, Node.js 24.14.0, and pnpm 10.33.2; versions are governed by mise.toml, and all commands are executed in the repository root directory.

  • pnpm bootstrap installs workspace dependencies, prepares desktop local runtime resources, then runs build:bootstrap.
  • The Agent CLI and runtime source code are located in apps/zcode-cli/, cloned together with the repository; no separate pull or Git submodule initialization is required.
  • The default bootstrap skips remote resource preparation, suitable for local desktop development; when using a remote workspace or verifying remote distribution resources, run pnpm bootstrap:with-remote.
  • Set ZCODE_DATA_BASE_DIR when a separate development data directory is needed.
  • Use development mode when modifying Web or backend source code; after modifying Agent source code, run pnpm --filter @zcode/cli... build and restart the service.
  • To build the command-line distribution package, use pnpm build:zcode; the script sequentially builds the CLI/TUI, backend, and Web, collects the TUI's native libraries, workers, and runtime dependencies, then assembles the distribution package; running the distribution package still requires Node.js.
  • Before packaging, the download root address ZCODE_DIST_BASE_URL must be set, and it can also be passed via --base-url.
  • The installation script downloads the runtime package from the configured download root address, installs to ~/.zcode/runtime by default, and creates the zcode command in ~/.local/bin; the installation directory can be changed via ZCODE_DIST_HOME, the command directory can be changed via ZCODE_DIST_BIN_DIR.

Web mode notes: the default working directory is the current directory, it listens on 127.0.0.1, access tokens are not enabled by default, an idle port is automatically selected and the browser is opened; for LAN access you can use --host 0.0.0.0, and when listening on a non-local address an access token is generated by default; you can specify a token via --token or disable token authentication via --no-token. When directly starting the HTTP entry point of the general-purpose Web service, configure API/WebSocket authentication via ZCODE_SERVER_AUTH_TOKEN.

Use cases: suitable for developers who need an AI coding agent to develop, debug, and extend code in a desktop, browser, or terminal environment; also suitable for teams that need to build and distribute command-line release packages and develop UI plugins.

Limitations and notes: the repository does not provide specific pricing, price, model capability, or performance data, and none is currently provided. Locally built macOS artifacts are unsigned; if the system blocks them on first open, the corresponding command must be executed. Existing Lite users need to switch to the new build commands, environment variables, and installation scripts; a new installation will not delete the old Lite directory, nor will it migrate or delete existing session data. For details on feature and discount scope, maintenance rules, execution and data risks, and license and third-party copyright notices, see NOTICE.md.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools