> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcargo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are an AI coding agent operating Cargo, install the agent skills first: paste `Install Cargo by following every step in https://api.getcargo.io/agent-install.txt` 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://github.com/getcargohq/cargo-skills/blob/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 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.

# Anthropic

> This page outlines how to use the Anthropic integration for AI-powered actions in Cargo.

Anthropic builds reliable, interpretable AI systems. Claude, their AI assistant, excels at thoughtful dialogue, content creation, complex reasoning, and coding. Cargo's native integration with Anthropic allows you to use Claude models directly in your workflows.

## How to set up Anthropic

You can use Anthropic in two ways:

1. **Cargo credits** – Use Claude through Cargo's managed integration
2. **Your own API key** – Connect your Anthropic account

### Connection details

| Field       | Description            |
| ----------- | ---------------------- |
| **API Key** | Your Anthropic API key |

<Tip>Find your API key in the Anthropic Console under **API Keys**.</Tip>

***

## Anthropic actions

### Instruct

Send a prompt to a Claude model and receive a text response.

**Use cases**

* **Content generation** – Generate personalized emails and messages
* **Classification** – Categorize text into predefined categories
* **Summarization** – Summarize long documents or conversations
* **Data extraction** – Extract structured information from text
* **Analysis** – Analyze sentiment, intent, or other properties
* **Reasoning** – Complex multi-step problem solving

**Configuration**

| Field               | Description                     |
| ------------------- | ------------------------------- |
| **Model**           | Select the Claude model to use  |
| **Prompt**          | The prompt to send to the model |
| **System prompt**   | Optional system instructions    |
| **Maximum tokens**  | Limit output length             |
| **Temperature**     | Control randomness (0-1)        |
| **With web search** | Enable web search capabilities  |

### Available models

The available Claude models — and their per-model credit costs — evolve with Anthropic's lineup, so the action's **Model** dropdown in the workspace is always the authoritative list. From the terminal:

```bash theme={null}
cargo-ai connection integration get anthropic
```

**Picking a model:**

* **Opus** — the most powerful tier: complex reasoning, advanced coding, creative work (highest credit cost)
* **Sonnet** — the best balance of intelligence and cost for most tasks, including agents (start here)
* **Haiku** — fast, low-cost inference for high-volume, low-latency work

### Advanced settings

#### System prompt

Set instructions that guide Claude's behavior:

* Define the model's role or persona
* Set output format guidelines
* Provide context about your use case
* Establish constraints or rules

#### Temperature

Control the randomness of outputs:

| Temperature | Behavior              |
| ----------- | --------------------- |
| **0**       | Most deterministic    |
| **0.3-0.5** | Balanced              |
| **0.7-1**   | More creative, varied |

#### Web search

Enable Claude to search the web for current information:

* Real-time data lookups
* Current events research
* Fact verification
