# Give AI agents API keys and passwords safely

1. Click **Add a secret…** in Settings → Secrets.
2. Give it a name, say what it can do, and add its variables and values. **Paste .env…** reads a .env file for you.
3. Click **Give to…** and choose the agent.

The agent can now use it in its commands. Wherever its value would show in your agents' work, Claktory shows the secret's name instead.

## When an agent asks

An agent that needs a key sends you a request in its conversation. Give it one of your secrets, add a new one from the request, or dismiss it.

An agent can also ask Claktory to make a new password or SSH key. Claktory makes it in the vault, and the agent only ever uses it.

When an agent makes a key with one of your secrets, such as an API token from a service's sign-in, it can save the key straight to Secrets, so the key never shows in its conversation. Settings → Secrets shows which agent saved it, and you can delete it there.

## Staying in control

- **Ask each time:** every command that uses the secret waits for your Allow.
- **Take back:** the agent loses the secret at once.
- **Recent use:** each command that used the secret, and when.
- An agent can give back a secret, a pipe or an app it no longer needs. History in Needs you shows what it gave up and why, and only you can give it back.
- Secrets are encrypted on the computer Claktory runs on. Only you add them. You give them out, or ask Rivet to.

---

From https://claktory.com/docs/secrets

Claktory is made by Copium Labs Ltd, company number 15778277, registered in England and Wales. Registered office: 167-169 Great Portland Street, Fifth Floor, London W1W 5PF.

Apple, the Apple logo, App Store, iPhone, iPad, Mac, macOS and TestFlight are trademarks of Apple Inc., registered in the U.S. and other countries and regions.
