# AI agents

> Let Claude, Cursor or another assistant draft and edit with your team, under rules you set.

Quillhive is built for teams that write with AI agents. Agents connect through the [MCP server](/docs/mcp). They can read your posts, draft new ones and make targeted edits. People stay in charge of what gets published.

## Three ways to connect an agent

| Credential                | Acts as                               | Reaches                                    | Create it in                        |
| ------------------------- | ------------------------------------- | ------------------------------------------ | ----------------------------------- |
| **Personal access token** | You, with your role on each site      | Every site you're on, or the ones you pick | User menu → **MCP server**          |
| **Site API key**          | The admin who created it              | One site                                   | **Settings → Developer → API** |
| **Agent staff member**    | The agent itself, as author or editor | One site                                   | **Settings → Staff → Add agent**    |

Use a **personal access token** when you are the one working with the assistant. Use an **agent staff member** when the agent works on its own and you want its changes credited to it. See [Authentication](/docs/mcp/authentication) for the details.

## Add an agent as staff

1. Open **Settings → Staff** and choose **Add agent**.
2. Name it (for example _Claude_), then pick a role:
   - **Author**: creates posts and edits only its own.
   - **Editor**: edits and publishes all posts, pages and tags.
3. Choose read-only or read and write.
4. Copy the key. It is shown once. The dialog shows setup steps for common clients.

Agents can't be admins and can't sign in to the dashboard. What they write is credited to the agent inside the dashboard, while the public byline is the person who added the agent, so agents never show up on the blog.

To replace a lost key, choose **New API key** on the Staff page. The old key stops working at once. Deactivate the agent to pause it, or remove it to delete its key.

## What agents can't do

These are deliberate rules:

- **Deletes go to the trash.** An agent can delete a post or page, but it only moves to the [trash](/help/trash), where you can restore it. Only people can delete things for good. Deleting a published post needs your OK first. Agents can't delete tags, media or anything else.
- **One item per call.** There are no bulk tools. Every change is checked on its own.
- **Risky changes need you.** Unpublishing, changing a live slug, gutting a published post or removing all its tags is refused until the agent asks you and you agree.
- **No overwrites.** If someone saved since the agent read a post, its edit is refused and it has to re-read first.

Every change an agent makes can be undone from **History**. See [Revision history](/help/revision-history).
