@cargo-ai/cli. It exposes three layers that share the same
authentication, the same JSON responses, and the same platform surface:
CLI
Imperative, one-off commands. Run tools, trigger plays, query the
warehouse, chat with agents — from a terminal, a script, or CI.
CDK
Declarative infrastructure-as-code. Define a whole workspace in TypeScript
and reconcile it with
plan / deploy.Skills
Structured prompt packages that teach Claude Code, Cursor, Codex and other
agents how to drive the CLI in natural language.
cargo-ai cdk subcommand, and
Skills are prompt packages layered on top of the same CLI. Install once,
authenticate once, then pick the layer that fits the task.
Which should I use?
| Reach for the… | When you want to… |
|---|---|
| CLI | Run one-off or scripted operations — a single enrichment, a batch play, a SQL query, an agent chat — with full control over each command. |
| CDK | Manage a whole workspace as versioned, diffable code with state tracking and drift detection (cargo.state.json, plan, deploy). |
| Skills | Let an AI agent (Claude Code, Cursor, Codex, …) figure out the commands for you from a plain-English request. |
- Imperative, ad hoc, or CI step → CLI
- Declarative, reproducible workspace → CDK
- Natural-language, agent-driven → Skills
Get started
Install & authenticate
Install
@cargo-ai/cli, log in with your API token, and verify your
workspace. Shared by all three layers.API Reference
Prefer raw HTTP? Call the Cargo REST API directly.

