zero: Run a Local Terminal Coding Agent

Summary
Zero is a Go-based terminal coding agent that can inspect and edit repositories, run commands, and work with many hosted or local models. It suits developers who want scriptable coding assistance with local sessions and explicit controls over side effects.
At a glance
- Language
- Go
- License
- MIT
- Stars
- 1.7k
- Forks
- 194
- Added to OSRepos
- July 6, 2026
- Last analyzed
- October 3, 2026
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Overview
Zero is a coding agent for working with code from a local terminal. It can inspect a repository, edit files, and run commands, while letting the user select a model and set permissions for actions such as file writes and shell commands.
It offers both an interactive terminal interface and a headless command for scripts and CI. Sessions stay on disk, and the project supports hosted providers, local model services, and compatible endpoints.
Key Features
- Interactive TUI for prompts, model selection, plans, tool activity, and session management.
- Headless
zero execwith text, JSON, and stream-JSON input and output options. - Provider support for hosted models, local services such as Ollama and LM Studio, and compatible endpoints.
- Permission controls and sandbox policies for file writes, shell commands, network access, and additional directories.
- Local sessions that can be searched, resumed, forked, or rewound.
- Extensibility through MCP servers, skills, plugins, hooks, and specialist subagents.
- Utilities for repository maps, verification checks, worktrees, and usage reporting.
Use Cases
- Developers can ask for help understanding or changing a repository from the terminal, with tool actions subject to configured permissions.
- Teams can run one-shot coding tasks in scripts or CI using
zero execand its structured I/O options. - Users who want to choose between hosted and local models can configure a provider for each workflow.
- Developers working across code and documentation directories can grant specific extra write roots rather than broad filesystem access.
Project Facts
- Language: Go
- License: MIT
- Stars: 1.7k
- Forks: 194
- Topics: ai, ai-agent, anthropic, cli, code-assistant, coding-agent, developer-tools, gemini, llm, mcp, ollama, openai, terminal
- Archived: No
Getting Started
Install the npm package and launch Zero:
npm install -g @gitlawb/zero
zero
See the repository README for provider setup, other installation methods, and usage details.
Alternatives
- DeepSeek-Reasonix: DeepSeek-Reasonix emphasizes a persistent terminal agent and prefix-cache stability, while Zero focuses on scriptable sessions and explicit controls over side effects.
- Tau: Tau is a Python port of Pi's minimalist agent; Zero is Go-based and supports a range of hosted and local models.
- Grok Build: Grok Build is a full-screen terminal coding agent from SpaceXAI, while Zero emphasizes scriptability and explicit side-effect controls.
- OpenCode: OpenCode is a TypeScript coding agent with specialized agents and multi-platform support; Zero is a Go CLI with local sessions and broad model support.
Considerations
- Building from source requires Go 1.26.6 or later.
- Using hosted providers requires configuring the relevant credentials. Local model use depends on having a compatible local service available.
- Actions that can change files or affect the environment are governed by permission and sandbox settings. Review those settings before enabling autonomous or unsafe modes.
- The npm package relies on optional platform packages for its binaries. If optional dependencies are skipped, the wrapper fetches a matching binary from a GitHub Release when needed.
Comparisons
Source repository
Open the original repository on GitHub.
34 counted GitHub visits
Related repositories
Similar repositories that may be relevant next.

ai-observer: Monitor AI Coding Assistant Usage Locally
October 4, 2026
AI Observer is a self-hosted OpenTelemetry backend and dashboard for tracking usage across local AI coding assistants. It brings token and cost data, traces, logs, and metrics together in DuckDB, with both OTLP ingestion and file-based import or watching for supported tools.

e2a: Email API for Applications and AI Agents
September 29, 2026
e2a provides an email API and relay for applications and AI agents. It supports transactional sending, inbound mailboxes, and agent replies, with optional human review and hosted or Docker-based deployment.

router: Route AI Requests to the Best Model
September 28, 2026
weave-os/router is a Go proxy that routes AI requests across configured model providers, while accepting Anthropic, OpenAI, and Gemini API formats. It suits developers who want model choice and routing behind one endpoint, including agent and coding-tool users.

ksail: Create and Operate Kubernetes Clusters
September 27, 2026
KSail is a Go-based toolkit for creating and operating Kubernetes clusters across local, nested, and cloud providers. It brings provisioning, GitOps, secrets, cluster operations, and AI interfaces into one tool, for developers and platform teams who want a unified workflow.