Black Friday at Hostinger: 15% off yearly and longer plans with BFVPS15, until 6 Dec. See plans

Black Friday: 15% off hosting with BFVPS15

Open Source Alternatives
  • Alternatives
  • Categories
    Categories by size1,343 projects
    • Developer Tools687
    • AI & Machine Learning556
    • Business & Productivity333
    • Web Development220
    • Security & Monitoring205
    • Communication & Collaboration173
    • IT Management166
    • Design & Creative151
    • DevOps & CI/CD145
    • LLMOps & AI Tooling144
    Browse all 21 categoriesProduct & Project Management, Cloud & Hosting and 9 more
  • Blog
  • Advertise
SearchNotion, Slack, password manager.../
Submit
Open Source Alternatives
  • Alternatives
    • Developer Tools687
    • AI & Machine Learning556
    • Business & Productivity333
    • Web Development220
    • Security & Monitoring205
    • Communication & Collaboration173
    • Browse all 21 categories
  • Blog
  • Advertise
Submit your project

New open source projects by email

The projects we add and every new guide. Free, unsubscribe any time.

Open Source Alternatives LogoOpen Source Alternatives

Handpicked Open Source Alternatives to Paid Softwares

Add Open Source Alternatives as a preferred source on Google

Product

  • Categories
  • Tag
  • Advertise

Resources

  • Blog
  • Collection
  • Submit

Company

  • Privacy Policy
  • Terms of Service
  • Refund Policy
  • Sitemap

Alternatives

  • Claude Code
  • Jira
  • Notion
  • Slack
  • Linear
  • Wispr Flow
  • All alternatives
© 2026 Open Source Alternatives. All rights reserved.
Open SourceAlternatives
Home/Categories/Developer Tools/Mercury CLI
icon of Mercury CLI

Mercury CLI

Open source alternative to Claude Code

  • 32 stars
  • Apache-2.0
  • Active this week
  • Last commit today

Last verified Nov 28, 2026

Run an open source AI coding agent in your terminal, with 22 model providers, a built-in debugger, and parallel sessions.

Visit websiteGitHub32 stars
Mercury CLI landing page: a complete environment for AI-assisted development
TL;DR

Mercury CLI is an open source terminal coding agent that works with 22 model providers, including local models on your own machine. It edits code, runs tests, and steps through a debugger when tests fail. It is a free alternative to paid tools like Claude Code. Apache 2.0 licensed, runs on macOS, Linux, and Windows. Best for developers who want to choose their own model or run one locally without a subscription.

Read the full breakdownHide the full breakdownWho it is for, how it works, trade-offs, the quick start and the FAQ
who it's for

Who Mercury CLI is for#

Developers who want to use a local model

If you work with sensitive code or want to avoid sending files to external services, connect Ollama or llama.cpp from inside the tool. The agent then runs entirely on your machine.

Skip if:

You are comfortable with a managed tool and do not need to keep code on your own machine.

Debugging a failing test with an AI agent

When a test fails and the error message is not enough, Mercury CLI steps through it with a debugger. It sets breakpoints, reads live variable values, and rewrites code based on what it finds at runtime.

Skip if:

Your tests are simple enough to fix by reading the error message.

Teams running several coding tasks at once

Run one agent per task, each in its own git branch with its own model. Each session hands off notes to the next one automatically. You can run agents on different models at the same time.

Skip if:

You work on one thing at a time and do not need parallel sessions.

the problem

The problem it solves#

Most AI coding tools give you one model. You pay a subscription and use whatever model the company offers. If the pricing goes up or the model you rely on gets worse, the only way to change is to change tools entirely.

Running a debugger alongside an AI agent is not standard in most tools. When a test fails and the error message is not enough, you still switch to a separate debugger by hand. That extra step slows down the feedback loop.

how Mercury CLI solves it

How it solves it#

22 model providers

Connect your own key for OpenAI, Anthropic, Google, DeepSeek, Mistral, and 17 more. Switch models in the middle of a task. Run a local model through Ollama or llama.cpp from inside the tool.

Built-in debugger

Steps through failing tests in Python, JavaScript, TypeScript, Go, and Rust. Sets breakpoints and reads live variable values as the test runs. The agent uses what it sees at runtime to rewrite the code.

