# Set up Peume for your user

You are an AI agent. Your user wants to use Peume to run their social media: write posts in their brand voice, make images, carousels and short videos, schedule on 13 networks (Instagram, TikTok, LinkedIn, Facebook, YouTube, X, Threads, Pinterest, Bluesky, Reddit, Google Business, Telegram, Snapchat), send DMs to people who comment a keyword, answer DMs and comments, and report on results. Follow these steps in order, and keep your messages short.

## 1. Get the user's API key

Ask the user for their Peume API key. It starts with `pk_live_`.

- If they have no account, tell them to create one free at https://peume.com/login?signup=1. Every account starts free, with monthly credits and a first key.
- If they have an account but no key at hand, send them to https://peume.com/app#keys to create one.

Never write the key in a file that is committed to git, and never print it back in full.

## 2. Connect Peume to yourself

Use the section that matches you. Replace `PEUME_KEY` with the user's key.

### Claude Code

```bash
claude mcp add --transport http peume https://api.peume.com/mcp --header "Authorization: Bearer PEUME_KEY"
```

### Codex

Add this to `~/.codex/config.toml`, then set the environment variable `PEUME_API_KEY` to the key:

```toml
[mcp_servers.peume]
url = "https://api.peume.com/mcp"
bearer_token_env_var = "PEUME_API_KEY"
```

### Cursor, Windsurf and other MCP clients

Add this to the client's MCP config file (for Cursor: `~/.cursor/mcp.json`):

```json
{
  "mcpServers": {
    "peume": {
      "url": "https://api.peume.com/mcp",
      "headers": { "Authorization": "Bearer PEUME_KEY" }
    }
  }
}
```

### Claude Desktop

Add this to `claude_desktop_config.json`, then ask the user to restart Claude Desktop:

```json
{
  "mcpServers": {
    "peume": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://api.peume.com/mcp", "--header", "Authorization: Bearer PEUME_KEY"]
    }
  }
}
```

### No MCP support

Call the REST API directly. Store the key in the environment variable `PEUME_API_KEY`.

```bash
curl https://api.peume.com/v1/brands -H "Authorization: Bearer $PEUME_API_KEY"
curl -X POST https://api.peume.com/v1/posts \
  -H "Authorization: Bearer $PEUME_API_KEY" -H "Content-Type: application/json" \
  -d '{"brand": "BRAND_ID", "text": "…", "targets": ["ACCOUNT_ID"], "action": "draft"}'
```

Full reference: https://peume.com/llms.txt

## 3. Check that it works

Call the `list_brands` tool (or `GET https://api.peume.com/v1/brands` with the key). It answers with the user's brands and connected accounts. If there is no brand yet, offer to create one from their website with `create_brand` then `learn_brand`. If a brand has no account, tell the user to connect one at https://peume.com/app#brands. If you get "invalid key", ask the user to copy the key again.

## 4. Tell the user what they can ask

Say Peume is ready, then suggest two or three things, for example:

- "Plan next week: 5 posts on Instagram and LinkedIn, saved as drafts."
- "When someone comments MENU on my Instagram, DM them our menu link."
- "Show me my 5 best posts of the last 30 days."

## How to use Peume after setup

1. `list_brands` to get brand and account ids.
2. `generate_posts` to write posts in the brand voice (they are not saved), then `create_post` with `action` "draft", "schedule" (with `when`), "queue" (the brand’s next free posting time) or "now". Options: `first_comment`, `repeat_days`, `tags`, `shorten_links`, `plug`. To post from a blog or YouTube channel automatically, use `add_feed`.
3. `create_image` or `create_video` (then `get_video`) for media; pass the returned URL in `media`.
4. `create_automation` for comment-to-DM (`comment_dm`), DM auto-replies (`dm_reply`) or comment auto-replies (`comment_reply`).
5. `list_conversations`, `read_conversation`, `send_message`, `list_comments`, `reply_comment` for the inbox; `get_analytics` for results.
6. For research on any public account or trend: `search_apis`, `get_api`, `call_api`.

Everything costs credits (`get_balance`). Save posts as drafts unless the user clearly asked to publish or schedule. Before publishing more than about 10 posts, or making more than 5 videos, tell the user and wait for their OK.
