# Connect an AI agent (https://docs.usefitplus.com/docs/admin/content-agents)



An agent is an AI tool, such as Claude Code or Codex, that you connect to Content. It can read posts, write drafts and, if you allow it, schedule posts. You stay in control: some actions always need your approval.

## Before you start [#before-you-start]

* Select **Content** in the sidebar, then the **Agents** tab.
* The agent runs on your own computer. Each key is for one agent on one computer.

## What an agent can do [#what-an-agent-can-do]

| Action                                                                     | Permission needed               |
| -------------------------------------------------------------------------- | ------------------------------- |
| List, read and search posts                                                | Read                            |
| See analytics, best times to post, the brand brief and which accounts work | Read                            |
| Upload media and write drafts                                              | Draft                           |
| Ask Fit+ AI for captions                                                   | Draft                           |
| Schedule, move or cancel posts                                             | Schedule                        |
| Post now                                                                   | Schedule, and an admin approves |

Under **Rules for agents** there are two safety settings. **Post now waits for an admin** is always on for post now and cannot be changed. **Agent posts start as drafts** means that even with **Schedule**, an admin schedules the post, unless you turn this off.

## Create an access key [#create-an-access-key]

<Steps>
  <Step>
    On the **Agents** tab, select **New key**.
  </Step>

  <Step>
    Enter a **Name** that tells you which agent and computer it is for, for example "Claude Code, admin Mac".
  </Step>

  <Step>
    Under **What it can do**, tick what the agent needs. **Read posts, analytics and the brief** is always included. Add **Write drafts and upload media**, **Schedule, move and cancel posts** or **Post now, after an admin approves** only when needed.
  </Step>

  <Step>
    Choose **Expires after**: **30 days**, **90 days** or **1 year**.
  </Step>

  <Step>
    Select **Create key**. Copy the key now. You see it only once.
  </Step>
</Steps>

Store the key in a setting called `FITPLUS_CONTENT_KEY` on your computer. Never paste it into a chat or save it in a file you share.

## Connect Claude Code or Codex [#connect-claude-code-or-codex]

Under **Connect an agent**, choose **Claude Code**, **Codex** or **Other apps**. The page shows the server address and the command to paste. For Claude Code it looks like this:

```
claude mcp add --transport http fitplus-content \
  https://ezigxnwmhafpqppprfuc.supabase.co/functions/v1/content-mcp \
  --header "Authorization: Bearer $FITPLUS_CONTENT_KEY"
```

Run it in your terminal after you set `FITPLUS_CONTENT_KEY`. Select the copy icon next to the command to copy it.

## Approve what agents ask for [#approve-what-agents-ask-for]

When an agent wants to post now, or schedule while **Agent posts start as drafts** is on, the request waits for you.

<Steps>
  <Step>
    Open the **Agents** tab, then **Activity**. Requests appear under **Waiting for you**.
  </Step>

  <Step>
    Select **Open** to read the post.
  </Step>

  <Step>
    Select **Approve and post** to let it go out, or **Decline**.
  </Step>
</Steps>

**Activity** also lists everything agents did: when, which agent, what it did, on which post, and the **Result**. A result is **Done**, **Waiting**, **Blocked** or **Failed**. **Blocked** means the key does not have the permission for that action. Use **All agents** to look at one agent.

## Revoke a key [#revoke-a-key]

Keys stop working on their expiry date. To stop one sooner, open **Setup and keys**, select the three dots on the key's row and choose **Revoke key**, then **Revoke key** again to confirm. The agent loses access right away. Create a new key if you need one again.

## Common questions [#common-questions]

<Accordions>
  <Accordion title="Can an agent post without asking me?">
    Not for post now. It always waits for an admin. Scheduling also waits while **Agent posts start as drafts** is on.
  </Accordion>

  <Accordion title="I lost the key.">
    Keys are shown once. Revoke it and create a new one.
  </Accordion>

  <Accordion title="Can an agent see my members?">
    No. Agents only reach Content: posts, drafts, analytics, the brief and accounts.
  </Accordion>
</Accordions>

{/* Screenshots: the Agents tab, the New access key dialog and the Activity tab. */}
