# Connect your 7 coding agent CLIs in CmdBrief

> See how Claude Code, Codex, Grok CLI, OpenCode, Cursor CLI, Antigravity CLI, and Kimi CLI work in CmdBrief — crew mixing rules, usage meters, multi-account support, and the per-CLI Use setting.

- **Category:** Setup and safety
- **Updated:** 2026-12-01
- **Reading time:** 6 min
- **Canonical page:** https://cmdbrief.com/guides/connect-agent-clis

## Quick verdict

- All 7 coding agent CLIs run in terminal panes. Six — Claude Code, Codex, Grok CLI, OpenCode, Cursor CLI, and Antigravity CLI — also run in Standard chat panes and mix freely as lead or crew in any combination.
- Kimi CLI runs in terminal panes only: it does not open as a Standard chat pane, cannot lead or join a crew, and exposes no usage meter.
- CmdBrief never proxies model traffic or copies credentials between computers. Every CLI installs with its vendor installer, signs in through its own command, and can be set to On, Limits only, or Off in Settings › Agents.

## What you get

CmdBrief drives the real CLI binaries installed on your computer (or on your paired computers) using your own vendor plans and API keys. Model and effort menus are populated live from each CLI rather than a stale hardcoded list. For a deeper side-by-side of the tools themselves, see [the coding agent CLI comparison](https://cmdbrief.com/guides/agent-cli-comparison) and [Features](https://cmdbrief.com/features).

| CLI & binary | Standard chat | Lead & crew mixing | Usage meter | Multiple accounts |
| --- | --- | --- | --- | --- |
| [Claude Code](https://cmdbrief.com/guides/claude-code) (`claude`) | Yes | Yes — leads or joins any mixed crew | 5-hour & weekly windows, per-model pools, USD cost | Yes (`CLAUDE_CONFIG_DIR`) |
| [Codex](https://cmdbrief.com/guides/codex-cli) (`codex`) | Yes | Yes — leads or joins any mixed crew | Both rate-limit windows; token-weighted estimate | Yes (`CODEX_HOME`) |
| [Grok CLI](https://cmdbrief.com/guides/grok-cli) / Grok Build (`grok`) | Yes | Yes — leads or joins any mixed crew | Weekly credits from the CLI billing log | No |
| [OpenCode](https://cmdbrief.com/guides/opencode) (`opencode`, v2) | Yes | Yes — leads or joins any mixed crew | OpenCode Go rolling, weekly & monthly via Zen API key | Yes (`OPENCODE_DB`, Standard panes) |
| [Cursor CLI](https://cmdbrief.com/guides/cursor-cli) (`cursor-agent`) | Yes | Yes — leads or joins any mixed crew | Monthly Cursor-models & Other-models pools (CLI credential) | No |
| Antigravity CLI (`agy`) | Yes | Yes — leads or joins any mixed crew (since 0.5.102) | Weekly & 5-hour pools (Gemini, Claude & GPT, Gemini 4 Argon) via `agy -p /usage` | One sign-in per computer, with **Switch account…** in Setup |
| [Kimi CLI](https://cmdbrief.com/guides/kimi-cli) (`kimi`) | No (terminal panes only) | No — runs beside crews in terminal panes | None (CLI exposes no usage data) | No |

*All 7 supported coding agent CLIs in CmdBrief*

> **Tip:** Since CmdBrief 0.5.102 ([see changelog](https://cmdbrief.com/changelog)), **Antigravity CLI** can lead a crew of Claude Code, Codex, or other CLIs and join a crew under any lead. Its `agy` binary still runs its own loop and keeps its own Google sign-in. Only **Kimi CLI** stays terminal-only.

You can also add a **DeepSeek** prepaid balance row under **Settings › Usage & cost** (polled from `api.deepseek.com/user/balance` and displayed as currency). DeepSeek is a billing readout, not an agent CLI.

## Install CLIs locally or from Setup

**Step 1 of 3 · An agent can do this** (On this computer, or in Settings › Computers › <computer> › Setup)

On macOS and Linux, clicking **Install** on any missing agent during [onboarding](https://cmdbrief.com/guides/install-cmdbrief) or in a computer’s **Setup** card runs that vendor’s official installer in an embedded terminal box. On Windows, the card gives you the exact PowerShell command to copy and run.

**Official vendor install commands (macOS and Linux)**

```bash
# Claude Code
curl -fsSL https://claude.ai/install.sh | bash

# Codex
curl -fsSL https://chatgpt.com/codex/install.sh | CODEX_NON_INTERACTIVE=1 sh

# Grok CLI (Grok Build)
curl -fsSL https://x.ai/cli/install.sh | bash

# OpenCode (v2 — CmdBrief requires OpenCode 2, not legacy opencode-ai v1)
curl -fsSL https://opencode.ai/install | bash

# Cursor CLI (installs cursor-agent)
curl https://cursor.com/install -fsS | bash

# Antigravity CLI (installs agy)
curl -fsSL https://antigravity.google/cli/install.sh | bash
```

On Windows, Claude Code installs with `irm https://claude.ai/install.ps1 | iex`, Codex with `npm install -g @openai/codex`, and OpenCode 2 with `npm install -g @opencode/cli`. CmdBrief detects both native `.exe` binaries (such as `%USERPROFILE%\.local\bin\claude.exe`) and npm `.cmd` shims.

**Check it worked**

| Where | Run or do | Pass |
| --- | --- | --- |
| Terminal | `claude --version; codex --version; opencode --version; agy --version` | Each CLI you installed prints its version. |
| Linux headless | `cmdbrief agents` | Lists installed CLIs, their sign-in state, `git`, and `gh`. |

## Sign in locally or on a paired computer

**Step 2 of 3 · You do this** (In CmdBrief Setup, or in your own terminal)

CmdBrief never handles your provider passwords or copies `~/.claude`, `~/.codex`, or any other CLI credential between computers. Clicking **Sign in** runs the unmodified CLI’s own login command in a terminal box and waits until the CLI itself reports signed in.

| CLI | Local sign-in command | Remote / headless sign-in (via Setup) |
| --- | --- | --- |
| Claude Code | `claude auth login` (`--console` or `--sso` supported) | Runs `claude auth login`; open link on your Mac and paste code back |
| Codex | `codex login` | Runs `codex login --device-auth`; open link and type the printed code |
| Grok CLI | `grok login` | Runs `grok login --device-auth`; open link and type the printed code |
| OpenCode | `opencode auth login` | Runs `opencode auth login` in the remote terminal box |
| Cursor CLI | `cursor-agent login` | Runs with `NO_OPEN_BROWSER=1`; click **Open sign-in page** on your Mac |
| Antigravity CLI | `agy` | Runs `agy` in the remote terminal box (see SSH note below) |
| Kimi CLI | `kimi login` | Run `kimi login` directly in a terminal pane or SSH session |

*Sign-in commands on this computer vs on a paired remote computer*

To sign in a CLI on a paired Mac, Windows PC, or Linux server without touching its screen, open **Settings › Computers › `<computer>` › Setup** and click **Sign in** on that agent’s row. CmdBrief streams the terminal to your window and surfaces **Open sign-in page** whenever the CLI prints an `https://` login link. See [Run your agents on a Linux server](https://cmdbrief.com/guides/run-agents-on-a-linux-server) and [Pair another Mac or Windows PC](https://cmdbrief.com/guides/pair-mac-and-windows).

> **Warning:** **Antigravity CLI over SSH:** on Linux, signing in to `agy` over SSH automatically reaches CmdBrief’s agents. On macOS and Windows, `agy` keeps an SSH sign-in separate from a local desktop sign-in — if your Setup row warns about a mismatch, sign in from a CmdBrief pane on that machine.

## Control each CLI with Settings › Agents (On / Limits only / Off)

**Step 3 of 3 · You do this** (In Settings › Agents)

Every installed CLI has its own **Use** setting under **Settings › Agents › `<CLI>`**, letting you keep an installed tool out of CmdBrief’s pickers or watch its quota without letting leads start it:

| Setting | Offered in pickers & crews | Agent limits row & polling | Already-open panes |
| --- | --- | --- | --- |
| **On** (default) | Yes — offered, started, hooked, and available to leads and crews | Shown and updated normally | Keep running |
| **Limits only** | No — never offered or started | Kept visible and updated in the sidebar and Limits & pace | Keep running |
| **Off** | No — never used even when installed | Hidden and background readings stop | Keep running |

*Per-CLI Use setting options*

If a lead tries to start a CLI set to **Limits only** or **Off**, CmdBrief returns a plain message (`"<CLI> is turned off in Settings › Agents › <CLI>. Turn its Use back On there to start it."`) instead of failing silently.

On the same Settings page, saved **Codex**, **Antigravity CLI**, and **Grok** models can follow the newest release in their model family (for example, choosing a `"Newest …"` entry beside pinned exact model IDs), so new sessions pick up family updates automatically while running sessions keep their current model. For multi-account switching and per-workspace accounts (Claude Code, Codex, and OpenCode), see [Multiple CLI accounts, usage limits, and cold-cache resume](https://cmdbrief.com/guides/multiple-accounts-and-usage-limits).

**Check it worked**

| Where | Run or do | Pass |
| --- | --- | --- |
| Settings › Agents | Set a CLI you do not want crews to spawn to **Limits only** or **Off** | It disappears from Deploy agent and crew pickers; Limits only keeps its quota row. |
| Sidebar | Check the **Agent limits** line | Every enabled CLI with reliable provider limit data reports its current window. |

## If it fails

| What it says | Fix |
| --- | --- |
| An installed CLI shows “Not installed” in Setup | CmdBrief resolves binaries from your login shell `PATH`. Confirm `which claude` (or `codex`, `cursor-agent`, `agy`, `opencode`) works in a fresh login shell, then click **Check again**. |
| Cursor CLI shows no usage limits on Linux or Windows | **You:** Cursor’s usage meter reads the Cursor CLI’s own login (`cursor-agent login`), not the Cursor desktop editor’s sign-in. Sign in to `cursor-agent` directly. |
| A lead fails to start a CLI with “turned off in Settings › Agents” | **You:** Open **Settings › Agents › `<CLI>`** and switch **Use** from **Limits only** or **Off** back to **On**. |
| OpenCode fails to connect in a Standard pane | CmdBrief requires OpenCode 2 (`@opencode/cli` or `https://opencode.ai/install`). The older npm `opencode-ai` package stops at OpenCode 1 and is refused. |
| An agent keeps asking to sign in after you already signed in externally | **You:** Verify you signed in under the same account folder (`CLAUDE_CONFIG_DIR` / `CODEX_HOME` if using multiple accounts) and on the same computer. Completing a sign-in or working turn clears the card automatically. |

## Questions

### Can Antigravity CLI lead or join a crew with Claude Code and Codex?

Yes. Since CmdBrief 0.5.102, all six Standard-pane CLIs — Claude Code, Codex, Grok CLI, OpenCode, Cursor CLI, and Antigravity CLI — mix freely as lead or crew members. Only Kimi CLI stays outside crews in terminal panes.

### Why does Kimi CLI only open in terminal panes?

CmdBrief supports Kimi CLI via native PTY terminal panes with managed status hooks in Kimi’s `config.toml`, not as a Standard structured chat pane or crew member, and Kimi does not expose a usage-limit feed.

### Which CLIs support multiple signed-in accounts at once?

Claude Code (`CLAUDE_CONFIG_DIR`), Codex (`CODEX_HOME`), and OpenCode (`OPENCODE_DB`, for Standard panes) keep multiple isolated accounts signed in simultaneously under Settings › Agents › Accounts and Workspace settings › Accounts. Antigravity CLI supports one sign-in per computer with a **Switch account…** action in Setup.

### Can I turn off an installed CLI without uninstalling it?

Yes. Open Settings › Agents › `<CLI>` and set **Use** to **Limits only** (keeps its usage meter while hiding it from pickers and crews) or **Off** (hides it completely and stops polling its usage).

## Primary sources

Provider terms and product behavior can change. Confirm plan, pricing, model, and permission details in the current official documentation.

- [Claude Code setup](https://code.claude.com/docs/en/quickstart)
- [OpenAI Codex CLI](https://developers.openai.com/codex/cli/)
- [xAI Grok Build overview](https://docs.x.ai/build/overview)
- [OpenCode documentation](https://opencode.ai/docs/)
- [Cursor CLI installation](https://cursor.com/docs/cli/installation)
- [Antigravity CLI getting started](https://antigravity.google/docs/getting-started?tab=cli)

## Keep reading

- Setup and safety: [Install CmdBrief on Mac, Linux, or Windows](https://cmdbrief.com/guides/install-cmdbrief)
- Usage and plans: [Multiple CLI accounts, usage limits, and cold-cache resume](https://cmdbrief.com/guides/multiple-accounts-and-usage-limits)
- Workflows: [Run a lead agent and crew in CmdBrief](https://cmdbrief.com/guides/lead-and-crew-workflow)
- Comparisons: [Agent CLI Comparison (2026): 7 Terminal Agents](https://cmdbrief.com/guides/agent-cli-comparison)
- Setup and safety: [How to run an MCP server without Docker](https://cmdbrief.com/guides/how-to-run-mcp-without-docker)

---

Markdown mirror of https://cmdbrief.com/guides/connect-agent-clis, generated at build time from the same data the HTML page renders. Machine-readable index: https://cmdbrief.com/llms.txt
