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

At a glance

Works with
Universal · cross-platformOpenAI API · Claude API
You'll need
gitShell / CLINetwork accessLocal filesystemMCP Server
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

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.

  1. Developers holding keys for several providers (OpenAI, Anthropic, DeepSeek, Qwen) who want to switch models mid-conversation and compare outputs
  2. Teams running several workstreams on one repository, using /concourse and Crewmate in isolated git worktrees with file leases to avoid overwriting each other
  3. 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
  4. Individuals with local GPUs who prefer /localsetup with Ollama, LM Studio, vLLM or llama.cpp, or /tensorfold, over paying per cloud call
  5. Maintainers facing failing Python, JS/TS, Go or Rust tests who want DAP stepping instead of pasting stack traces back and forth
  6. 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 | sh
  • irm https://mercury-cli.ai/install.ps1 | iex
  • brew install Whq02/mercury/mercury
  • npm 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 | sh

On Windows, in PowerShell 7:

irm https://mercury-cli.ai/install.ps1 | iex

Via Homebrew (macOS and Linux x64):

brew install Whq02/mercury/mercury

Via npm or mise:

npm install -g mercury-tech-cli
mise use -g npm:mercury-tech-cli

Open a new terminal (or run the export PATH line the shell installer prints) and verify:

mercury --version

How 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
mercury

From 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 json

For multi-turn automation, host Mercury over stdio and drive it from the TypeScript or Python SDK:

mercury runner

Point at local models through /localsetup (Ollama, LM Studio, vLLM, llama.cpp), and inspect runtime state with:

mercury health --json

Safety 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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

What are this agent's strengths and limitations?

Pros
  • 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
Limitations
  • 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?

FollowAgents source review · FARS-2.1
Major gaps
46/ 100 5-point scale 2.3 / 5
Trust 14/29
Reliability 6/14
Adaptability 9/18
Convention 10/18
Effectiveness 4/13
Verifiability 3/8
Why each dimension lost points
Trust14 / 29 · 2.4/5

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.

Reliability6 / 14 · 2.1/5

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.

Adaptability9 / 18 · 2.5/5

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.

Convention10 / 18 · 2.8/5

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.

Effectiveness4 / 13 · 1.5/5

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.

Verifiability3 / 8 · 1.9/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Oct 18, 2026 Reviewed revision 9a03495687ac
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/mercurycli.svg)](https://followagents.com/en/agents/mercurycli)
<a href="https://followagents.com/en/agents/mercurycli"><img src="https://followagents.com/badge/mercurycli.svg" alt="FARS review"></a>

FAQ

Does Mercury CLI work on Windows?
Yes. The install notes on this page include a Windows command: irm https://mercury-cli.ai/install.ps1 | iex.
Is Mercury CLI open source?
Yes. The source code is on GitHub (Whq02/MercuryCLI) under the Apache-2.0 licence.
Is Mercury CLI safe to use?
FollowAgents' FARS review (Oct 18, 2026) scored Mercury CLI 14/29 on trust and safety. None of the eight safety controls the review checks for was missing outright.
Is Mercury CLI still maintained?
Yes. The latest commit on GitHub is from 2026-11-22, within the last 30 days.
Who makes Mercury CLI?
Mercury CLI is published on GitHub by the account Whq02. FollowAgents has not verified which person or company is behind that account.
What is Mercury CLI's official website?
The project's GitHub repository lists https://mercury-cli.ai as its website. That link is set by the repository owner; the source code itself is on GitHub (Whq02/MercuryCLI).
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts