Mercury CLI
Multiple AI coding sessions in one terminal, mixing any of 22 providers or locally hosted weights.
- Source repo
- Whq02/MercuryCLI
- Stars
- ★ 30
- Last updated
- 2d ago
- FARS reviewed
- Oct 18, 2026
- License
- Apache-2.0
- Primary language
- TypeScript
- FA score
- 46/100 · Major gaps
At a glance
- Works with
- Universal · cross-platformOpenAI API · Claude API
- You'll need
- Typical use
- Developers holding keys for several providers (OpenAI, Anthropic, DeepSeek, Qwen) who want to switch models mid-conversation and compare outputs
- Main limitation
- Everything is locally installed and run; there is no vendor-hosted cloud edition, so teams must distribute and update the binary themselves
- Website
- mercury-cli.ai ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-22
- Source review
- 46/100 · Major gaps
What does this agent do, and when should you use it?
Mercury CLI is a terminal-native environment for AI coding agents that runs inside your own git repositories on macOS, Linux and Windows. The agent reads and edits files, runs shell commands, steps through tests and debuggers, while you choose the provider, the model and what it is allowed to do. It keeps 22 providers signed in at once (OpenAI, Anthropic, Google, DeepSeek, Moonshot, Z.AI, xAI, Mistral, Qwen, Groq, Cerebras and others) and lets you switch models mid-chat, with /localsetup for Ollama, LM Studio, vLLM or llama.cpp, and /llmhost and /tensorfold for rented or self-hosted weights. Parallel work is handled by /concourse sessions and cross-provider Crewmates, each running in an isolated git worktree checkout under project file leases. Beyond the interactive UI it ships headless entry points: mercury run for one-shot prompts and mercury runner, a stdio JSON-RPC host for multi-turn sessions backed by TypeScript and Python SDKs. It is Apache-2.0 licensed, and release archives bundle Node and ripgrep so git is the only separate requirement.
Running mercury inside a repository opens a home screen (New Session, Continue Last Session, Logins/Keys, Session Manager, Boot Menu); inside a session the agent reads and edits files, executes shell commands and checks results. Editing is backed by LSP navigation and previewed refactors, anchored multi-file change transactions, 57-language tree-sitter structural search and rewrite, Debug Adapter Protocol stepping for failing Python, JS/TS, Go and Rust tests, and persistent Python/JavaScript Eval cells. WebSearch cascades through provider-native search, Brave or Tavily keys, official APIs (Stack Exchange, npm, PyPI, crates.io, GitHub, Hacker News, Wikipedia), SearXNG and keyless DuckDuckGo, while WebFetch reads public pages as markdown within a 38,000-character call budget. Each finished session writes a handoff note that the next session reads once at startup alongside pinned rules, and Mneme fuses on-device 118 MB BGE embeddings with BM25 for project memory. Peripheral surfaces include /saturn schedules, /voice on-device Whisper dictation, Computer desktop control, MiniMax video generation, and bridges for VS Code (mercury acp), Unity, Blender, Godot and Aseprite. For automation, mercury run emits text, json or rows, and mercury runner hosts multi-turn sessions over stdio.
- Developers holding keys for several providers (OpenAI, Anthropic, DeepSeek, Qwen) who want to switch models mid-conversation and compare outputs
- Teams running several workstreams on one repository, using /concourse and Crewmate in isolated git worktrees with file leases to avoid overwriting each other
- Engineers wiring the agent into CI or internal tooling via mercury run for one-shot prompts and mercury runner with the TypeScript/Python SDKs for multi-turn sessions
- Individuals with local GPUs who prefer /localsetup with Ollama, LM Studio, vLLM or llama.cpp, or /tensorfold, over paying per cloud call
- Maintainers facing failing Python, JS/TS, Go or Rust tests who want DAP stepping instead of pasting stack traces back and forth
- Long-lived repositories where Mneme memory, pinned rules and session handoff notes keep context from drifting between sessions
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
curl -fsSL https://mercury-cli.ai/install | shirm https://mercury-cli.ai/install.ps1 | iexbrew install Whq02/mercury/mercurynpm install -g mercury-tech-cli
- Install notes cover
- Windows · macOS · Linux
How do you install or deploy this agent?
Release archives for macOS (Apple silicon and Intel), Linux (x64/arm64) and Windows (x64/arm64) already include Node and ripgrep; git is the only separate requirement. On macOS and Linux:
curl -fsSL https://mercury-cli.ai/install | shOn Windows, in PowerShell 7:
irm https://mercury-cli.ai/install.ps1 | iexVia Homebrew (macOS and Linux x64):
brew install Whq02/mercury/mercuryVia npm or mise:
npm install -g mercury-tech-climise use -g npm:mercury-tech-cliOpen a new terminal (or run the export PATH line the shell installer prints) and verify:
mercury --versionHow do you use this agent?
Start an interactive session inside a git repository. On first use, sign in to at least one provider with /logins, then pick a model with /model:
cd /path/to/your/repo
mercuryFrom the home screen choose New Session. Inside a chat, /concourse starts parallel sessions, /memory opens project memory, /saturn schedules recurring or one-shot runs, /voice enables dictation, and /permissions controls what the agent may do. One-shot headless call:
mercury run "fix the failing auth tests" --format jsonFor multi-turn automation, host Mercury over stdio and drive it from the TypeScript or Python SDK:
mercury runnerPoint at local models through /localsetup (Ollama, LM Studio, vLLM, llama.cpp), and inspect runtime state with:
mercury health --jsonSafety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
What are this agent's strengths and limitations?
- 22 providers stay signed in simultaneously with mid-chat model switching, and new sessions default to the most recently connected provider
- Parallel work is genuinely isolated: /concourse sessions and Crewmate delegations run in separate git worktree checkouts governed by project file leases
- Deep editing loop on one surface: LSP navigation and previewed refactors, 57-language tree-sitter search and rewrite, DAP stepping, and persistent Eval cells
- One product covers interactive terminal, mercury run one-shot output (text/json/rows) and mercury runner's JSON-RPC stdio interface, with TypeScript and Python SDKs
- Mneme memory runs on-device with 118 MB BGE embeddings fused with BM25, plus pinned rules, citation tracking and session handoff notes
- Distribution is friendly: archives bundle Node and ripgrep, git is the only extra dependency, and curl, PowerShell, Homebrew, npm and mise installs are all documented
- Everything is locally installed and run; there is no vendor-hosted cloud edition, so teams must distribute and update the binary themselves
- The feature surface is very broad (dozens of slash commands plus memory, debugging, bridges and hosting subsystems), which costs onboarding time
- You must sign in to at least one model provider or own hardware for local weights, and code is sent to whichever provider you pick
- Maintained by a single developer over seven months and 57 public releases, so long-term maintenance and community size are still unproven
- The Windows install script requires PowerShell 7, and several platform details live in separate installation docs
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Mercury CLI This agent | 46 · Major gaps | — | ★ 30 | 2d ago | TypeScript | OpenAI API · Claude API |
| Vigil Multi-Agent Terminal Orchestrator | 68 · Some gaps | Desktop appFree + model costs | ★ 29 | 1d ago | Swift | Codex · Claude Code |
| Codewhale Terminal Coding Agent | 79 · Good | CLIFree + model costs | ★ 41k | today | Rust | OpenAI API · Claude API |
| AgenC Core | 76 · Good | CLIFree + model costs | ★ 144 | 2d ago | TypeScript | — |
How does FollowAgents rate this agent?
Why each dimension lost points
README documents permission modes, /permissions, a workspace trust gate, SHA-256 plus signed-payload verification, --rollback, and install counters that store no IP — all positive signals. However, no permission-enforcement code, sandbox policy, or credential-store implementation is present to inspect; high-risk capabilities (desktop Computer control, voice, shell execution, scheduler) are asserted in prose only, sensitive-data handling has no implementation evidence, and external-effect defaults are not specified. Scores capped at 1–2.
README gives precise Node range, bun version, platform caveats and Windows shell-engine limits, and CI workflows pin action SHAs and bun versions, showing some engineering discipline. But no runtime code or test results are available to check, and failure handling is only described as 'health check reports it' without concrete messages or recovery paths, so self-consistency and failure messages score 1.
Documentation covers multiple platforms, terminals, providers and local models, with rich scenario description. Capability boundaries (which tools are on by default, limits of Computer/voice) are mostly narrative, and trigger conditions (when to ask vs. auto-run) lack checkable rules, so boundaries and trigger precision score 1.
Install notes are exceptionally thorough (multiple methods, paths, updates, verification, platform notes) and information architecture is clear. But naming is inconsistent across repository (MercuryCLI), npm package (mercury-tech-cli) and package.json name (mercury); FAQ and changelog are absent; maintenance responsibility rests on a single named author with 'latest release only' support, so those items are deducted.
The product positioning is clear and the feature surface broad, but no runnable artifact or sample output is in the repository, so output usability, marginal value and cost-benefit rest on README self-description alone and cannot be corroborated; all score 1.
Many README claims (13/20 providers, 118 MB embedding model, DAP debugging, desktop control) have no corresponding code or tests in the supplied files; the only test files are project-intel fixtures that do not demonstrate product behavior; facts and inferences are interleaved, so all score 1.
- No permission-enforcement, sandbox, or credential-store implementation is present, so README security claims cannot be statically verified.
- Desktop Computer control, voice, shell execution and the scheduler are high-side-effect capabilities whose default limits and confirmation flows are not evidenced in code.
- Repository name, npm package name and package.json name disagree; verify install provenance carefully.
- Licence is BUSL-1.1 with a custom community production grant; commercial use has revenue/funding thresholds and competitor restrictions requiring legal review.
- Publisher identity is unverified by FollowAgents and maintenance rests on a single named author, so long-term support is uncertain.
- The supplied test files are fixtures only and do not evidence product quality or test coverage.
FAQ
Does Mercury CLI work on Windows?
irm https://mercury-cli.ai/install.ps1 | iex.Is Mercury CLI open source?
Is Mercury CLI safe to use?
Is Mercury CLI still maintained?
Who makes Mercury CLI?
What is Mercury CLI's official website?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.