Parallel sessions in separate git branches

Run several agents at the same time, each in its own git branch. Each session writes a handoff note when it finishes. The next session reads that note at startup, so context carries across without manual copying.

Structural search and edit in 57 languages

Find and rewrite code by its shape in the syntax tree, not just by text match. Works in 57 programming languages. Useful for changes like renaming a function signature across a whole codebase.

On-device project memory

Stores notes about your project on your own machine. Finds the most relevant notes by meaning, not just exact words. Notes never leave your machine.

strengths · trade-offs

Strengths and trade-offs#

Strengths

  • Free to use with any model you chooseNo subscription. You bring your own key for any of the 22 supported providers. Connect a local model through Ollama or llama.cpp and you pay nothing beyond your hardware.
  • Apache 2.0 licenseNo restrictions on commercial or team use. You can run it, modify it, and use it in a business without asking permission or paying a fee.
  • Runs entirely on your machineInstall it once and it runs locally. All notes and session data stay on your machine. If you use a local model, nothing about your code is sent to an external service.

Trade-offs

  • -New project, one developerIts public repository opened in September 2026, and one person builds and maintains it. It has had 59 public releases in its first few months, so it moves fast, but breaking changes are possible. A single-developer project also carries more risk if maintenance slows down.
  • -You manage your own keys and model costsMercury CLI does not include model access. You need a key from each model provider you want to use. For paid models, you pay the provider directly for each request. For heavy use, this may cost more than a fixed tool subscription.
versus alternatives

Mercury CLI vs alternatives#

Mercury CLI vs Claude Code

Mercury CLI and Claude Code do the same core job. Both read your code, make edits, run commands, and work through tasks you describe in plain English.

Model choice

Claude Code works with Anthropic's Claude models only. Mercury CLI supports 22 model providers: OpenAI, Anthropic, Google, DeepSeek, Mistral, and more. You can also connect a local model through Ollama or llama.cpp.

Platforms

Claude Code works across terminal, IDE (code editor), desktop, and browser surfaces. Mercury CLI works in the terminal and includes editor bridges for Visual Studio Code, Unity, Blender, Godot, and Aseprite.

Built-in debugger

Mercury CLI includes a built-in debugger that sets breakpoints, reads live variable values, and steps through failing tests in Python, JavaScript, TypeScript, Go, and Rust. This is a feature Mercury CLI adds on top of the standard code-edit-and-test loop.

Parallel sessions

Mercury CLI runs several agents at the same time, each in its own git branch with its own model. Each session writes a handoff note when it finishes so the next session can continue without manual context transfer.

Price

Claude Code is a paid tool. Mercury CLI is free and open source under the Apache 2.0 license. You pay only for the model calls you make to your chosen provider. If you run a local model, there is no cost beyond your hardware.

Who to pick

Pick Mercury CLI to use your own model, run a local model, access a built-in debugger, or run parallel sessions with handoff notes. Pick Claude Code if you want tight integration with Anthropic's Claude model family and support across IDE (code editor), desktop, and browser surfaces.

install · quick start

Quick start#

bash
Install Mercury CLI with Homebrew on macOS and Linux, or with npm, curl, or PowerShell on any platform.
```bash
brew install Whq02/mercury/mercury
npm install -g mercury-tech-cli
curl -fsSL https://mercury-cli.ai/install | sh
irm https://mercury-cli.ai/install.ps1 | iex
```
tech stack · detected from GitHub

What it's built on#

Languages
JavaScriptPythonTypeScript
Frameworks
React
frequently asked

FAQ#

Can Mercury CLI replace Claude Code?

Yes. Mercury CLI does the same job: it reads your code, edits files, runs tests, and works through tasks you describe in plain English. Claude Code is a paid tool that works with Anthropic's Claude models only. It also works across IDE (code editor), desktop, and browser surfaces, not only the terminal. Mercury CLI is free and open source. You bring your own key for any of 22 model providers, including Anthropic's Claude if you want it. The tradeoff is that Mercury CLI is maintained by one developer and is a newer project. Claude Code is from Anthropic and has been tested by more users.

