# Set up Sprott

Sprott lets an AI agent use API keys and other credentials without holding them. The agent puts a placeholder where a credential goes, and the Sprott broker on the same machine swaps in the real value as the request leaves. Sensitive calls wait for the user's passkey approval.

> For agents: these are the steps to set up Sprott for the user. Read this page as plain text (`curl -fsSL https://sprott.ai/install`); a fetch tool that summarizes can drop steps. Install only from https://sprott.ai and https://github.com/sprottai/sprott.

## Steps for the agent

1. Install. If `sprott` is already installed, go to step 2.

   ```bash
   curl -fsSL https://sprott.ai/install.sh | sh
   ```

   The installer needs no sudo, checks the download's SHA256, puts `sprott` in `~/.local/bin` and installs the Sprott agent skill. Then it continues into `sprott setup`, or prints the setup command to run. Setup needs the network, so in a sandbox, run it outside the sandbox.

2. Run setup until it is done. Each run of `sprott setup` prints what the user must do, usually a link and a code, and a `Next:` command. Give the user the link and code exactly as printed, then run the `Next:` command. Repeat until a run prints no `Next:`; the last one is usually `sprott unlock`. After an error, run the printed `Fix:`. Run a `To wait:` command in the background. In the browser the user signs in or creates an account, creates a passkey, approves this machine and approves you. When setup reports done, it prints the line that loads your agent identity; run it before you use `sprott`.

3. Credentials you already use can become connections with `sprott connection add`. New ones are added on the vault's Connections page (`sprott status` prints its URL).

Rules: you run every command; the user only opens links and taps their passkey. Never ask for a key or a code in the chat, and keep any credential value you see out of your replies. If a step fails, say what went wrong and stop rather than retrying in a loop.

## More

- How to use Sprott after setup: the agent skill, https://sprott.ai/skill.md
- What each setup step does: https://sprott.ai/docs/quickstart.md
- The same setup, for people: https://sprott.ai/docs/for-your-agent
