Skip to main content
ToolPotion
AI Advisor
Submit a Tool (Free)

Mercury CLI

AI AgentsAI Coding AssistantsFree · Windows, macOS

Mercury CLI is an open-source, terminal-native environment for AI coding agents. It allows users to edit code, run tests, and utilize a debugger directly within the terminal. The tool supports various models, including local ones, and enables parallel execution of agents in separate Git worktrees. It also features project memory, web search, and scheduled sessions, providing a comprehensive AI-assisted development experience.

Visit Website
Share
Mercury CLI screenshot
Mercury CLI screenshot

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

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

  1. Install Mercury CLI: Follow the guided setup for your operating system.

  2. Configure Models: Choose between native multiprovider support (OpenAI, Anthropic, Google, etc.) or set up local models via Ollama, LM Studio, or similar.

  3. Define Permissions: Select the autonomy level for your agents, from strict ask-first to fully autonomous.

  4. Start a Session: Initiate a coding session in your terminal, specifying the task for the AI agent.

  5. Code and Debug: Utilize the agent to edit code, run tests, and step through the built-in debugger.

  6. Manage Worktrees: Leverage parallel Crewmates in separate Git worktrees for complex or concurrent tasks.

  7. Review and Refine: Preview LSP refactors, review structural edits, and use project memory for context.

  • 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

Mercury CLI Reviews

Loading...

Popular AI Tools Like Mercury CLI

Cline

AI Agents

Cline is an open-source AI coding assistant designed to enhance development workflows. It features Plan/Act modes, terminal execution, and Model Context Protocol support, making…

AI Coding Assistants

Ranked #23 in AI Agents

View Tool

AI Agents

Open-source AI coding assistant designed to enhance development workflows. It features Plan/Act modes, terminal execution, and Model Context Protocol support, making…Cline is an open-source AI coding assistant designed to enhance development workflows. It features Plan/Act modes, terminal execution, and Model Context Protocol support, making…

FeaturedAI Coding Assistants
Ranked #23 in AI Agents

gptme is a provider-agnostic, local-first AI agent that runs in any terminal. It offers a powerful CLI for coding, knowledge work, and autonomous agent tasks, supporting numerous…

AI Coding Assistants

Ranked #211 in AI Agents

View Tool

Provider-agnostic, local-first AI agent that runs in any terminal. It offers a powerful CLI for coding, knowledge work, and autonomous agent tasks, supporting numerous…gptme is a provider-agnostic, local-first AI agent that runs in any terminal. It offers a powerful CLI for coding, knowledge work, and autonomous agent tasks, supporting numerous…

AI Coding Assistants
Ranked #211 in AI Agents

OpenHands

AI Agents

OpenHands is an open-source, model-agnostic platform for cloud coding agents that automates engineering tasks securely and transparently. It allows teams to build faster with full…

AI Coding Assistants

Ranked #15 in AI Agents

View Tool

AI Agents

Open-source, model-agnostic platform for cloud coding agents that automates engineering tasks securely and transparently. It allows teams to build faster with full…OpenHands is an open-source, model-agnostic platform for cloud coding agents that automates engineering tasks securely and transparently. It allows teams to build faster with full…

FeaturedAI Coding Assistants
Ranked #15 in AI Agents

Jules is an Autonomous coding agent that allows developers to focus on their coding tasks while it handles the mundane tasks. It streamlines the coding process, making it easier…

AI Coding Assistants

Ranked #16 in AI Agents

View Tool

Autonomous coding agent that allows developers to focus on their coding tasks while it handles the mundane tasks. It streamlines the coding process, making it easier…Jules is an Autonomous coding agent that allows developers to focus on their coding tasks while it handles the mundane tasks. It streamlines the coding process, making it easier…

FeaturedAI Coding Assistants
Ranked #16 in AI Agents

dcode is an open-source terminal coding agent built on the Deep Agents SDK. It allows customization of agent harnesses, control over code execution, and integration with various…

AI Agent Builders

Ranked #142 in AI Agents

View Tool

Open-source terminal coding agent built on the Deep Agents SDK. It allows customization of agent harnesses, control over code execution, and integration with various…dcode is an open-source terminal coding agent built on the Deep Agents SDK. It allows customization of agent harnesses, control over code execution, and integration with various…

AI Agent Builders
Ranked #142 in AI Agents

SwarmPane

AI Apps

SwarmPane is a desktop workspace designed for AI coding agents, allowing users to run multiple CLIs like Claude Code and Codex side-by-side in real terminals. It integrates…

AI Coding Assistants

Ranked #154 in Coding & Development

View Tool

AI Apps

Desktop workspace designed for AI coding agents, allowing users to run multiple CLIs like Claude Code and Codex side-by-side in real terminals. It integrates…SwarmPane is a desktop workspace designed for AI coding agents, allowing users to run multiple CLIs like Claude Code and Codex side-by-side in real terminals. It integrates…

AI Coding Assistants
Ranked #154 in Coding & Development

AI DevKit

AI Apps

AI DevKit is an open-source command-line interface (CLI) that acts as a control plane for managing multiple AI coding agents. It provides a unified console, shared memory, and a…

AI Coding Assistants

Ranked #152 for Explaining code

View Tool

AI Apps

Open-source command-line interface (CLI) that acts as a control plane for managing multiple AI coding agents. It provides a unified console, shared memory, and a…AI DevKit is an open-source command-line interface (CLI) that acts as a control plane for managing multiple AI coding agents. It provides a unified console, shared memory, and a…

AI Coding Assistants
Ranked #152 for Explaining code

goose

AI GitHub Repos

Goose is an open source, extensible AI agent that enhances coding by allowing users to install, execute, edit, and test with any LLM, providing a versatile tool for developers…

AI Coding Assistants

Ranked #33 in AI GitHub Repos

View Tool

AI GitHub Repos

Open source, extensible AI agent that enhances coding by allowing users to install, execute, edit, and test with any LLM, providing a versatile tool for developers…Goose is an open source, extensible AI agent that enhances coding by allowing users to install, execute, edit, and test with any LLM, providing a versatile tool for developers…

FeaturedAI Coding Assistants
Ranked #33 in AI GitHub Repos
1 of 8