Mercury CLI is an open-source AI coding agent that runs in your terminal. It edits code, runs tests, and uses a built-in Debug Adapter Protocol debugger. Sessions and git worktrees can keep running in the background, and Crewmates run in parallel, each in its own git worktree and on its own model.
It is for developers who want to choose their own models, tools, and permissions. It works with many providers, including OpenAI, Anthropic, Google, and Mistral, as well as local models through Ollama, LM Studio, vLLM, or llama.cpp. It can be installed with curl, npm, bun, Homebrew, or mise.
What sets it apart is the set of built-in environment features. These include language server refactors you can preview, structural search by syntax tree, project memory kept on your machine, web search that needs no API key, computer use, and editor bridges for VS Code, Unity, Blender, Godot, and Aseprite.
It is for developers who want to choose their own models, tools, and permissions. It works with many providers, including OpenAI, Anthropic, Google, and Mistral, as well as local models through Ollama, LM Studio, vLLM, or llama.cpp. It can be installed with curl, npm, bun, Homebrew, or mise.
What sets it apart is the set of built-in environment features. These include language server refactors you can preview, structural search by syntax tree, project memory kept on your machine, web search that needs no API key, computer use, and editor bridges for VS Code, Unity, Blender, Godot, and Aseprite.