The runtime under your agents,declared in code.
Agents, plays, models and connectors as TypeScript: plan the diff, deploy it, and roll back with a git revert.
Define, plan, deploy.
One definition for the whole workspace: agents, context, tools, data models, plays, territories, apps, connectors. Preview every change offline, deploy declaratively, roll back instantly.
import {defineConnector,defineModel,defineAgent} from "@cargo-ai/cdk";export const hubspot = defineConnector("hubspot", {integration: "hubspot",});export const contacts = defineModel("contacts", {connector: hubspot,extractSlug: "fetchRecords",});export const sdr = defineAgent("sdr", {models: [{ ref: contacts, readOnly: true }],});
Your whole workspace, in three commands.
Install the CLI, scaffold a project, deploy. Then declare any of these resources.
1. Install, scaffold, deploy
Three commands, and what each one prints.
$ npm install -g @cargo-ai/cli$ cargo-ai project init my-workspace✓ Scaffolded my-workspace from getcargohq/cargo-manifest✓ Initialized a git repository.✓ Created the initial commit.$ cd my-workspace && cargo-ai project deploy✓ 1 created, 0 updated, 0 unchanged.
2. Declare the rest
One define builder per kind of resource, all from one package.
- DataConnectorCustomIntegrationModelRelationshipSegment
- AutomationPlayToolAgentMcpServerAlert
- KnowledgeContextFileFolder
- RoutingTerritoryMemberCapacity
- HostingWorkerApp
- SendingMailboxDomain
- AccessUserRole
- On deployBatchRun
What only code unlocks.
Versioned, reproducible, composable, and yours to keep.
Versioned
Each change is a pull request with its plan. Revert to roll back.
| Change | Resource | Kind | ID |
|---|---|---|---|
| Create | inbound | play | play:inbound |
| Update | sdr | agent | agent:sdr |
Reproducible
Deploy the same definition to staging, then production, or to a fresh client workspace.
# same code, the staging workspace$ export CARGO_WORKSPACE_UUID=<staging-uuid>$ cargo-ai project deploy --dir ./staging# then production, with its own deploy state$ export CARGO_WORKSPACE_UUID=<prod-workspace-uuid>$ cargo-ai project deploy --dir ./prod
Composable
Resources point at each other by handle. A bad id fails the type check.
Questions engineers ask
Everything else lives in the docs.
cargo-ai project import binds live resources into state, so you can move to a project without starting over.secret() reads values at deploy time and keeps them out of your state file and the content hash.cargo-ai project refresh reports what drifted; deploy --refresh folds those changes back in or re-applies your code.cargo-ai project types generates types from your real integration schemas, checked before you deploy.cargo-ai project deploy. cargo-ai project rollback restores only the deploy state record, not live resources.Trusted by GTM teams at
Augment Code
Weights & Biases
Dust
WorkOS
Braintrust
Descript
Build the self-driving GTM engine
Your coding agents build it on Cargo.Or our team builds, operates and improves it with you.