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
FrontierHarness Eval benchmark result, click here to download report.zip
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.
index tool - uses tree-sitter to parse supported programming languages to produce a high level skeleton of a file, with exact start-end lines of each item (e.g. a function's implementation is in lines 150-165). Encouraged to be used before reads. For my usage it adds 59 tok/turn but saves 224 tok/turn on read calls, saving 165 tok/turn.code_execution tool - uses monty to run an interpreter that has all other tools available as async functions. Maki uses it to filter / summarize / transform / pipe data to other tools as input, without it ever reaching and polluting the context window. MCP tools are callable from it too, and open() reads files through maki. Sandbox limited by time & memory.task tool - when delegating work to subagents, the AI chooses whether to run weak / medium / strong model of used provider. Think haiku / sonnet / opus. The subagent burns its own context on greps and dead ends, only the summary comes back to yours.tool_search tool. Datadog's MCP server alone has over 100 tools, and you don't want all of those definitions in every request when the model uses maybe two.maki.setup({ agent = { rtk = false } }) in your init.lua. Saves ~50% of bash output tokens. Remember bash is just 12% of total token usage, so 6% is nice, but saving on reads (65% of total) by using index gave me more benefit. I think I'll do bash output filtering like this myself in a future release./usage breaks it down per model./tasks (Ctrl-X). You can type into a running subagent's window to queue a message for it, or stop it with Ctrl-S./fork copies the whole session.-c / -r <id>, or browse them with Ctrl-P. maki session export / import moves one to another machine.memory tool to keep long term context, just tell maki to remember something (sometimes it uses it automatically). Managed via /memory (view / edit / delete memories)./btw to run a command with the chat history without interfering with the current session.!, or !! if you want maki to not know about it.system one that uses your terminal's own colors. Give it a light and a dark theme and it picks by your terminal's background./cd to change dir.maki update to get the latest release, maki rollback if it broke something.git diff && rm -rf /, what do you think will happen in your current coding agent? It will treat it as git *. Maki uses tree-sitter to parse the bash command and figure out the permissions requested are git * and rm *. Disable using --yolo..maki/ dir with an init.lua, MCP servers and a .env. None of it loads until you trust the folder. Its permission deny rules apply anyway, so a repo can only make the agent more restricted. See Folder Trust.webfetch calls.read, bash, edit, even batch) is itself a Lua plugin, so anything maki does out of the box your plugin can do too. Tools, slash commands, keymaps, UI, providers.maki.pack.add. They get locked to a commit in pack-lock.json, so you can commit it with your dotfiles. See Lua Packages.--print --output-format stream-json to run UI-less. Output is compatible with Claude Code, so you can easily replace your existing solutions. Same goes for --input-format stream-json, which speaks the Claude Code SDK protocol. See Headless Mode.| 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 |
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.
# 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.
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": {}
}
}
tontinton/makiconf - includes a semble tool (Lua code) for semantic code search, and an ast-grep MCP server for AST-based search and replace.