Mercury CLI: A complete environment for AI-assisted development

Mercury CLI is a terminal-native environment for AI coding agents. Edit code, run tests and use a debugger. Keep sessions and git worktrees going and review every diff. You choose models, tools and permissions.

Native to OpenAI, Anthropic, Google, DeepSeek, Moonshot, Z.AI, OpenRouter, Hugging Face, xAI, Meta, Mistral, Nous Portal, OpenCode Zen, Qwen, MiniMax, Together AI, Cohere, Groq, Cerebras, Fireworks AI, or your own local/hosted weights.

What it does

Install

Pick the line for your machine and run it in a terminal.

Requires git; the archive carries its own Node and ripgrep.

In Windows PowerShell, or after a Homebrew, npm, bun or mise install, run mercury in the same terminal; after the curl script on macOS or Linux, open a new terminal or follow the PATH line the installer prints, then run mercury. See Quickstart.

Docs · SDK · Releases · Notes