# Laptops and AI agents

Developer laptops hold the keys to everything else, and AI agents increasingly hold secrets too. Give each laptop its own canary, and plant one wherever an agent reads its secrets, to catch an agent that's been tricked into leaking them.

## Developer laptops

On macOS or Linux, run:

```sh
curl -fsSL https://get.snitchwallet.com | sh
```

Approve the laptop in your browser and fund the address it prints. The decoy goes in your user's configuration folder, and the alert names the laptop by its hostname. Use `--name` for something clearer, such as `alex-macbook`.

To roll it out to a fleet through device management (Jamf, Kandji, Intune or similar), run the same line as a script with an auth key in `SNITCH_AUTHKEY`:

```sh
curl -fsSL https://get.snitchwallet.com | SNITCH_AUTHKEY="$KEY" sh
```

Device-management scripts run as root, so the decoy goes under `/etc`, where a real system-wide setting would live.

Laptops are kept for years, so this is a per-machine canary: the key stays on the laptop.

## AI agents

A prompt-injected agent can be talked into reading files or environment variables and sending them somewhere. Plant a canary where the agent would find secrets, and if it leaks them and someone takes the bitcoin, you'll know.

Put a decoy in the `.env` file the agent's tools load:

```sh
curl -fsSL https://get.snitchwallet.com | sh -s -- --decoy "env:$HOME/agent-workspace/.env" --name agent-workspace
```

Or pipe one into the agent's secret store or its runtime environment, as in the guides for [Docker](/docs/docker), [Kubernetes](/docs/kubernetes) or [CI pipelines](/docs/ci).

Agents can install canaries too: the installer has `--json` output, no prompts and stable exit codes. It never prints a key or a decoy's location, so nothing sensitive ends up in an agent's transcript.
