/cargo:cargo-workspace-managementfrom Cargo
Administers a Cargo workspace: invites users, creates/rotates API tokens, organizes plays/tools/agents into folders, checks roles, uploads CSVs for batch runs, and submits bug reports or feature requests to the Cargo team.
Ships in Cargo. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Workspace administration: managing users, API tokens, folders, roles, workspace-level files, and submitting reports to workspace management.
See
references/response-shapes.mdfor full JSON response structures. Seereferences/troubleshooting.mdfor common errors and how to fix them. Seereferences/examples/users.mdfor user invite and management examples. Seereferences/examples/tokens.mdfor API token creation and rotation examples. Seereferences/examples/folders.mdfor organizing resources into folders. Seereferences/examples/reports.mdfor examples of submitting workspace management reports.
Already signed in (cargo-ai whoami returns a workspace)? Skip to the next section.
npm install -g @cargo-ai/cli # no global install? prefix every command with `npx @cargo-ai/cli`
cargo-ai login --email [email protected] # emailed code, no browser; creates the account on first use
# alternatives: --oauth (browser) · --token <api-token> (CI)
cargo-ai whoami # confirm the active workspace before any write
Every command prints JSON to stdout; failures exit non-zero and print {"error": "...", "status": ..., "body": ...} to stderr. Anything that creates a run or a batch is async — pass --wait-until-finished or poll the matching get. Admin-only: user, role, and envVar writes require workspace-management write (admin) access. Any user can create, list, and remove their own tokens; admin access adds service-user tokens. Folder writes check folder write permission, and report create needs none. When the full skill bundle is installed, ../cargo/references/prerequisites.md adds the CLI version pin, token scopes, and the admin-only surface.
cargo-ai whoami # current user and active workspace
cargo-ai workspaceManagement user list # all workspace members
cargo-ai workspaceManagement role list # available roles
cargo-ai workspaceManagement token list # all API tokens
cargo-ai workspaceManagement folder list # all folders
cargo-ai whoami
cargo-ai workspaceManagement user list
cargo-ai workspaceManagement user create --email <email> --role-slug <slug>
cargo-ai workspaceManagement role create --name <name> --slug <slug> --permissions '<json>'
cargo-ai workspaceManagement workspaces list
cargo-ai workspaceManagement token list
cargo-ai workspaceManagement token create --name <name>
cargo-ai workspaceManagement token remove <token-uuid>
cargo-ai workspaceManagement folder list
cargo-ai workspaceManagement folder create --name <name> --emoji-slug <slug> --kind <kind>
cargo-ai workspaceManagement report create --title <title> --description <description>
cargo-ai workspaceManagement envVar list
cargo-ai workspaceManagement envVar create --key <KEY> [--value <v>] [--secret]
# Get your current user and workspace context
cargo-ai whoami
# → Returns your user UUID, email, and active workspace UUID
# Workspaces this user can reach, and the one selected now
cargo-ai workspaceManagement workspaces list
cargo-ai workspaceManagement workspaces get-current # honors CARGO_WORKSPACE_UUID
# Create another workspace (it is not selected for you — sign in to it or set CARGO_WORKSPACE_UUID)
cargo-ai workspaceManagement workspaces create --name "Acme GTM"
# Update the selected workspace — pass the literal "null" to clear a nullable field
cargo-ai workspaceManagement workspaces update --name "Acme GTM (prod)"
cargo-ai workspaceManagement workspaces update --allowed-email-domains acme.com,acme.io
cargo-ai workspaceManagement workspaces update --default-role-uuid <role-uuid> # role new members get
workspaces update also takes --openai-api-key, --logo-base64, --metadata, --syncs and the Chrome-extension agent fields; it is an admin write, and --openai-api-key is a secret — pass it from the environment, not inline.
# List all workspace members
cargo-ai workspaceManagement user list
# Invite a new user (requires their email and a role)
cargo-ai workspaceManagement user create \
--email [email protected] \
--role-slug <role-slug>
# Update a user's role
cargo-ai workspaceManagement user update --user-uuid <uuid> --role-slug <new-role-slug>
# Remove a user from the workspace
cargo-ai workspaceManagement user remove --user-uuid <uuid>
# Grant one user access to one resource (a workflow, folder, agent, app, …)
cargo-ai workspaceManagement user upsert-permission \
--user-uuids <uuid> --action orchestration:workflow:read --resource-uuid <workflow-uuid> --effect allow
# Take a grant back
cargo-ai workspaceManagement user remove-permission --user-uuid <uuid> --resource-uuid <workflow-uuid> --effect allow
Two things to know about upsert-permission:
--action is a permission action, not read / write. It must be one of the actions listed under Roles — the resource-scoped ones are orchestration:workflow:*|read|write, ai:agent:…, ai:mcpServer:…, hosting:app:…, hosting:worker:…, content:file:… and workspaceManagement:folder:…. (The help's own --action read example was invalid before CLI 1.0.128.)--effect deny applies to existing members only, so it takes --user-uuids; with --emails it is refused, because that path invites. Before cargo#6369 (CLI 1.0.128) the API ignored the effect and always wrote an allow — on a workspace still doing so, put the deny in a role (role create|update --permissions). remove-permission honors --effect either way.--emails invites any address that isn't a member yet, so check user list first.
Per-member monthly credit cap. PUT /v1/workspaceManagement/users/<user-uuid> accepts {"monthlyCreditsLimit": <n> | null}: the credits a member may consume per UTC calendar month across the runs, batches and agent messages they trigger. null removes it. Admins also set it in the web app (Settings → Users → the member's credits limit), user list returns the field, and there is no CLI flag for it. Once the member reaches the cap, their new credit-consuming work is refused until the next month. Runs, batches and action executes answer 400 with reason: "userCreditsLimitReached", distinct from an empty workspace's notEnoughCredits. Storage writes, hosting and mailbox creation still report notEnoughCredits for a capped member. The check gates work before it starts and reads spend cached for up to a minute, so a member can land slightly past the cap. It fails open: if the limit or the ledger can't be read, the work runs. Enforcement shipped with cargo#6379, and caps set before then were stored but not enforced. Per-member spend is readable in cargo-billing (usage get-metrics --group-by user_uuid).
A service user is a non-human identity with its own role — what a hosted worker, a
coding agent's sandbox or a connected GitHub repo acts as, so automation never borrows a
person's access. It has no inbox and no login; it authenticates only through its own API
tokens (its address is su-<uuid>@service-users.getcargo.io, a domain refused for
person invites).
The CLI cannot create one — user create takes only --email and --role-slug.
Use the web app, a project's defineUser (see
../cargo-project/references/resources.md),
or the API (workspace-management write access):
# POST /v1/workspaceManagement/users
{"kind":"service","firstName":"Enrichment","lastName":"Worker","roleSlug":"<role-slug>"}
# → 201 {user}; 404 roleNotFound / workspaceNotFound
# A token for it: POST /v1/workspaceManagement/tokens {"name":"…","userUuid":"<service-user-uuid>"}
# (403 unless the caller has workspace-management write and the target is kind "service")
firstName / lastName are optional (1–255 chars). The CLI's token create mints only
for the caller, so a service user's own token also goes through the API or the web app.
Run-as. A worker (hosting worker update --run-as-user-uuid, defineWorker({ runAs })),
a coding agent (ai release … --run-as-user-uuid, defineAgent({ runAs })) or a
connected repo can run as a service user; Cargo then binds a temporary
CARGO_API_TOKEN for it. Two checks guard the assignment:
| Reason | When | Status |
|---|---|---|
runAsUserNotFound | The user is missing or not kind: "service" — a person can never be run as | 404 on hosting / state routes, 403 on ai chat, message and release routes |
runAsUserNotPermitted | One of the service user's permissions (its own and its role's, deny entries included) is not covered by your allow entries | 403 |
So you can only hand automation access you already hold, and a service user with a broader role than yours can't be assigned by you.
Roles define what users can do in the workspace.
# List available roles
cargo-ai workspaceManagement role list
# Create a custom role: a slug, a colour, and a list of permission statements
cargo-ai workspaceManagement role create \
--name "Run operator" --slug run-operator --color green \
--description "Starts and reads runs and batches; cannot edit workflows" \
--permissions '[
{"effect":"allow","resources":null,"actions":["orchestration:read","orchestration:run:*","orchestration:batch:*","storage:read","segmentation:read"]}
]'
# Update or remove a custom role (built-in roles can't be changed)
cargo-ai workspaceManagement role update --uuid <role-uuid> --permissions '[...]'
cargo-ai workspaceManagement role remove <role-uuid>
Always check available roles before inviting users — use the slug from role list when creating or updating users.
Permission statements are {"effect": "allow" | "deny", "resources": [<uuid>, …] | null, "actions": [...]} — resources: null applies the statement workspace-wide. --permissions on role update replaces the whole list. Actions follow <domain>:*|read|write for ai, billing, connection, content, context, domainManagement, hosting, mailboxManagement, observability, orchestration, revenueOrganization, segmentation, storage, systemOfRecordIntegration and workspaceManagement, plus resource-level sub-actions (orchestration:workflow:…, ai:agent:…, hosting:app:…, workspaceManagement:folder:…, …).
Running is separate from editing in orchestration. orchestration:run:*|read|write covers runs and orchestration:batch:*|read|write covers batches; neither includes the other, and neither lets the holder edit a workflow, play or tool (that is orchestration:write / orchestration:workflow:write). orchestration:read / :write / :* still include both. That is how a role can start and watch runs without being able to change what they do.
role create fails with slugAlreadyExists or slugReserved (a built-in slug); role remove fails with roleInUse while any member holds the role or it is the workspace's default role — reassign them first.
Each token has a human-readable name and a permissions field. Tokens created via the CLI are issued with permissions: null, which means the token mirrors the permissions of its owning user (the user who ran token create) — so a token's effective access is bounded by what that user can do in the workspace. Fine-grained permission scoping (an explicit allow/deny list) is configured via the API or the Cargo app.
# List your API tokens (includes name, permissions, and the token value of each)
cargo-ai workspaceManagement token list
# Create a new token — --name is required
cargo-ai workspaceManagement token create --name "CI/CD pipeline"
# → Returns the token value — store it securely
# Remove a token
cargo-ai workspaceManagement token remove <token-uuid>
Naming: Pick a --name that makes the token's purpose obvious in token list later (e.g. "GitHub Actions — production", "Local dev — alice", "Zapier integration"). The name is the only way to tell tokens apart in the listing.
Security: Token values are returned at creation and again by token list (your own tokens, plus service-user tokens for admins). Treat both outputs as secrets and store the value in a secrets manager (e.g. GitHub Secrets, AWS Secrets Manager).
Folders organize resources (plays, tools, agents) in the Cargo app.
# List all folders
cargo-ai workspaceManagement folder list
# Create a folder (kind: tool, play, agent, file, mcpServer, model, app, worker, alert, or mailbox)
cargo-ai workspaceManagement folder create --name "Q1 Campaigns" --emoji-slug "rocket" --kind "play"
# Get a folder
cargo-ai workspaceManagement folder get <folder-uuid>
# Update a folder (rename, move under a parent, or reorder among its siblings)
cargo-ai workspaceManagement folder update --uuid <folder-uuid> --name "Q1 2025 Campaigns"
cargo-ai workspaceManagement folder update --uuid <folder-uuid> --parent-uuid <parent-folder-uuid> --order 0
# Remove a folder
cargo-ai workspaceManagement folder remove <folder-uuid>
Submit a report to workspace management. Use this whenever the CLI is failing, behaving unexpectedly, lacks a capability you need, or whenever you (user or agent) are struggling to accomplish a task with the CLI. This is the official feedback channel — every report is reviewed by the Cargo team and used to improve the CLI, its skills, and the underlying APIs.
# Submit a report to workspace management
cargo-ai workspaceManagement report create \
--title "<short summary>" \
--description "<detailed description, including the command(s) tried and the error(s) seen>"
When to send a report (non-exhaustive):
errorMessage you cannot resolve from --help or references/troubleshooting.md.--filter / --nodes / --action is ambiguous).references/response-shapes.md documents.What to put in the report:
--title: one-line summary of the problem (e.g. "batch create fails with 'playNotCompatible' on tool workflow").--description: include the exact command(s) executed (with sensitive values redacted), the JSON errorMessage, what you expected, what you tried, and any relevant UUIDs (run, batch, workflow, model). The more context you provide, the faster it can be triaged.# Example: report a CLI struggle after multiple failed attempts
cargo-ai workspaceManagement report create \
--title "segment fetch returns empty results despite matching records in UI" \
--description "Ran: cargo-ai segmentation segment fetch --model-uuid <uuid> --filter '{\"conjonction\":\"and\",\"groups\":[...]}'. Got 0 records. The same filter shows 1,200 matches in the app UI. Tried both --filter and --segment-uuid; both return empty. Expected: the same records as the UI."
Do not silently give up on a failing CLI task. Send a report. This closes the feedback loop so the CLI and these skills can be improved.
Workspace environment variables are injected into every worker, app and agent in the workspace, and a worker- or app-level entry with the same key overrides them. One catalog, but when it is read depends on the consumer:
workspaceEnv("NAME") pointers, read the value server-side on each
use, so rotating it takes effect with no redeploy.VITE_,
NEXT_PUBLIC_, …), baked into its build. After a change, run hosting deployment create + promote again. See
../cargo-hosting/SKILL.md → Worker env vars and secrets.cargo-ai workspaceManagement envVar list
# Create. Omit --value to read it from the environment variable of the same name.
cargo-ai workspaceManagement envVar create \
--key OPENAI_API_KEY \
--value sk-... \
--secret \
--description "Used by the enrichment worker"
# Update. Omit --value to keep the stored one.
cargo-ai workspaceManagement envVar update <uuid> --value <new> --description <text>
cargo-ai workspaceManagement envVar remove <uuid>
--secret encrypts the value at rest and it is never returned again — list
and update will not echo it back. Use it for credentials; use --no-secret on
update to turn a variable back into plain text (which re-exposes it to list).--value is optional on create. Omitted, the CLI reads the environment
variable of the same name from your shell, so export OPENAI_API_KEY=… && cargo-ai workspaceManagement envVar create --key OPENAI_API_KEY --secret keeps the
value out of your shell history and out of this command line.update takes the uuid, not the key. Get it from envVar list.From a project, reference an entry with workspaceEnv("NAME") rather than
copying the value into code — it is a pointer resolved server-side on every use.
secret("NAME") is the other option and means something different (read from your
environment at deploy time). See
../cargo-project/SKILL.md → Critical rules.
Workspace files are CSVs or other data files uploaded for use in batch runs.
# Upload a file
cargo-ai workspaceManagement file upload --file <path-to-file>
# → Returns s3Filename
# Inspect a file's columns before running a batch
cargo-ai workspaceManagement file list-columns --s3-filename <s3-filename>
# → Returns column names to use when mapping to workflow inputs
The s3-filename is returned when uploading a file via cargo-ai workspaceManagement file upload. See the cargo-orchestration skill's references/examples/tools.md for the full file upload and batch run workflow.
Every command supports --help:
cargo-ai workspaceManagement user create --help
cargo-ai workspaceManagement token create --help
cargo-ai workspaceManagement folder create --help
references/examples/folders.md (opens in a new tab)references/examples/reports.md (opens in a new tab)references/examples/tokens.md (opens in a new tab)references/examples/users.md (opens in a new tab)references/response-shapes.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)skill-metadata.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub getcargohq/cargo-skills --plugin cargo20 skills in this plugin
/cargoEntry point for Cargo (getcargo.ai), go-to-market infrastructure for AI agents. With Cargo an agent builds B2B lead lists, finds and verifies work emails, enriches companies and contacts, qualifies leads, syncs the CRM and watches buying signals, then runs any of it on a schedule. New accounts get 100 free credits, no card. Routes each job to the right Cargo skill and holds the rules that apply across all of them (project vs one-off CLI, run vs batch, async polling, silent-failure gotchas). Triggers: "set up Cargo", "what can Cargo do", "what is Cargo", "which Cargo skill", "bootstrap my workspace", "I have a Cargo account", "cargo-ai …", any `cargo-ai` command whose domain is unclear, or a task spanning two Cargo domains. Skip when: the task obviously belongs to one skill; load that skill directly./cargo-aiBuilds Cargo AI agents that work on GTM data: picks the model, writes the prompt, attaches docs for retrieval (RAG), connects MCP tools, manages memories, and deploys releases. Triggers: "create an agent", "make an agent that", "give the agent our docs", "attach this knowledge base", "attach this library to the agent", "add resources to the agent release", "connect an MCP server", "expose our tools as an MCP server", "use Cargo from Claude Desktop or ChatGPT", "change the agent model", "what does the agent remember", "deploy the agent", "the agent is answering wrong". Skip when: uploading the knowledge files themselves, use cargo-content; sending the agent a message or running it over records, use cargo-orchestration./cargo-analyticsGets results out of Cargo and measures what ran: downloads run outputs, exports a segment or model to CSV or JSON, and counts successes and errors. Triggers: "download the results", "export this to CSV", "give me the file", "how many succeeded", "what is my error rate", "send me the enriched list", "get the output of that run", "how many records did it write". Skip when: asking why something failed or where credits went, use cargo-diagnostics; asking about credits, plans, or invoices, use cargo-billing./cargo-billingReports what Cargo is costing: remaining credits, usage by workflow, connector or agent, the plan, and invoices. New accounts start with 100 free credits, no card. Triggers: "how many credits do I have left", "what did that cost", "why is my bill so high", "am I about to run out", "will this fit in our budget", "show me my invoices", "how much have I spent this month", "what plan am I on", "what do I get for free", "how many free credits", "can I afford this run", "add a card", "update my payment method", "why was my card declined". Needs a token with admin access. Skip when: attributing spend to specific nodes or cutting a play cost, use cargo-diagnostics./cargo-cdkRenamed to cargo-project. This entry exists only so installs from before the rename are replaced by a pointer. Skip when: always; load cargo-project./cargo-connectionConnects Cargo to the CRM, sequencer, warehouse and other tools a team already runs, checks what is connected, fixes authentication, and lists what each integration can do. Triggers: "connect my HubSpot", "is Salesforce connected", "what integrations do you support", "can Cargo talk to <tool>", "what actions does <provider> have", "I need the connector UUID", "set up the API key for", "it is asking for credentials again", "why is this connector failing auth", "list my connectors". Integrations: hubspot, salesforce, attio, pipedrive, outreach, salesloft, lemlist, smartlead, instantly, heyReach, snowflake, bigQuery, postgresql, googleSheets, slack, microsoftTeams, googleAds, linkedinAds, metaAds, intercom, stripe, customerio, marketo, amplitude, mixpanel, amplemarket, calendly, cargoSignals, closecom, contrast, csv, dbt, emailBison, expandi, googleCalendar, http, hubspotMcp, instantlyV2, jira, and 108 more. Skip when: choosing between enrichment providers for a GTM job, use cargo-gtm and its provider playbooks.Other plugins' skills for the same job