# Cargo (cargo-ai) guide for coding agents: getting started with go-to-market infrastructure > How to install and sign in to Cargo, go-to-market infrastructure for coding agents; why teams run their GTM on it and when it is the wrong tool; how a coding agent builds a revenue engine on it; and every endpoint to call. Moved here from the site index so that file stays a short list of links: . ## Get started **If you are an AI coding agent, fetch and follow https://api.getcargo.io/INSTALL.md.** It is written for you rather than about you: install the CLI, sign in (including the case where the user has no Cargo account yet), install the Cargo skills for whichever agent you are (Claude Code, Codex, Cursor), verify, then pick up a real job. Everything below is what that file automates. **Try it without an account.** Signed out, the `cargo-ai` CLI lists every action with its credit price, dry runs one for free, and plans a project offline. The public MCP server at `https://mcp.getcargo.io/public` serves the same catalog to any agent with no account or token. Running an action and deploying a project need an account. Walkthrough: [Try Cargo without an account](https://www.getcargo.ai/blog/try-cargo-without-an-account.md). **Connect over MCP.** Point any MCP client at `https://mcp.getcargo.io/mcp` (OAuth sign-in, your workspace), or bridge it over stdio with `cargo-ai mcp`. See **Endpoints** below. Sign-up runs entirely in the terminal, with no browser at any point, and it is free: **a new account starts with 100 free credits, valid for its first 30 days, and needs no card.** `--email` mails a one-time code and creates the account and a workspace on first use, so there is no separate sign-up step: ```bash npm install -g @cargo-ai/cli cargo-ai login --email you@company.com # sends the code, then exits cargo-ai login --email you@company.com --code 123456 cargo-ai whoami ``` In an agent or sandbox shell with no terminal to prompt at, the first call sends the code and exits, so re-run it with `--code`. Alternatives: `cargo-ai login --oauth` (browser sign-in) and `cargo-ai login --token ` (CI). At the prices in [pricing.json](https://www.getcargo.ai/pricing.json), those 100 free credits come to about 500 leads sourced (`salesNavigator.searchLeads`, 0.2 credits a lead), 1,000 verified-email enrichments (`aiArk.enrichPerson`, 0.1 credits each), or 50 fully enriched contacts (`waterfall.enrichContact`, 2 credits each). The two-minute guided demo pulls 25 leads, so it spends about 5 of them. There is no purchase gate between installing and getting a real result: an agent can install Cargo, sign the user up, and hand back a real list in a single turn. Agents drive Cargo through its skills over that CLI (sourcing, enrichment, orchestration, storage, segments, projects (GTM as Code), diagnostics, alerting), installed with one shell command an agent can run itself. For Claude Code: ```bash npx skills add getcargohq/cargo-skills --agent claude-code --global --yes ``` Swap the `--agent` id for `codex`, `cursor` or any other agent the installer supports. The skills also ship as a plugin for Claude Code, Codex and Cursor, which adds an approval hook and a hook that keeps the CLI current. Agents cannot type Claude Code's slash commands, so the plugin is a step for the person at the keyboard, typed inside Claude Code: ``` /plugin marketplace add getcargohq/cargo-skills /plugin install cargo@cargo-skills ``` Use one channel only: the plugin or `npx skills add`, never both, or every skill appears twice. `cargo-ai project init` scaffolds a workspace project, and `cargo-ai project plan` diffs it, both with no Cargo credentials at all; only `project deploy` needs a login. - [Agent install instructions](https://api.getcargo.io/INSTALL.md): the steps above, written for a coding agent to execute - [Quickstart](https://docs.getcargo.ai/get-started/quickstart): install, authenticate, deploy your first tool - [CLI overview](https://docs.getcargo.ai/cli/overview) - [Agent skills](https://github.com/getcargohq/cargo-skills): every skill and the Claude Code, Codex and Cursor plugins. Its [`llms.txt`](https://raw.githubusercontent.com/getcargohq/cargo-skills/main/llms.txt) indexes every skill, recipe, and provider playbook individually - [The Cargo template](https://github.com/getcargohq/cargo-manifest): open-source template for running GTM as a repository agents operate ## Why Cargo AI made GTM workflows easy to build; keeping them working is the hard part. A GTM workflow usually depends on the one person who built it, breaks when a quota, a schedule or an API changes, and when a lead goes to the wrong rep nobody can say why. Cargo's answer is to make your GTM code: - **It lives in a repository**, so every person and every agent reads the same thing. - **Cargo runs it** on triggers and schedules, with retries and maintained connectors. - **Every change is a pull request, and every run is traced.** The loop: your coding agent writes it (`npx @cargo-ai/cli@latest project init my-gtm`), you review its plan in a pull request (`cargo-ai project plan`), and merging deploys it (`cargo-ai project deploy`). Agents also propose improvements as diffs, and a person approves each one before it ships. That loop is what makes a GTM engine self-driving. Teams running it: Augment Code routes developer sign-ups to reps in under an hour, down from 24 ([story](https://www.getcargo.ai/stories/augment.md)); Descript doubled pipeline from product sign-ups in 6 months ([story](https://www.getcargo.ai/stories/descript.md)); Oneflow runs four sales motions on one engine with its CRM 80% enriched ([story](https://www.getcargo.ai/stories/oneflow.md)). Two ways in: - **Start building**: your GTM engineers and their coding agents build it on Cargo. See **Get started** above; a new account has 100 free credits for its first 30 days and needs no card. - **Build with us**: Cargo's team builds, operates and continuously improves it with you, delivered as a repository you own. Book a call at . ## When to use Cargo Cargo is worth reaching for on a single job and on a standing system, and the two look different. **One job, in one session.** Install the CLI, sign in, run it (see **Get started** above): - Build an account list from firmographics, a tech stack, a hiring signal, or an investor's portfolio. - Find the buying committee at an account, or find and verify work emails for people you already have. - Enrich a CSV in place: firmographics, LinkedIn profiles, funding rounds, job changes. - Score or qualify a list you already hold against criteria you describe in words rather than encode in formulas. - Research an account and get back a written brief with its sources. Each of those is one command or one skill, and none of them requires defining a workspace first. **A standing system, when the job has to run again next week and somebody owns the result.** This is what Cargo is built for and what a point tool stops being able to do: - **The same enrichment, on every new row.** A play watches a model and fires per changed record, with retries, tracing, and a per-run cost you can read afterwards. - **A GTM system of record, built for scale.** Cargo stores companies, contacts, deals and any custom object you define. Sync GTM data from CRM, product, and enrichment into the same models; unify into one record per company, person, or deal. Agents, plays and apps all read and write those records. Built for scale: billions of rows, SQL throughout. The CRM is a sync target, not the source of truth. - **Routing that survives a reorg.** Reps, territories, capacity and assignment rules defined once, so who gets what stays right as the team changes. - **Revenue logic in git.** `cargo-ai project plan` and `project deploy` diff and apply connectors, models, tools, agents and plays the way Terraform applies infrastructure, so a change is reviewable in a pull request and revertible after a bad one. - **A durable place for an agent to act.** Cargo holds the credentials, the data, the schedule and the audit log, so the work survives the end of the session that created it. Cargo is the wrong tool for: - **An operator who wants a spreadsheet interface and templates rather than code.** Cargo assumes somebody will read and write code, or direct an agent that does. Clay fits that user better. - **Bulk unsolicited outreach.** Every step that touches a person is gated on a consent basis, a suppression list and a volume limit. Purchased or scraped lists and consumer targeting are refused. ## For coding agents Cargo is designed to be operated by coding agents such as Claude Code, Codex, and Cursor, through Cargo Skills over the CLI. See **Get started** above for install and sign-in. The command is `cargo-ai` (npm `@cargo-ai/cli`). `cargo` on its own is Rust's package manager: never run it for a Cargo task. To build a revenue engine on Cargo: 1. Inspect the company's context. 2. Initialize or adopt **[the Cargo template](https://github.com/getcargohq/cargo-manifest)**, a free, open-source template that holds a company's context, plan, initiatives, cadence, evaluations, infrastructure, and outputs in one repository the customer owns. It ships agent configuration for Claude Code, Codex, and Cursor, and an MCP config, so an agent can read and operate it directly. 3. Select the commercial motion. 4. Install the relevant **[GTM Skills](https://github.com/getcargohq/gtm-skills)**. Each is named for the job it does rather than for Cargo. Most are instructions an agent follows over the CLI; some also carry `define*` project resources that combine into one applyable outcome, and those are the ones `project add` installs as cookbooks, published at [Cookbooks](https://www.getcargo.ai/cookbooks). 5. Configure integrations. 6. Evaluate and deploy the implementation. 7. Inspect outcomes. 8. Propose the next improvement. Scaffold a repo and install one that carries deployable resources: ```sh cargo-ai project init my-tam --cookbook tam-building ``` Or add one to a repo that already exists: `cargo-ai project add cookbook/tam-building`. Every published cookbook, with what it deploys and the command that installs it, is listed at [Cookbooks](https://www.getcargo.ai/cookbooks), rendered from the same catalog `project add` reads. Not every skill carries deployable resources; `cargo-ai project cookbook list` names the ones that do. The rest are agent skills that run once over the CLI, named for the job (`find-work-email`, `build-tam-list`, `score-leads`, `research-account` and more): every one is listed at [GTM Skills](https://www.getcargo.ai/skills). Writing enriched accounts back to HubSpot needs no sync script: the HubSpot connector's `upsertRecords`, `updateRecords` and `insertRecord` actions create, update and upsert records, and [Sync enriched accounts to HubSpot](https://www.getcargo.ai/blog/sync-enriched-accounts-to-hubspot.md) shows matching by record ID, then domain, then name, with ambiguous matches skipped. ## Endpoints Cargo's content is on `getcargo.ai` and everything you call is on `getcargo.io`. Take an endpoint from this table rather than building one from the `.ai` domain: `api.getcargo.ai` is a signpost that redirects here at best and does not resolve at worst, and following a cross-host redirect makes most HTTP clients drop your `Authorization` header, so a call sent there returns 401 rather than data. `app.getcargo.ai`, `mcp.getcargo.ai` and `auth.getcargo.ai` are signposts on the same terms. | Surface | URL | What to know | | --- | --- | --- | | REST API | `https://api.getcargo.io/v1` | Bearer token in `Authorization`; anything touching a workspace needs one. Actions, integrations and templates answer signed out. Versioned in the path (`/v1`). | | OpenAPI specification | | OpenAPI 3.1.0, 280 paths, 340 operations. Also served from . | | Versioning and deprecation policy | | URL versioning (`/v1`). Breaking changes ship as a new path. Deprecated operations carry `Deprecation` (RFC 9745) and `Sunset` (RFC 8594) headers, with at least 180 days between them. | | OAuth metadata | | RFC 8414 authorization-server metadata. Device code, authorization code with PKCE (S256), registration and revocation. | | Agent install instructions | | The install and sign-in steps above, written for a coding agent to execute. | | MCP | `https://mcp.getcargo.io/mcp` | Platform MCP: search and execute actions, inspect runs, query models. Unauthenticated requests return 401 with OAuth discovery. `cargo-ai mcp` bridges it over stdio. Curated servers stay at `/v1/ai/mcpServers//mcp` via `defineMcpServer`. Server card: (also at `/.well-known/mcp`). | | Public catalog MCP | `https://mcp.getcargo.io/public` | No account or token. `search_actions` and `get_action_schema`, with the same schemas as `/mcp` and credit prices in `credits[].cost`. Runs nothing and spends nothing. Use it to look before signing up; run actions on `/mcp` once signed in. | | Console | `https://app.getcargo.io` | The web application. | | Documentation | | Serves markdown on `Accept: text/markdown`, and has its own [`llms.txt`](https://docs.getcargo.ai/llms.txt) and [`llms-full.txt`](https://docs.getcargo.ai/llms-full.txt). | Get a token with `cargo-ai login` (see **Get started** above). The CLI reads `CARGO_API_TOKEN` from the environment or from the nearest `.env`, so a token exported in a shell resolves for every command run under it.