Description
Mercury CLI provides a robust, terminal-native environment designed for AI coding agents. This open-source tool empowers developers to perform a wide array of coding tasks directly from their terminal, including editing code, running tests, and utilizing a built-in debugger. It is engineered to keep sessions and Git worktrees active in the background, ensuring continuous workflow.
Read More
Users have the flexibility to choose their preferred models, tools, and permissions, tailoring the environment to their specific needs. Mercury CLI supports a broad spectrum of model providers, including OpenAI, Anthropic, Google, DeepSeek, and many others, alongside the capability to run local models via platforms like Ollama, LM Studio, vLLM, or llama.cpp, with guided setup available within the CLI.
A key feature is its ability to run multiple "Crewmates" in parallel, each operating in its own Git worktree and utilizing a dedicated model. This parallel processing enhances efficiency for complex development tasks. The tool also allows for seamless switching between model providers mid-task without interrupting the chat session.
Debugging and testing are integrated deeply, with a built-in Debug Adapter Protocol (DAP) debugger that supports launching, attaching, breakpoints, stepping, and variable evaluation, all under configurable permission gates. The Test tool discovers, runs, and reruns failed tests for various languages and frameworks, automatically directing failing tests into the debugger.
Advanced code manipulation features include structural search (AstSearch) and edit (AstEdit) by syntax tree, allowing developers to find and rewrite code based on its shape. Language Server Protocol (LSP) integration provides functionalities like go-to-definition, references, and refactors that can be previewed before application. Mercury CLI also offers project memory that persists on the user's machine, ranking information by meaning and words, and a web search function that operates without requiring an API key.
Further capabilities include computer use, where the model can see the screen and control the active window, voice dictation with Whisper, and editor bridges for popular IDEs and tools like VS Code, Unity, Blender, Godot, and Aseprite. It also incorporates JevEval for numerical second opinions on closed questions and supports scheduled sessions that can start or wake at a set time. Permission modes range from strict ask-first to fully autonomous, giving users control over agent behavior. Mercury CLI is available at no cost.
- CategoryAI Coding Assistants
- Pricing ModelFree
- DeploymentTerminal-Native
- PlatformsWindows, macOS
Mercury CLI's Core Features
Terminal-native AI coding agents
Edit code, run tests, and use a debugger
Background sessions and Git worktrees
Parallel Crewmates in separate Git worktrees
Switch model providers mid-task
Local model support (Ollama, LM Studio, vLLM, llama.cpp)
Built-in Debug Adapter Protocol (DAP) debugger
Test tool for pytest, unittest, node:test, vitest, jest, Go, cargo
Language Server Protocol (LSP) integration
Structural search and edit by syntax tree
Project memory with hybrid retrieval
Web search without API key
Computer use (model sees screen, controls active window)
Voice dictation with Whisper
Editor bridges (VS Code, Unity, Blender, Godot, Aseprite)
JevEval for numerical second opinions
Scheduled sessions and recurrences
Configurable permission modes (ask-first to autonomous)
How to use Mercury CLI?
Install Mercury CLI: Follow the guided setup for your operating system.
Configure Models: Choose between native multiprovider support (OpenAI, Anthropic, Google, etc.) or set up local models via Ollama, LM Studio, or similar.
Define Permissions: Select the autonomy level for your agents, from strict ask-first to fully autonomous.
Start a Session: Initiate a coding session in your terminal, specifying the task for the AI agent.
Code and Debug: Utilize the agent to edit code, run tests, and step through the built-in debugger.
Manage Worktrees: Leverage parallel Crewmates in separate Git worktrees for complex or concurrent tasks.
Review and Refine: Preview LSP refactors, review structural edits, and use project memory for context.
Mercury CLI's Use Cases
- Automated Code Editing
- Automated Testing and Debugging
- Parallel Development Tasks
- Local Model Development
- Structural Code Refactoring
- Context-Aware Coding Assistance
- Desktop Automation with AI
- Scheduled Development Sessions






