# Connect Claude Code to Stasho

Claude Code connects to Stasho with a key. You make the key in Stasho, and Stasho shows the exact command to run.

## How do I connect Claude Code?

1. Sign in to [Stasho](https://stasho.page/) and open the library menu (the button with your library's name, next to the logo).
2. Choose **Connect AI apps**, then make a new key. Give it a name that says who uses it, for example `claude-laptop`.
3. Choose what the key may do. **contributor** fits most people: it can add memories, and edit and trash its own.
4. Copy the command Stasho shows and run it in a terminal. It looks like this:

   ```text
   claude mcp add --transport http stasho https://stasho.page/mcp --header "Authorization: Bearer sto_<your key>"
   ```

5. Start Claude Code and ask: "What is in my Stasho library?"

## What should I ask Claude Code?

- "Save this plan to Stasho in the tech category."
- "Search Stasho for how we set up the deploy."
- "Before you start, check Stasho for notes about this project."

Big pages are fine: Claude Code sends a page too big to send inline through a one-time upload link, without extra steps from you.

## How do I keep the key safe?

The key works like a password for your library. Keep it out of shared files and chats. Each key works in one library, with the role you chose. If a key leaks, revoke it in **Connect AI apps** and make a new one. Read more in [Authentication](/docs/authentication).
