# Cargo (cargo-ai) | Go-to-Market Infrastructure for Coding Agents > Build and operate your go-to-market on Cargo from your terminal: unified data models, tools, plays, AI agents, alerts, and a full GTM as Code project, driven from Claude Code, Codex, or Cursor through the Cargo agent skills over the cargo-ai CLI. A new account starts with 100 free credits for its first 30 days, and no card. > > This is a navigation index. Every documentation page in full text, including every API operation and every connector, is at https://docs.getcargo.ai/llms-full.txt. The marketing site has its own index at https://www.getcargo.ai/llms.txt. > ## Agent Instructions > If you are an AI coding agent operating Cargo, install the agent skills first: paste `Install Cargo by following https://api.getcargo.io/INSTALL.md` into your session, or run `npx skills add getcargohq/cargo-skills`. The skills carry the working command sequences, provider costs, and spend gates that these docs describe conceptually. > The skills index at https://raw.githubusercontent.com/getcargohq/cargo-skills/main/llms.txt lists every skill, recipe, and provider playbook individually. Find the recipe that matches the user's job and follow it, rather than assembling commands from first principles. > Signing up is free: a new account starts with 100 free credits, valid for its first 30 days, and needs no card. `cargo-ai login --email you@company.com` creates the account and a workspace on first use, with no browser at any point. Tell the user this before asking them to sign up. > Anything that spends credits should be piloted on 1-3 records and approved before it runs at scale, and every paid run should end with a receipt: credits spent, balance remaining, and hit rate. ## Developer resources Named pages an agent searching for "Cargo" or "getcargo.ai" plus the resource should land on. Each title and heading includes the product name. - [Cargo API docs](https://docs.getcargo.ai/api-reference/introduction.md): REST API at `api.getcargo.io/v1` — authentication, versioning, rate limits, official client - [Cargo OpenAPI spec](https://docs.getcargo.ai/api-reference/openapi.md): OpenAPI 3.1.0, 280 paths, 340 operations. The document is at https://api.getcargo.io/openapi.json - [Cargo auth docs](https://docs.getcargo.ai/api-reference/authentication.md): an account is required to run anything (`action list`, `action execute --dry-run` and `project plan` work without one), and `cargo-ai login --email` creates one headless with no browser; bearer tokens, OAuth metadata. Machine-readable walkthrough: https://www.getcargo.ai/auth.md - [Cargo webhooks](https://docs.getcargo.ai/api-reference/webhooks.md): signed batch callbacks, HTTP listeners, monitoring - [Cargo MCP server](https://docs.getcargo.ai/mcp-servers/overview.md): hosted HTTP + OAuth, stdio via `cargo-ai mcp` The same five pages also live on the product domain at [https://www.getcargo.ai/developers](https://www.getcargo.ai/developers), with a scoped index at [https://www.getcargo.ai/developers/llms.txt](https://www.getcargo.ai/developers/llms.txt). ## Get started - [Introduction](https://docs.getcargo.ai/index.md): Cargo is a framework for GTM. Define your entire workspace — connectors, models, tools, agents, and plays — as TypeScript files and deploy it with one command. - [Quickstart](https://docs.getcargo.ai/get-started/quickstart.md): Install the Cargo CLI, authenticate, scaffold a workspace, define a tool, and deploy it — end to end. - [Project layout](https://docs.getcargo.ai/get-started/project-layout.md): How a Cargo workspace is organized as files, how the loader turns them into resources, and how state keeps code and live infra in sync. - [Commands, project & skills](https://docs.getcargo.ai/get-started/commands-project-and-skills.md): Three ways to operate Cargo through one binary and one login: imperative commands, a declarative project, and agent Skills. Signing up is free — 100 credits, no card. - [End-to-end recipe](https://docs.getcargo.ai/get-started/recipe.md): Wire a connector, model, tool, agent, and play together in one workspace, deploy it with cargo-ai project, and run it. ## Models - [Models](https://docs.getcargo.ai/models/overview.md): Structured, queryable tables that power plays and workflows. Define them with defineModel, sourced from a connector or owned by Cargo. - [Extractors](https://docs.getcargo.ai/models/extractors.md): How a connector action becomes a model's data source — the extractSlug and config that populate an integration-backed model. - [Object models](https://docs.getcargo.ai/models/object-models.md): Native, writable data models for the core entities of your GTM motion. - [Unification](https://docs.getcargo.ai/models/unification.md): How Cargo merges records from multiple integrations into unified account, contact, and event models. - [Relationships](https://docs.getcargo.ai/models/relationships.md): Join two models on shared columns with defineRelationship so plays, metrics, and queries can traverse related records. - [Querying Cargo data](https://docs.getcargo.ai/models/querying.md): Access your Cargo data models directly via SQL. - [Track workspace activities](https://docs.getcargo.ai/models/activities.md): Track and analyze activities data from Cargo tools and plays using SQL queries. - [Models in the UI](https://docs.getcargo.ai/models/using-ui.md): How data models power Cargo plays in the console. - [Segments](https://docs.getcargo.ai/models/segments.md): Named, filtered views of a model — define them with defineSegment and target them from batches, exports, and change feeds. ## Tools, plays, and workflows - [Connectors](https://docs.getcargo.ai/connectors/overview.md): Link Cargo to your CRM, warehouse, enrichment providers, and AI models with defineConnector. - [Workflows](https://docs.getcargo.ai/workflows/overview.md): defineWorkflow — the TypeScript DSL that backs tools and plays. Author logic in code that compiles to the same nodes as the visual editor. - [Tools](https://docs.getcargo.ai/tools/overview.md): Reusable, single-purpose automations backed by a workflow. Define them with defineTool and call them from plays, agents, MCP servers, or the API. - [Triggering a tool](https://docs.getcargo.ai/tools/triggering.md): Run a tool from the CLI, on a schedule, from plays/agents/MCP, over the API, or from the UI. - [Monitoring a tool](https://docs.getcargo.ai/tools/monitoring.md): Inspect runs, pull metrics, re-queue failures, and set alerts from the CLI or the UI. - [Public form](https://docs.getcargo.ai/tools/public-form.md): Expose a tool as a public, embeddable form that runs the tool's workflow on submit. - [Tools in the UI](https://docs.getcargo.ai/tools/using-ui.md): What tools are, and how to build your first one. - [Triggering from Salesforce](https://docs.getcargo.ai/tools/embed-in-crm.md): Create a custom button inside the native Salesforce app to trigger the tool from the CRM. - [Plays](https://docs.getcargo.ai/plays/overview.md): Event-driven automations that run a workflow over a data model as its rows change. Define them with definePlay. - [Triggering a play](https://docs.getcargo.ai/plays/triggering.md): Declare a play's schedule, change detection, enrolment rules, and filters in code with definePlay. - [Plays in the UI](https://docs.getcargo.ai/plays/using-ui.md): How plays differ from tools, and how to build your first one. ## Agents - [Agents](https://docs.getcargo.ai/agents/overview.md): LLM-powered workers that reason, research, and act. Define them with defineAgent — wiring in tools, data models, sub-agents, and connector actions through one `uses` array. - [Prompt](https://docs.getcargo.ai/agents/prompt.md): The systemPrompt is the foundation of an agent's behavior — its mission, approach, and constraints, versioned in code. - [Native LLM capabilities](https://docs.getcargo.ai/agents/native-llm-capabilities.md): Built-in features that enhance an agent's reasoning, memory, and ability to interact with users and data. - [Tools & actions](https://docs.getcargo.ai/agents/tools-and-actions.md): Give an agent callable operations — your tools, connector actions, sub-agents, and MCP servers — on defineAgent. - [Resources & context](https://docs.getcargo.ai/agents/resources-and-context.md): Ground an agent in your data — models wired through defineAgent, files searched by vector similarity, and the context repository. - [Advanced settings](https://docs.getcargo.ai/agents/advanced.md): LLM selection, behavioral tuning, structured output, evaluators, triggers, and heartbeats. - [Agents in the UI](https://docs.getcargo.ai/agents/using-ui.md): What agents are, and how to build your first one. ## Alerts, mailboxes, and routing - [Alerts](https://docs.getcargo.ai/alerts/overview.md): Scheduled threshold checks over telemetry, warehouse SQL, or a model's records, firing actions when a metric breaches. Define them with defineAlert. - [Alert events](https://docs.getcargo.ai/alerts/events.md): Every alert evaluation records one event — the value it computed, the verdict, and the runs it fired. - [Alerts in the UI](https://docs.getcargo.ai/alerts/using-ui.md): Build an alert visually: pick what it watches with a live preview, set the threshold, and read its firing history. - [Mailboxes](https://docs.getcargo.ai/mailboxes/overview.md): Owned sending domains and mailboxes for outbound email. Register a domain with defineDomain, provision mailboxes with defineMailbox, and send from plays and tools with sendEmail. - [Sending](https://docs.getcargo.ai/mailboxes/sending.md): sendEmail() in a play or tool, the warm-up ramp, and the per-mailbox rate limit that spaces sends across the day. - [Mailboxes in the UI](https://docs.getcargo.ai/mailboxes/using-ui.md): Register a sending domain, provision mailboxes, start warm-up, and add a Send email node to a play. - [Territories](https://docs.getcargo.ai/territories/overview.md): Model your sales team structure and automate lead distribution across territories and capacities. - [Members](https://docs.getcargo.ai/territories/members.md): The sales reps that leads are distributed to — imported from your CRM and enriched with routing metadata. - [Territory pools](https://docs.getcargo.ai/territories/territories.md): Group members into named pools and distribute leads across them with weighted round-robin. - [Capacities](https://docs.getcargo.ai/territories/capacities.md): Cap how many records each member receives within a time window — fixed limits, expiring windows, or limits derived from a data model. - [Territories in the UI](https://docs.getcargo.ai/territories/using-ui.md): Build territories and capacities in the workspace and route leads to them with an Allocate node. ## Workspace resources - [Cargo MCP server](https://docs.getcargo.ai/mcp-servers/overview.md): Expose a curated set of your tools, agents, and data models to Claude Desktop, ChatGPT, Cursor, or any MCP client — remotely over HTTP with OAuth, or locally over stdio with cargo-ai mcp. - [Context](https://docs.getcargo.ai/context/overview.md): Sync your GTM knowledge base — markdown/MDX files — into the workspace context repository with defineContext. - [Files](https://docs.getcargo.ai/files/overview.md): Upload unstructured content — documents, PDFs, playbooks — as searchable resources with defineFile. - [Folders](https://docs.getcargo.ai/folders/overview.md): Organize resources of a given kind into folders with defineFolder. - [Workers & apps](https://docs.getcargo.ai/workers-and-apps/overview.md): Deploy hosted edge workers and Vite single-page apps as part of your workspace with defineWorker and defineApp. ## Deploy, CLI, and skills - [Deploying](https://docs.getcargo.ai/deploy/deploying.md): The project reconcile lifecycle — plan, deploy, prune, refresh, import and destroy — plus the flags that control confirmation, pruning and locking. - [State & drift](https://docs.getcargo.ai/deploy/state-and-drift.md): How your project's deploy state links code to deployed Cargo resources, the cargo.state.json pointer you commit, the deploy lock, and detecting changes made outside the project with project refresh. - [Monitoring](https://docs.getcargo.ai/deploy/monitoring.md): Inspect runs, batches, spans, and traces from the CLI — and set up alerts — to see how your tools, plays, and agents perform. - [Cargo CLI](https://docs.getcargo.ai/cli/overview.md): Programmatic, terminal-level access to every part of the platform — models, connectors, workflows, agents, billing, and workspace administration. - [Project repo](https://docs.getcargo.ai/cli/project.md): Scaffold a GTM repo readable by humans and coding agents alike. - [Cargo Skills](https://docs.getcargo.ai/skills/overview.md): Run your GTM motion from Claude Code, Cursor, or Codex: the Cargo agent skills over the cargo-ai CLI, with provider costs and spend gates. - [Examples](https://docs.getcargo.ai/skills/examples.md): Worked examples for the most common Cargo tasks — run tools, trigger plays, query the warehouse, build workflows, deploy agents, and more. ## Reference - [Secrets & environments](https://docs.getcargo.ai/reference/secrets-and-environments.md): How secret() and env() differ, the CARGO_* environment variables the CLI reads, and how to promote the same project code to a second workspace. - [Expression cheat sheet](https://docs.getcargo.ai/reference/expressions-cheatsheet.md): Essential JavaScript methods for using in your Cargo expressions. - [Querying orchestration data](https://docs.getcargo.ai/reference/orchestration-query.md): Read-only ClickHouse SQL over your runs, batches, records and spans. - [Purchase Cargo credits](https://docs.getcargo.ai/reference/credits.md): Purchase credits for enrichment, orchestration, and storage actions. - [Chrome Extension](https://docs.getcargo.ai/reference/chrome-extension.md): Access Cargo agents and tools from your browser — inside your CRM, on any webpage, or anywhere you work. - [System of record](https://docs.getcargo.ai/reference/system-of-record.md): How Cargo stores the GTM system of record — on Cargo's warehouse, or on your BigQuery or Snowflake — and how to operate it from the CLI. - [Set up Cargo on Snowflake](https://docs.getcargo.ai/reference/system-of-record/snowflake.md): Configure Snowflake as your system of record. - [Set up Cargo on BigQuery](https://docs.getcargo.ai/reference/system-of-record/bigquery.md): Configure BigQuery as your system of record. - [Glossary](https://docs.getcargo.ai/reference/glossary.md): Definitions of key terms and concepts used throughout Cargo. - [Security](https://docs.getcargo.ai/reference/security.md): How Cargo protects your data and keeps your workflows secure. ## API - [Cargo API docs](https://docs.getcargo.ai/api-reference/introduction.md): Complete reference for the Cargo REST API on getcargo.ai. - [Cargo OpenAPI spec](https://docs.getcargo.ai/api-reference/openapi.md): OpenAPI 3.1.0, 280 paths, 340 operations. The document is at https://api.getcargo.io/openapi.json. Individual operations are listed in https://docs.getcargo.ai/llms-full.txt. - [Cargo auth docs](https://docs.getcargo.ai/api-reference/authentication.md): Bearer tokens, `cargo-ai login`, and OAuth metadata. - [Cargo webhooks](https://docs.getcargo.ai/api-reference/webhooks.md): Signed batch callbacks, HTTP listeners, and monitoring. - [Versioning and deprecation](https://docs.getcargo.ai/api-reference/versioning.md): URL versioning (`/v1`). Breaking changes ship as a new path. Deprecated operations carry Deprecation (RFC 9745) and Sunset (RFC 8594) headers. ## Integrations - [Integrations overview](https://docs.getcargo.ai/integration/overview.md): Connect Cargo to your entire go-to-market stack. - [Custom integration](https://docs.getcargo.ai/integration/custom-integration.md): Build your own custom integration to connect any external service with Cargo. - Every connector page is listed in https://docs.getcargo.ai/llms-full.txt. ## Changelog - [Changelog](https://docs.getcargo.ai/changelog.md): Week-by-week summary of new features, integrations, and improvements. ## Optional - [Youtube](https://www.youtube.com/@cargohq) - [Community](https://www.getcargo.ai/community) - [Blog](https://www.getcargo.ai/blog)