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.
Loading…
AGI CLI · developer preview
The agi binary is a Rust developer agent. Resume and fork sessions. Run non-interactive code review. Execute in a sandbox with explicit approvals. Works offline with local models.
Capabilities
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.
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.
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.
Lifecycle hooks fire across the session. /skills lists every discovered skill. Custom slash commands are plain markdown files in your project or home directory.
Connect MCP servers over stdio, SSE, or Streamable HTTP with optional OAuth. Or expose agi itself to any MCP client with agi mcp-server.
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.
Running tokens in and out, dollar spend, and context usage sit in the corner of the TUI. Pricing comes from the model catalog. Never hardcoded.
agi migrate imports your settings from Claude Code, and imported commands and prompts are recognized where they already live.
Subcommands
Everything below ships in the agi binary today. Short aliases where it counts: e for exec, a for apply.
| exec | Run a task non-interactively |
| review | Non-interactive code review |
| apply | Apply latest diff as a git patch |
| sandbox | Run a command inside a sandbox |
| mcp-server | Run as an MCP server (stdio) |
| app-server | Run the app server for IDE integration |
| resume | Continue a previous session |
| fork | Fork a previous session |
| session | Inspect or branch sessions |
| plugin | Manage plugins |
| history | Browse session history |
| login | Sign in to a provider or configure BYOK |
| auth-status | Show auth status for every provider |
| init | Initialize ~/.agiworkforce/ |
| onboarding | Re-run the first-run onboarding |
Sandbox
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
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
Point agi at Ollama or LM Studio and work entirely on your machine.
BYOK
Sign in with agi login. Device-code OAuth or an API key.
AGI Cloud
Cloud execution is waitlist-gated and fails closed in the developer preview.
Install
The agi binary builds with a standard Rust toolchain from the AGI source tree. For Desktop, Mobile, and the extensions, head to the download page.
# from the AGI source tree (Rust toolchain) $ cargo install --path apps/cli --bin agi # first run $ agi login $ agi auth-status
Public launch: July 12, 2026
Build the agi binary from source on macOS or Linux. Keep your sessions replayable from day one. AGI Cloud opens by invite.
Public launch · July 12, 2026