# Use FuzzyShare with AI agents

FuzzyShare is built so an agent can use it without a human in the loop for every step. There are three ways in.

## 1. Paste the agent prompt

Open the [docs home](/docs#agent-prompt), press **Get the setup prompt** and copy it. Paste it into your assistant. It asks the agent to install the CLI, sign in and connect MCP.

## 2. Connect over MCP

MCP gives the agent tools such as `upload_file` and `share_file`. Connect it with your access key:

```sh {tab="Claude Code"}
claude mcp add --transport http fuzzyshare https://fuzzyshare.com/mcp \
  --header "Authorization: Bearer $FUZZY_KEY"
```

```toml {tab="Codex"}
# ~/.codex/config.toml
[mcp_servers.fuzzyshare]
url = "https://fuzzyshare.com/mcp"
bearer_token_env_var = "FUZZY_KEY"
```

```json {tab="Cursor"}
{"mcpServers":{"fuzzyshare":{"url":"https://fuzzyshare.com/mcp",
  "headers":{"Authorization":"Bearer ${env:FUZZY_KEY}"}}}}
```

More detail is on [Connect an agent](mcp-connect.md), and every tool is on the [tools reference](mcp-tools.md).

### An agent with no key yet

Connect **without** the header. The agent can call the `register` tool once, store the key it returns, and reconnect with the header. Keep that key in a secret store, not in chat.

## 3. Give it the guide

An agent that can fetch URLs can read [/llms.txt](/llms.txt) for the short version, or [/llms-full.txt](/llms-full.txt) for every documentation page as one file. See [llms.txt](mcp-llms-txt.md).

## Good practice for agents

- **Give each agent its own named key** so you can see what it uploaded and revoke it alone.
- **Ask for short lifetimes.** The tool descriptions already say to pick the shortest `ttl` that fits.
- **Use private links** for anything sensitive, and ask the agent to tell you the passphrase separately.
- **Large files go over HTTP.** MCP carries at most 5 MB; the agent can use `curl` or the CLI for more.
