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

# Quickstart for agents

> Install the Loops CLI and agent skills so Claude Code, Codex, Cursor, or your coding agent can wire contacts, events, and transactional email into your app.

Give this page to Claude Code, Codex, Cursor, or your own agent when you want
help wiring Loops into your app. Agents can use the Loops CLI and skills to
update your code, read the right docs, and leave credentials in environment
variables.

<Tip>
  Want to set up Loops yourself? Follow the [Human quickstart](/quickstart).
</Tip>

## Install Loops for agents

<Card title="Recommended setup" icon="wand-magic-sparkles">
  Install the Loops CLI and agent skills with one command.

  ```bash theme={"dark"}
  curl -fsSL https://install.loops.so/wizard | sh
  ```
</Card>

***

Need only one part of the setup?

<Tabs>
  <Tab title="CLI only">
    ```bash theme={"dark"}
    curl -fsSL https://install.loops.so/cli | sh
    ```
  </Tab>

  <Tab title="Skills only">
    ```bash theme={"dark"}
    curl -fsSL https://install.loops.so/skills | sh
    ```
  </Tab>
</Tabs>

Then prompt your agent:

```
Follow https://loops.so/docs/quickstart-agents. Set up Loops in this project.
Use env vars for credentials and show me what changed when you're done.
```

Ask your agent to use the [LMX](/skills#lmx) and [email best practices](/skills#email-best-practices-skill) skills when you need them.

<Tip>
  Keep API keys in environment variables. Do not hardcode credentials in prompts,
  scripts, or repository files.
</Tip>

## MCP and agent clients

Many agent tools describe integrations as MCP, Model Context Protocol, tools,
or skills. For Loops, the recommended public setup is still the same:

1. Install the Loops CLI and skills.
2. Open your project in Claude Code, Codex, Cursor, or another coding agent.
3. Ask the agent to follow this page and use environment variables for API keys.

If your environment requires a separate MCP server or a private integration,
contact support from the [Support page](https://app.loops.so/settings?page=support).

## Use cases

* Generate product update emails from recent GitHub releases, merged PRs, or changelog notes.
* Sync new app users to Loops as contacts when they sign up.
* Update contact properties when a user changes plan, role, company, or onboarding status.
* Track product events like `trial_started`, `plan_upgraded`, `invite_sent`, or `onboarding_completed`.
* Send transactional emails for password resets, magic links, invoices, receipts, or team invites.
* Draft or update LMX templates for transactional and product emails.
* Add CLI smoke tests for contact creation, event tracking, and transactional sends.
* Review your email setup with the Loops email best practices skill.

## Go deeper

<CardGroup cols={2}>
  <Card title="Skills" icon="book" href="/skills" />

  <Card title="CLI" icon="terminal" href="/cli" />

  <Card title="API reference" icon="code" href="/api-reference/intro" />

  <Card title="Human quickstart" icon="user" href="/quickstart" />
</CardGroup>
