SuperAPIAI Directory

MercuryCLI

github.com · AI coding

MercuryCLI is an open-source terminal AI coding agent that runs in git repositories on macOS, Linux, and Windows. It can read and edit files, execute shell commands, run tests and debuggers, and supports breakpoints, live value reading, and syntax-tree-based code rewriting (covering 57 languages). Users can choose cloud or local models, with support for 22 model providers, and can switch models mid-conversation. The project is licensed under Apache 2.0 and provides TypeScript and Python SDKs.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux · API

About this tool

MercuryCLI is a terminal-native AI coding agent environment that runs inside the user's own git repository and supports macOS, Linux, and Windows. It allows the agent to read and edit files, run shell commands, step through tests and debuggers, and inspect results, while the user chooses the model provider, model, and the agent's permission scope.

Key capabilities include:

  • Multi-model support: log in to 22 model providers simultaneously (such as OpenAI, Anthropic, Google, DeepSeek, etc.) and switch models mid-conversation; supports connecting to local models such as Ollama, LM Studio, vLLM, or llama.cpp via /localsetup.
  • Session management: interactive startup enters the home screen, supporting new sessions, resuming the last session, login/key management, session manager, launch menu (including MCP and skills, agents), and configuration files; supports parallel sessions (/concourse) and cross-provider collaboration (Crewmate), running in isolated git worktrees.
  • Headless CLI and JSON-RPC: one-shot prompts can be executed via mercury run "<prompt>", or multi-turn sessions hosted over stdio via mercury runner, with TypeScript and Python SDKs provided.
  • Project memory: Mneme hybrid RAG project memory, combining local 118 MB BGE semantic embeddings with BM25 lexical ranking, supporting citation tracking, pinned rules, contradiction checks, session handoff notes, and a /memory page browser graph.
  • Code intelligence: LSP navigation and preview refactoring, tree-sitter search and rewriting for 57 languages, DAP debugger stepping for Python, JS/TS, Go, and Rust tests, and persistent Python and JavaScript code cells.
  • Web search and fetching: keyless WebSearch cascading across multiple search sources, WebFetch reads public pages as markdown (budget of 38,000 characters per call).
  • Other features: computer use, Whisper voice dictation (/voice), scheduled tasks (/schedule), MiniMax video generation, and bridges for VS Code, Unity, Blender, Godot, and Aseprite.

Usage: install from the release archive (includes Node and ripgrep; only git needs to be installed separately), run mercury in a terminal and enter the repository; interactive commands can be viewed via /help and searched via /palette.

Use cases: AI-assisted coding in the terminal, multi-model collaborative development, automated code modification and debugging, project memory management, and more.

Limitations: the materials do not provide specific pricing, cost, or performance data; some features (such as video generation and computer use) may depend on external services or specific configurations.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools