# zerd, the coding agent that proves its work > zerd is a terminal AI coding agent that runs tests on its changes, has a second model review the real diff, and verifies every file path it mentions. Home page: https://www.zerd.si Written by Aditya Dutt Pandey (https://lab.adpandey.dev, https://github.com/Adityaadpandey) Install (macOS/Linux): `curl -fsSL https://www.zerd.si/install.sh | sh` Install (Windows): `irm https://www.zerd.si/install.ps1 | iex` Full docs in one file: https://www.zerd.si/llms-full.txt ## Common questions **What is zerd?** zerd is an AI that writes code for you, right in your terminal. After it changes your files, it runs your tests, has a second AI review the changes, and checks that every file and line it mentions really exists. Then it shows you a short report of what it did and what it couldn’t check. **How do I install zerd?** On macOS or Linux, run: curl -fsSL https://www.zerd.si/install.sh | sh. On Windows PowerShell, run: irm https://www.zerd.si/install.ps1 | iex. It is a single file, so there is nothing else to set up. **Which AI models does zerd work with?** Claude, GPT, Codex, DeepSeek and models that run on your own computer. If one provider runs out of quota, zerd switches to the next one and tells you. **How is zerd different from other AI coding tools?** Most tools stop when the AI says it’s done. zerd keeps going: it tests the change, has another AI review it, and tells you honestly what it could not verify. Its safety limits are built into the program itself, so the AI can’t talk its way around them. **Is zerd free and open source?** It is free to use, including for work. You can read the code on GitHub, but it is source-available rather than open source: you can’t copy, modify or redistribute it. **Is zerd an alternative to Claude Code, Aider or Codex CLI?** Yes, it does the same job: an AI coding assistant in your terminal. The difference is that every run ends with a report of which checks ran, what a second AI found in the changes, and which claims were verified. It also works with Claude, GPT, DeepSeek and local models, so you aren’t tied to one provider. In our payments test, zerd used a real PostgreSQL database and Redis where Claude Code used pretend versions. That was one project and one run each, so it shows how deeply each tool checks, not which is better. **Does zerd run on Windows?** Yes, on Windows 10 and 11 in PowerShell, with Git for Windows installed. The extra OS-level sandbox is macOS only for now. On Linux and Windows, zerd still keeps file access inside your project and checks shell commands before running them. **Can I undo what zerd changed?** Yes. Type /undo and every file goes back to how it was before the run. ## Docs - [About zerd and who writes it](https://www.zerd.si/docs/about): Who builds zerd, how it is made, where the source lives, and how to report a problem or get in touch. - [Benchmarks](https://www.zerd.si/docs/benchmarks): Two head-to-head rounds against Claude Code: a payment-webhook service attacked with 15 scenarios, and 11 mixed tasks. - [CLI reference](https://www.zerd.si/docs/cli): Every flag and subcommand of the zerd command, with exit codes and examples. - [Code graph](https://www.zerd.si/docs/code-graph): The symbol and import graph zerd builds from your working tree, and the graph tool that reads it. - [Slash commands](https://www.zerd.si/docs/commands): Every command you can type inside an interactive zerd session, grouped by what it does. - [zerd vs Aider](https://www.zerd.si/docs/compare/aider): How zerd compares with Aider on verification, git workflow, review, model support and licensing, using zerd's real behavior, and where Aider is the better fit. - [zerd vs Claude Code](https://www.zerd.si/docs/compare/claude-code): How zerd and Claude Code differ on verification, model choice, safety and token use, with the real head-to-head numbers from two benchmark rounds and where Claude Code is ahead. - [zerd vs Codex CLI](https://www.zerd.si/docs/compare/codex-cli): How zerd compares with OpenAI's Codex CLI on verification, model choice, sandboxing and licensing, and how zerd reuses your Codex login over the Responses API. - [Compare coding agents](https://www.zerd.si/docs/compare): zerd next to Claude Code, Aider, Codex CLI and OpenCode: what each one is good at, how they differ on verification, models and safety, and which to pick. - [zerd vs OpenCode](https://www.zerd.si/docs/compare/opencode): How zerd compares with OpenCode, the open-source AI coding agent, on verification, review, safety and licensing, with where OpenCode is ahead. - [Configuration](https://www.zerd.si/docs/configuration): Where config, keys and data live, which layer wins, and the flags you will actually use. - [Context and cost](https://www.zerd.si/docs/context-and-cost): How zerd finds code without reading everything, avoids paying twice for tokens, and estimates how many rounds a task needs. - [Everyday use](https://www.zerd.si/docs/everyday-use): The full-screen UI, what you can type, keyboard shortcuts, approvals, steering a run and resuming later. - [Extending zerd](https://www.zerd.si/docs/extending): MCP servers, hooks, slash commands, project tools, prompts and repo profiles. - [Files and environment](https://www.zerd.si/docs/files-and-env): Every folder and file zerd reads or writes, and every environment variable it looks at. - [How a run works](https://www.zerd.si/docs/how-a-run-works): What happens between your request and the final status, and the five ways a run can end. - [License](https://www.zerd.si/docs/license): zerd is source-available: you can run it for any purpose, but you cannot copy or redistribute the source. - [Limits](https://www.zerd.si/docs/limits): Where zerd is not there yet, said plainly. - [Memory and undo](https://www.zerd.si/docs/memory-and-undo): How zerd picks up your preferences from corrections, and how to undo what it changed. - [Models and routing](https://www.zerd.si/docs/models): Connect a provider, pick a model, and see how zerd routes each request, fails over, and keeps cheaper models on track. - [Pi mode and full mode](https://www.zerd.si/docs/modes): zerd starts in pi mode, a lean setup with fewer tools and a shorter prompt. Full mode turns the rest back on. - [Permissions](https://www.zerd.si/docs/permissions): The approval modes, the allow, deny and ask rules, and how a single tool call ends up approved or refused. - [Quickstart](https://www.zerd.si/docs/quickstart): Install zerd, connect a model, and make your first checked change in about two minutes. - [Reviews and fixes](https://www.zerd.si/docs/reviews): Review a diff, PR or commits with zerd, see how it tries to disprove its own findings, and fix what is left. - [Safety](https://www.zerd.si/docs/safety): The rules the model can't talk its way past: confined files, scanned shell commands, an OS sandbox, and trusted-only project config. - [Skills and agents](https://www.zerd.si/docs/skills-and-agents): Playbooks the model can load, reusable slash commands, and the sub-agents zerd can hand work to. - [Tools](https://www.zerd.si/docs/tools): The tools the model can call, and which of them are available in pi mode and in full mode. - [Troubleshooting](https://www.zerd.si/docs/troubleshooting): What zerd doctor checks, and the cause and fix for the errors and odd run endings you are most likely to hit. - [Verification](https://www.zerd.si/docs/verification): How zerd picks checks, knows whose failure it is, and catches breakage your tests can't see. - [Windows](https://www.zerd.si/docs/windows): How zerd runs on Windows 10 and 11, and what differs from macOS and Linux. ### Plain markdown The same pages, ready to read without parsing HTML. - [About zerd and who writes it (markdown)](https://www.zerd.si/docs/about.md) - [Benchmarks (markdown)](https://www.zerd.si/docs/benchmarks.md) - [CLI reference (markdown)](https://www.zerd.si/docs/cli.md) - [Code graph (markdown)](https://www.zerd.si/docs/code-graph.md) - [Slash commands (markdown)](https://www.zerd.si/docs/commands.md) - [zerd vs Aider (markdown)](https://www.zerd.si/docs/compare/aider.md) - [zerd vs Claude Code (markdown)](https://www.zerd.si/docs/compare/claude-code.md) - [zerd vs Codex CLI (markdown)](https://www.zerd.si/docs/compare/codex-cli.md) - [Compare coding agents (markdown)](https://www.zerd.si/docs/compare.md) - [zerd vs OpenCode (markdown)](https://www.zerd.si/docs/compare/opencode.md) - [Configuration (markdown)](https://www.zerd.si/docs/configuration.md) - [Context and cost (markdown)](https://www.zerd.si/docs/context-and-cost.md) - [Everyday use (markdown)](https://www.zerd.si/docs/everyday-use.md) - [Extending zerd (markdown)](https://www.zerd.si/docs/extending.md) - [Files and environment (markdown)](https://www.zerd.si/docs/files-and-env.md) - [How a run works (markdown)](https://www.zerd.si/docs/how-a-run-works.md) - [License (markdown)](https://www.zerd.si/docs/license.md) - [Limits (markdown)](https://www.zerd.si/docs/limits.md) - [Memory and undo (markdown)](https://www.zerd.si/docs/memory-and-undo.md) - [Models and routing (markdown)](https://www.zerd.si/docs/models.md) - [Pi mode and full mode (markdown)](https://www.zerd.si/docs/modes.md) - [Permissions (markdown)](https://www.zerd.si/docs/permissions.md) - [Quickstart (markdown)](https://www.zerd.si/docs/quickstart.md) - [Reviews and fixes (markdown)](https://www.zerd.si/docs/reviews.md) - [Safety (markdown)](https://www.zerd.si/docs/safety.md) - [Skills and agents (markdown)](https://www.zerd.si/docs/skills-and-agents.md) - [Tools (markdown)](https://www.zerd.si/docs/tools.md) - [Troubleshooting (markdown)](https://www.zerd.si/docs/troubleshooting.md) - [Verification (markdown)](https://www.zerd.si/docs/verification.md) - [Windows (markdown)](https://www.zerd.si/docs/windows.md)