AGI

AGI CLI · Coming soon

AGI CLI

Capabilities

A full agent runtime.

Headless

agi exec for CI

Run any task non-interactively and stream typed JSON events. Every tool call, fallback, and turn usage arrives as machine-readable JSONL your pipeline can parse.

Sessions

Resume, fork, replay

Every session persists with a turn-by-turn journal. Continue with agi resume. Branch with agi fork. Fork any past turn into a new named session.

Safety

Sandboxed by default

Tool execution runs inside macOS Seatbelt or Linux bubblewrap. Opting out is loud: the TUI shows a red “no sandbox” indicator whenever sandboxing is off.

Extensibility

Hooks, skills & plugins

Lifecycle hooks fire across the session. /skills lists every discovered skill. Custom slash commands are plain markdown files in your project or home directory.

MCP

MCP in both directions

Connect MCP servers over stdio, SSE, or Streamable HTTP with optional OAuth. Or expose agi itself to any MCP client with agi mcp-server.

Routing

Multi-model fallback

Pass a comma-separated model list and the CLI fails over on rate limits, network errors, and stream disconnects. A visible banner and a JSON event fire on each switch.

Cost

Live cost HUD

The TUI status line shows session tokens, credits and context usage. Credit totals are computed from the session cost ledger.

Migration

Bring your setup

agi migrate imports your settings from Claude Code, and imported commands and prompts are recognized where they already live.

Subcommands

One binary. 15 core subcommands.

Every subcommand below ships in the agi binary. Short aliases where it counts: e for exec, a for apply.

execRun a task non-interactively
reviewNon-interactive code review
applyApply latest diff as a git patch
sandboxRun a command inside a sandbox
mcp-serverRun as an MCP server (stdio)
app-serverRun the app server for IDE integration
resumeContinue a previous session
forkFork a previous session
sessionInspect or branch sessions
pluginManage plugins
historyBrowse session history
loginSign in to a provider or configure BYOK
auth-statusShow auth status for every provider
initInitialize ~/.agiworkforce/
onboardingRe-run the first-run onboarding

Sandbox

Risky actions run inside a box.

On Linux the sandbox is bubblewrap. On macOS it's Seatbelt. Tool execution runs under OS-level sandboxing by default. Riskier actions ask for explicit approval. Turning the sandbox off is a visible, deliberate choice.

Trust modes

Your terminal, your boundary.

Local, BYOK, and AGI Cloud stay separate in the CLI too. /privacy-mode shows the active trust boundary. A Local session only continues elsewhere when you explicitly ask.

Local

Offline with local models.

Point agi at Ollama or LM Studio and work entirely on your machine.

  • Local sessions never silently leave your device
  • /privacy-mode shows the active trust boundary
  • Session journals live under ~/.agiworkforce/
  • No account required
Run AGI Locally

BYOK

Your keys, your billing.

Run agi login <provider>, such as agi login anthropic, and paste your key. A bare agi login signs in to your AGI account instead.

  • Provider keys for the built-in providers, plus custom OpenAI-compatible endpoints
  • Traffic goes directly to your provider
  • /continue-with-byok is an explicit, visible step
  • agi auth-status shows every configured provider
Set Up BYOK

AGI Cloud

Managed compute, public alpha.

Cloud execution from the CLI is public alpha, part of the higher paid plans, and still fails closed without an explicit route.

  • Included with Pro, Max 5x, Max 20x, Team, and Enterprise; upgrades start from the pricing page
  • No agi cloud command: managed runs use the normal model path
  • Clear labels before anything routes to cloud
  • Usage metered and transparent
Get Started

Coming soon

Every install is verified.

The agi binary is built for macOS, Linux, and Windows. Its installer checks each release’s signature and checksum before it installs anything, and the download page shows which platforms a signed release covers.

Loading...

AGI CLI

An agent for your terminal.

Resumable sessions, sandboxed execution, and AGI managed cloud in public alpha, included with Pro, Max 5x, Max 20x, Team, and Enterprise.

Check availabilityExplore AGI Code