Pi vs ZCode: A Minimal MIT Harness You Build Up vs Z.ai's GLM-First Agentic Development Environment

Verdicts by Task

Building your own harness or embedding an agent in your softwarePi wins

Pi runs in RPC and SDK modes and ships extensions, skills and prompt templates as packages.

The ZCode pages we read describe no SDK. We tested neither.

Long-running goals steered from a chat appZCode wins

zcode.z.ai lists Goals for long-running work and control from WeChat, Feishu or Telegram.

Pi has RPC and an SDK you could build chat control on, so the gap is built-in versus build-it-yourself. We tested neither.

Choosing any model providerPi wins

pi.dev lists 15+ providers and local runners (Ollama, LM Studio, vLLM, SGLang, llama.cpp).

ZCode is GLM-first, though its changelog shows some Kimi and MiniMax configurations, and Pi also has Z.ai Coding Plan entries, so for GLM users the gap is narrower than the headline.

Auditing or forking the agentPi wins

Pi is MIT licensed; the ZCode pages we read state only an all-rights-reserved footer and no open-source licence.

Scope is the pages we read; ZCode may publish licence terms elsewhere.

Feature Comparison

AI-native
Pi:AI-Native
ZCode:AI-Native
What it is
Pi:Pi site: "Pi is a minimal agent harness. Adapt Pi to your workflows, not the other way around." It runs in interactive, print/JSON, RPC and SDK modes.
ZCode:Z.ai docs: "a full-featured Agentic Development Environment (ADE) designed for long-horizon tasks." zcode.z.ai pitches "next-gen vibe coding for complex goals" and "multiple agents and control from anywhere".

Pi is a small harness you shape yourself. ZCode is a finished desktop environment built around Goals and GLM-5.3.

Licence
Pi:MIT, per the GitHub README and pi.dev.
ZCode:The zcode.z.ai page we read carries the footer "© 2026 ZCode All rights reserved." and states no open-source licence. The Z.ai ZCode docs page names no software licence.

Pi's code can be audited and forked. ZCode's licence terms are not stated on the pages read.

Platforms and install
Pi:Install with a curl script, a PowerShell script, or npm, pnpm or bun; the README says it needs Node.js 22.19 or newer. The docs index has pages for Windows, Tmux, Termux on Android and Containerization.
ZCode:zcode.z.ai offers v3.17.2 for macOS (Apple Silicon and Intel), Windows (64-bit and ARM64) and Linux (x64 and ARM64, marked Beta) as .deb, .rpm and .AppImage.

Pi is a terminal program you install from a script or package manager. ZCode is a desktop app whose Linux builds are beta.

Model providers
Pi:pi.dev lists 15+ providers, naming Anthropic, OpenAI, Google, Azure, Bedrock, Mistral, Groq, Cerebras, xAI, Hugging Face, Kimi For Coding, MiniMax, NVIDIA, OpenRouter and Ollama. The models doc covers local models through the llama.cpp router, Ollama, LM Studio, vLLM and SGLang.
ZCode:zcode.z.ai: "Deep GLM-5.3 integration", with GLM-5.3-Flash for multimodal tasks. The Model Providers settings take a key under "Z.ai Open Platform" and show Z.ai's own OpenAI and Anthropic base URLs. The changelog (v3.17.2) adds model configuration items for Kimi K3.1 Pro and MiniMax M3.1 Flash. We did not confirm whether users can add arbitrary providers.

Pi has the wider catalogue and local runners. ZCode is GLM-first, and we state no provider count for it.

The shared GLM subscription
Pi:Pi's providers page lists "ZAI Coding Plan (Global)" (ZAI_API_KEY) and "ZAI Coding Plan (China)" (ZAI_CODING_CN_API_KEY).
ZCode:Z.ai's plan overview says the GLM Coding Plan supports "ZCode, Claude Code, Codex, OpenCode, AutoClaw, and OpenClaw". Pi does not appear in that document.

Pi's own provider list has entries for the Z.ai plan, but Z.ai's overview does not name Pi as a supported tool. Neither set of pages we read describes one as built on the other.

Agent workflow
Pi:pi.dev says sub-agents and plan mode are not built in; they come from extensions or third-party packages. Extensions, skills, prompt templates and themes ship as Pi packages.
ZCode:zcode.z.ai: "Use Goals to manage complex work with continuous planning, execution, and verification." The changelog says workflows can set a model for each sub-agent, and v3.17.2 makes sub-task permissions match the main session, with plan mode restricted the same way.

ZCode centres on Goals and multi-agent workflows. Pi leaves sub-agents and plan mode to extensions or packages.

Remote control
Pi:Pi has an RPC mode for controlling separate processes and a TypeScript SDK for running Pi inside applications. The pages we read describe no chat-app control.
ZCode:zcode.z.ai says work can be controlled from "WeChat, Feishu, or Telegram". The changelog lists collaboration through Feishu groups and topics.

ZCode ships chat-app steering. Pi gives you RPC and an SDK to wire it yourself.

Permissions and sandboxing
Pi:Security docs: "Pi can read, change, and execute files with the permissions of the account that started it, and it does not ask for approval before every tool call." Also: "Watching the transcript, using project trust, and reviewing changes do not create a security boundary." Running Pi "entirely inside a container, virtual machine, or sandbox" is "usually the strongest practical option". The containerization page lists Plain Docker, Docker Sandboxes, OpenShell and a Gondolin extension and does not state that Pi sandboxes itself.
ZCode:Changelog: v3.17.2 runs scripts in custom commands only after permission confirmation; an earlier entry has autonomous mode ask before dangerous commands. The word "sandbox" does not appear on the changelog page or the Z.ai ZCode docs page we read.

Neither documents a sandbox for the agent's own file and shell access on the pages read. ZCode describes confirmation prompts, while Pi says it does not ask before every call. Isolate either in a VM or container for untrusted work.

Pricing
Pi:Free to install under MIT. The pi.dev front page mentions no price, paid plan or hosted service, so you pay for whichever provider key or subscription you connect.
ZCode:zcode.z.ai lists GLM Coding Lite at $12.6 a month (list $18), Pro at $56 ($80) and Max at $117.6 ($168), with 10,000 weekly credits on Lite, 6x that on Pro and 14x on Max, and a footer saying prices may change. Z.ai's docs say plans start at "just 18 USD per month" and list 2,000, 12,000 and 28,000 credits per 5 hours.

Not like-for-like. Pi's cost is the provider you connect; ZCode's is GLM Coding Plan credits. The pages we read state no separate price for the ZCode app.

Still deciding between these two?

Choosing is the easy part. Getting it running inside your business, on your data, with your team using it, is the work. We do both.

The conversation runs on Gnosari, one of the tools in this directory. A real conversation, not a sales script.