Repolode
Twigpine

Twigpine/zero

A terminal coding agent written in Go that edits files, runs commands and keeps local sessions, with you choosing the model and permission level.

Open-source alternative to:Claude CodeGitHub Copilot CLI

Stars
1,781
Forks
208
Open issues
70
Last commit
2 days ago

What is it?

Zero is an AI coding agent that runs in your local terminal. It can inspect a repository, edit files, run shell commands, and resume durable sessions stored on disk. You choose the model provider and the permission level, and file writes, shell commands, and network access are gated by its permission and sandbox policy.

The project supports a wide range of model backends, including OpenAI, Anthropic, Gemini, Ollama, LM Studio and any OpenAI- or Anthropic-compatible endpoint. The interactive TUI offers model and provider pickers, image input, slash commands, theme selection, and session resume and fork. A headless mode, `zero exec`, supports text, JSON and stream-JSON I/O and returns exit codes suitable for CI.

Zero can be extended with MCP servers, markdown skills, plugins, lifecycle hooks and specialist subagents. It installs through npm, install scripts, or a build from source with Go 1.26.10 or newer.

Key features

  • 01Edits files and runs shell commands within a permission and sandbox policy.
  • 02Works with OpenAI, Anthropic, Gemini, Ollama, LM Studio and other compatible endpoints.
  • 03Interactive TUI with model pickers, image input, slash commands and session resume.
  • 04`zero exec` supports scripted runs with text, JSON and stream-JSON output.
  • 05Sessions are stored locally on disk and are searchable and resumable.
  • 06Extensible through MCP servers, skills, plugins, hooks and subagents.

Use cases

  • Delegating a bug fix or refactor to an agent inside a local repository.
  • Running a coding agent with a local model through Ollama or LM Studio.
  • Calling the agent from CI scripts using `zero exec` with meaningful exit codes.
  • Exposing Zero's tools to other clients via `zero serve --mcp`.

Quick start

  1. 1

    Install Zero globally with npm

    npm install -g @twigpine/zero
  2. 2

    Start the TUI; the setup wizard helps you pick a provider and model

    zero

Things to know

  • Most providers need an API key set as an environment variable, or a local model server such as Ollama or LM Studio.

In collections

Topics

FAQ

What is zero?
A terminal coding agent written in Go that edits files, runs commands and keeps local sessions, with you choosing the model and permission level. Zero is an AI coding agent that runs in your local terminal. It can inspect a repository, edit files, run shell commands, and resume durable sessions stored on disk. You choose the model provider and the permission level, and file writes, shell commands, and network access are gated by its permission and sandbox policy.
Is zero free to use? What license does it have?
zero is open source under the MIT license. Check the license terms before using it in commercial products.
Is zero still maintained?
Actively maintained. The last commit to zero was on Nov 5, 2026.
What can I use zero for?
Delegating a bug fix or refactor to an agent inside a local repository. Running a coding agent with a local model through Ollama or LM Studio. Calling the agent from CI scripts using `zero exec` with meaningful exit codes. Exposing Zero's tools to other clients via `zero serve --mcp`.
How do I install zero?
Install Zero globally with npm: npm install -g @twigpine/zero Start the TUI; the setup wizard helps you pick a provider and model: zero
Where can I get zero?
The source code and installation instructions are on GitHub: https://github.com/Twigpine/zero

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects