跳到正文
DEV Community· E Daugherty·· 3 小時前AI 評分62

2026 年 8 款值得在 Mac 安裝的 Claude Code 終端編碼智能體替代方案

Claude Code Alternatives in 2026: 8 Terminal Coding Agents Worth Installing on Your Mac (OpenCode, Goose, Crush and More)

AI 導讀

這份指南盤點 8 款可在 Mac 使用的 Claude Code 終端替代或配套工具,包括 7 款編碼智能體,以及用來查看使用量和重設時間的 TokenBar。

正文

Claude Code made "an agent in the terminal" normal, but it's far from the only one now. The list moved a lot this year: Google moved free and Google AI Pro/Ultra users off Gemini CLI to a new Antigravity CLI on June 18, 2026.

Here are the terminal agents I'd look at if you want a second option next to Claude Code, or a replacement for it. Every one installs on macOS.

The ones from the big model companies

1. Antigravity CLI

Antigravity CLI (agy) is Google's terminal surface for Antigravity agents, and it's now the Google CLI for free accounts and Google AI Pro/Ultra plans. It runs subagents in parallel, and /agents opens a panel where you can watch them and approve tools. If you used Gemini CLI on a personal account, this is where you go next.

2. GitHub Copilot CLI

Copilot CLI brings Copilot's coding agent into the terminal, with your repos, issues and pull requests reachable in plain English. Install it with brew install copilot-cli. It needs a Copilot plan, and the plans page lists Free at $0 and Pro at $10/month.

3. Cursor CLI

Cursor CLI runs Cursor's agent outside the editor, installed with curl https://cursor.com/install -fsS | bash and started with agent. It has an interactive mode and a print mode for scripts and CI, and you can switch between Anthropic, OpenAI, Gemini and Cursor models with /model.

The open source ones

4. OpenCode

OpenCode is an open source agent with a terminal UI, a desktop app and a mobile app. It works with 200+ providers including local models, and you can log in with ChatGPT Plus or Pro or GitHub Copilot instead of adding another bill. It also ships free models, so you can try it without an account.

5. goose

goose is a general-purpose open source agent with a desktop app and a full CLI, built in Rust. It supports 85+ providers and can run local models directly, without Ollama. It also works as an ACP server for Zed, JetBrains or VS Code, and can use Claude Code or Codex as providers.

6. Crush

Crush is Charm's terminal agent, installed with brew install charmbracelet/tap/crush. You can switch models mid-session without losing context, and it pulls in LSPs for extra context the way your editor does. If you already like Charm's terminal tools, it'll feel familiar.

7. Qwen Code

Qwen Code is an open source agent from the Qwen team, installed with brew install qwen-code. It speaks OpenAI, Anthropic, Gemini and Qwen APIs and can point at a local model through Ollama or vLLM, switchable while it runs. Skills, subagents and MCP work from the first session.

Keeping track once you run more than one

8. TokenBar

Once you have two or three of these going, each one counts down on its own schedule. TokenBar is a menu bar app that shows usage and reset times for Claude, Codex, Cursor, Gemini and Copilot, so you can see which one still has room before you start the next task. It doesn't add quota. It's built on Peter Steinberger's MIT-licensed CodexBar and credits Pixel Agents. $5/month Basic or $15 lifetime Pro, macOS 14+.
TokenBar menu on macOS with Codex, Claude and Cursor tabs, showing Codex session and weekly usage and time until reset

Quick picker

  • Used Gemini CLI on a personal account: Antigravity CLI.
  • Already pay for Copilot: Copilot CLI, or OpenCode signed in with Copilot.
  • Already pay for Cursor: Cursor CLI.
  • Want local models: goose or Qwen Code.
  • Want to switch models mid-task: Crush or Qwen Code.

Which agent sits next to Claude Code in your terminal right now, and did I miss one you'd swap in?

來源:DEV Community · dev.to