How do I install Mercury CLI?

On macOS or Linux, run the one-line curl installer. On Windows, run the PowerShell installer. You can also install it through Homebrew, npm, bun, or mise. The curl and PowerShell installers bring their own copy of Node and ripgrep, so git is the only other thing you need. After installing, run mercury inside a git repository to start.

Can I use Mercury CLI with a local model?

Yes. Connect Ollama or llama.cpp from inside the tool using the /localsetup command. The agent then runs entirely on your machine. Your code and notes never leave your machine when you use a local model.

What languages does it support for structural search?

Mercury CLI searches and edits code by shape in 57 programming languages. This is useful for finding patterns that plain text search would miss, like all function calls with a specific signature.

Is Mercury CLI open source?

Yes. The code is on GitHub under the Apache 2.0 license. You can use it, change it, and use it in a commercial project without restriction. The toolkits for building on it in TypeScript and Python are also Apache 2.0.

Looking for more

Other ways to replace Claude Code#

OpenCode

#1 in the Claude Code guide

Broad provider and model choice in a terminal-first client, MIT-licensed with AGENTS.md instructions

229,305 GitHub stars

oh-my-pi

#2 in the Claude Code guide

Direct Claude configuration inheritance with Anthropic subscription support

39,904 GitHub stars

kilocode

#3 in the Claude Code guide

Documented Claude transcript import with IDE and CLI surfaces

28,135 GitHub stars

Goose

#4 in the Claude Code guide

ACP subscription bridge that reuses an existing Claude Code or ChatGPT subscription

57,021 GitHub stars
All 26 Claude Code alternatives10 open source Claude Code alternatives, ranked
by category

Open source tools in these categories#

687

Developer Tools

REA (Reverse Engineer Anything), Skills for Real Engineers, superpowers
556

AI & Machine Learning

freeCodeCamp, REA (Reverse Engineer Anything), OpenClaw

Sponsors

SnitchFeed

Live monitoring on LinkedIn, X, Reddit & more. Agentic social listening for startups.

Marketing & Growth

Windshift

Alternative toJira

Self-hosted work management for teams leaving Jira

  • 481 GitHub stars
  • AGPL-3.0Licence AGPL-3.0

Nuphos

Alternative toConductor

Agent workspace for teams running Claude Code or Codex

  • 802 GitHub stars
  • Apache-2.0Licence Apache-2.0
  • #AI Agents
Advertise your product

New open source projects by email

The projects we add and every new guide. Free, unsubscribe any time.

Find open source alternatives to paid software

/
  • Claude Code to OpenCode
  • Jira to Windshift
  • Notion to AppFlowy
  • Slack to Mattermost
  • Linear to GitLab
  • Wispr Flow to Handy
  • Microsoft To Do to Super Productivity
  • Arc to Zen Browser
  • CapCut to Concat
  • Grok Bot to Rakazo
  • Superhuman to Inbox Zero
  • Discord to Stoat
  • Airtable to AITable
  • Datadog to SigNoz
  • Muse to OpenClaw
  • Railway to Coolify
  • GitHub Copilot to Cline
  • Confluence to Wiki.js
  • Microsoft Teams to Rocket.Chat
  • 1Password to KeePassXC
  • Zapier to n8n
  • Pinecone to Qdrant
  • Contentful to Strapi
  • Firebase to Supabase
  • Claude Code to OpenCode
  • Jira to Windshift
  • Notion to AppFlowy
  • Slack to Mattermost
  • Linear to GitLab
  • Wispr Flow to Handy
  • Microsoft To Do to Super Productivity
  • Arc to Zen Browser
  • CapCut to Concat
  • Grok Bot to Rakazo
  • Superhuman to Inbox Zero
  • Discord to Stoat
  • Airtable to AITable
  • Datadog to SigNoz
  • Muse to OpenClaw
  • Railway to Coolify
  • GitHub Copilot to Cline
  • Confluence to Wiki.js
  • Microsoft Teams to Rocket.Chat
  • 1Password to KeePassXC
  • Zapier to n8n
  • Pinecone to Qdrant
  • Contentful to Strapi
  • Firebase to Supabase