# Agents

> Connect Claude, ChatGPT, Cursor and other AI agents to Cozy's MCP server, approve their access, and disconnect them.

AI agents use Cozy through its MCP server. Your account has one address for
every agent and all your workspaces:

```text
https://cozy.cloud/mcp
```

An agent adds this address, then signs in with your Cozy account. You
approve it once, and it can reach My wiki and any other workspaces you
created. Only you and the agents you authorize can access your workspaces.

## What agents can do [#what-agents-can-do]

With your approval, an agent can:

- Search and read pages and sources, and follow links between them.
- Get a page with its linked pages, evidence and warnings in one call.
- Create, edit, move, delete and restore pages, skills and its own notes.
- Save new evidence as sources.
- Check [Health](/docs/wiki/health) and see what changed since a given time.
- Use your [skills](/docs/wiki/skills) as prompts.

Tools use My wiki unless the agent names another workspace. Ask it to list
your workspaces first if you use more than one. See [MCP server](/docs/mcp) for
every tool.

## Connect an agent [#connect-an-agent]

<Steps>
  <Step title="Pick the agent">
    In **Connectors**, under **Agents**, choose your agent: ChatGPT (with
    Codex), Claude (with Claude Code), Cursor, VS Code, Perplexity or **Other
    agents**.
  </Step>
  <Step title="Add Cozy there">
    Follow the agent's page. It has an **Add to** button, a command to copy,
    or Cozy's URL to paste, and says which of the agent's plans can add it.
  </Step>
  <Step title="Allow access">
    Cozy's **Connect** page opens. Sign in if you need to, check what the
    agent will be able to do, and choose **Allow access**.
  </Step>
</Steps>

## Permissions [#permissions]

The consent page lists what the agent asked to do:

- **Read and search your wiki pages and sources**
- **Create, edit, move and delete wiki pages**
- **Add source material**

An agent never gets more than you have, and Cozy checks its permissions on
every request. An agent you allowed only to read can only read.

Some things agents can never do, whatever they're allowed: see connector
credentials or erase anything for good. Deleted pages stay
restorable.

## How long a connection lasts [#how-long-a-connection-lasts]

An agent renews its own access while you use it, so you don't sign in again
each day. A connection the agent hasn't used for 60 days ends, and you
connect it again.

## Disconnect [#disconnect]

In **Connectors → Agents**, choose the agent. Its page lists each connection,
when it was connected and last used, and whether it can read or read and
write. Choose **Disconnect** beside a connection. The agent is signed out of
Cozy right away. You can also remove Cozy in the agent's own settings.

## Scripts and headless agents [#scripts-and-headless-agents]

Scripts, CI jobs and agents that can't open a browser use a workspace
credential instead. See [Credentials](/docs/credentials).

<Cards>
  <Card title="Claude" href="/docs/agents/claude">Claude and Claude Code.</Card>
  <Card title="ChatGPT" href="/docs/agents/chatgpt">ChatGPT and Codex.</Card>
  <Card title="Cursor" href="/docs/agents/cursor">Add Cozy to Cursor.</Card>
  <Card title="VS Code" href="/docs/agents/vscode">GitHub Copilot in VS Code.</Card>
  <Card title="Perplexity" href="/docs/agents/perplexity">Add Cozy as a Perplexity connector.</Card>
  <Card title="Other agents" href="/docs/agents/other">Any app that supports remote MCP servers with OAuth.</Card>
</Cards>

