maki README

The project's README from github.com/tontinton/maki. As one markdown file: README.md.

An AI coding agent optimized for minimal use of context tokens, while providing a great user experience.

I got frustrated with existing coding agents and hitting hourly/weekly token limits, so I built maki. It's a single Rust binary with a TUI, a bunch of tricks to keep junk out of the context window, and a Neovim style Lua plugin system.

curl -fsSL https://maki.sh/install.sh | sh

Other platforms and ways to install are below. Docs · Plugins · Discord

Benchmarks

Maki 0.5.5 at 70% pass rate and $2.06 per pass, against the FrontierHarness Eval baselines

FrontierHarness Eval benchmark result, click here to download report.zip

Features

Context efficiency

The whole conversation is re-sent to the model on every turn, so anything that lands in context is paid for again and again until the session ends. Most of maki is about keeping stuff out of there. The long version is in Token Economy.

User experience

Safety

Lua plugins

Outside the TUI

Supported providers

Provider How to auth
Anthropic ANTHROPIC_API_KEY only (using OAuth is against TOS). Bedrock supported via CLAUDE_CODE_USE_BEDROCK=1.
OpenAI OPENAI_API_KEY, or OAuth via maki auth login openai
xAI XAI_API_KEY, or OAuth via maki auth login xai
Google GEMINI_API_KEY
Copilot GH_COPILOT_TOKEN, an existing GitHub Copilot sign-in at ~/.config/github-copilot/, or maki auth login copilot to import one
Ollama OLLAMA_HOST for local (e.g. http://localhost:11434), or OLLAMA_API_KEY for cloud
llama.cpp LLAMA_CPP_HOST (e.g. http://localhost:8080), optionally LLAMA_CPP_API_KEY
Mistral MISTRAL_API_KEY
Z.AI ZHIPU_API_KEY
DeepSeek DEEPSEEK_API_KEY
OpenRouter OPENROUTER_API_KEY
Requesty REQUESTY_API_KEY. Set REQUESTY_BASE_URL=https://router.eu.requesty.ai/v1 for the EU region.
Synthetic SYNTHETIC_API_KEY
Regolo REGOLO_API_KEY. EU-hosted open-weight models.
TensorX TENSORX_API_KEY
OpenCode Zen OPENCODE_API_KEY, or the free public key for zero-cost models. Models from the models.dev catalog.
OpenCode Go OPENCODE_API_KEY. Models from the models.dev catalog.
Aperture APERTURE_HOST (e.g. https://your-host.tailnet.ts.net). No API key needed, Tailscale handles auth.

Anything else that speaks the OpenAI or Anthropic API can be added as a custom provider in config.

Plugin providers - a Lua plugin can register a provider with maki.provider.register, and its models behave like any built-in provider's. Handy for a company gateway behind SSO. See docs for details.

Installation

# Linux / macOS / Git Bash on Windows
curl -fsSL https://maki.sh/install.sh | sh

# Windows (PowerShell)
irm https://maki.sh/install.ps1 | iex

# Homebrew
brew install maki

# Nix
nix run github:tontinton/maki

# Living on the edge (main branch)
cargo install --locked --git https://github.com/tontinton/maki.git maki

Don't blindly trust shell scripts, download it first (curl -fsSL https://maki.sh/install.sh -o install.sh, or irm https://maki.sh/install.ps1 -OutFile install.ps1), read it, then run it.

The scripts install to ~/.local/bin, or %LOCALAPPDATA%\maki on Windows (added to your user PATH). Override with MAKI_INSTALL_DIR / $env:MAKI_INSTALL_DIR.

Or download a pre-built binary from GitHub Releases.

Then set an API key for one of the providers and run maki in your project. Config lives in ~/.config/maki/init.lua, the Quick Start goes through the rest.

Packaging maki? Build with MAKI_DISABLE_UPDATE=1 to turn off self-update, see maki update.

ACP

Run maki acp or configure your ACP supporting editor to use maki, e.g. in Zed's settings.json:

"agent_servers": {
  "Maki": {
    "default_config_options": {
      "model": "deepseek/deepseek-flash"
    },
    "type": "custom",
    "command": "maki",
    "args": ["acp"],
    "env": {}
  }
}

Example config

tontinton/makiconf - includes a semble tool (Lua code) for semantic code search, and an ast-grep MCP server for AST-based search and replace.

Community

Discord

maki (tontinton/maki)

Searching Database…

1.4K ·GitHub
What is this?Maki is a terminal AI coding agent written in Rust, built to spend as few context tokens as possible, and extendable with neovim-style Lua plugins.
Is it a terminal app, a library, or an IDE plugin?It's a full interactive terminal UI written in Rust with ratatui - no JavaScript, 60 FPS, fast startup and light on memory. It can also run UI-less with --print --output-format stream-json.
Do I bring my own API key, and which providers are supported?Yes, bring your own key: around 20 providers are supported, including Anthropic, OpenAI, xAI, Google, GitHub Copilot, Mistral, DeepSeek, OpenRouter, plus local Ollama and llama.cpp. Custom providers or proxies can be added by dropping a script into ~/.config/maki/providers/.
Anything it can't do yet that I should know about?A few things: Anthropic works with an API key only since OAuth is against their TOS, Escape-Escape rewinds chat history but not code yet, and provider support as Lua plugins is still work in progress.
Does it run on Windows too, or is it macOS and Linux only?Windows is covered with PowerShell and Git Bash installers, and Linux and macOS get their own one-liner. Nix support and pre-built binaries on GitHub Releases are also available.
How does it save so many context tokens?The index tool parses code with tree-sitter into a file skeleton with exact line ranges (e.g. a function at lines 150-165) so reads stay small; a sandboxed codeexecution tool filters or summarizes data between tools without it ever entering the context window; delegation can use a weaker model tier. The author measured the index tool alone saving 165 tokens per turn.
Can I extend it with plugins like in neovim?Yes - extension is via Lua plugins with a neovim-like feel, backed by a Lua API reference, builtin plugins and a user-made showcase. The example config repo tontinton/makiconf adds semantic code search and an ast-grep MCP server for AST-based search and replace.
How does the permission system handle risky commands?Maki parses the bash command with tree-sitter before asking, so git diff && rm -rf / is understood as requesting two separate permissions - git and rm - instead of one opaque line. A --yolo flag disables the prompts entirely.
Can I plug it into my editor instead of using the TUI?Yes. maki acp exposes it over the Agent Client Protocol for editors like Zed, and for automation you can run it UI-less with --print --output-format stream-json, which is output-compatible with Claude Code so existing setups keep working.
What do subagents look like in practice?The task tool delegates work to subagents and lets the model pick a weak, medium or strong tier of your provider's models - think haiku vs sonnet vs opus. Each subagent gets its own chat window, and you can jump between them with /tasks (Ctrl-X).
Why did the author build it?Two frustrations with existing agents: bloated context and hidden internals. Maki follows a philosophy of not hiding anything - it still shows details like how many lines were read - and pairs that with token efficiency. Notably, over 90% of maki's own code was written by maki under human guidance.
What are similar projects?aichat, claurst, magpie, dim, oh-my-pi, octomind, Raven, jcode
Creator
tontinton
Size
27.2 MB
Stars
1.4K
Age
9mo
Commits · 90 Days