Giving an AI agent your passwords? How to keep API keys and logins secret
30 November 2026 · 4 min read
Confession: I have pasted API keys into a chat window. Not once, but more often than I would like to admit. The agent needs to deploy something, the environment variable is missing, so in it goes, straight into the prompt. It works. And every time it feels a bit like leaving your house key under the doormat with a sign next to it.
That is exactly the problem the new Orrevan vault is meant to solve. I looked at how it is built, and the concept is surprisingly well thought out. Here is the honest version, no marketing fluff.
The real problem with AI agents and credentials
AI agents can run commands, push code and drive websites. For that they need access: a GitHub token, a dashboard login, sometimes a 2FA code. The easy way is to type them into the chat. The result:
- The key sits in your chat history, in plain text.
- The model has the value in its context and can repeat it in replies, logs or files.
- You lose track of where that key ended up.
A classic password manager only gets you halfway. It fills in forms for humans, not for an agent working in a terminal.
How the Orrevan vault works
The core idea: the AI never gets the real value, only a placeholder. Instead of ghp_... the model sees something like {{vault:github}}. Only when a command or a browser action actually runs on your computer does the Orrevan CLI swap in the real value. For commands as an environment variable, in the browser typed straight into the field.
The vault holds five kinds of items:
- Logins (username and password)
- API keys and tokens
- 2FA secrets, from which the CLI generates the current code
- Notes
- Passkeys created in the Orrevan browser
Credit cards are left out on purpose. Card numbers are never stored, and clicks that look like paying always ask first in the browser agent. I think that is the right call.
Zero knowledge: what does end-to-end encrypted actually mean here?
"Encrypted" is printed on every box these days, so the details matter:
- You set a separate vault password, distinct from your account password, at least 10 characters.
- A key is derived from it on your device with PBKDF2 (600,000 rounds).
- Every item is encrypted with AES-256-GCM before it leaves your device.
- Orrevan only stores encrypted data and cannot open it.
The flip side, and it belongs in an honest write-up: during setup you get a recovery code that is shown once. Lose both the password and the code and the content is gone. Nobody at Orrevan can get it back. That is not a bug, it is the price of zero knowledge.
Control: domains, confirmations, log
A placeholder alone is not enough. An agent could try to build a command that sends the key somewhere else. So there are several locks:
- Allowed domains per item. The GitHub token may only go to GitHub, the mail login only to your mail provider.
- A confirmation before each use. By default the CLI asks before a value is filled in. You can switch that off only per item, and items without a domain limit always ask.
- Redacted output. If a value shows up in a command's output, it is blacked out before the model sees it.
- A 90 day log. Every use, refusal or block appears in the vault log on the website.
- CLI access as a switch. You decide whether the CLI may load the vault at all.
It is not perfect, and nobody claims it is. If you turn off every confirmation and set no domains, you give up control. But the defaults are careful, which is more than I am used to from most agent tools.
How to set up the vault
- Open your account and create the vault under Settings > Vault in the chat, or on the account page.
- Pick a vault password and store the recovery code somewhere safe.
- Add items and set their allowed domains.
- In the terminal run
orrevan --vaultand enter the vault password. Unlocking happens locally on your machine.
orrevan vault lists your items, orrevan vault code github prints the current 2FA code of an item. Combined with orrevan --browser, the agent signs in to a visible Chrome, Edge or Brave window with your logins or passkeys. Captchas and SMS codes it hands over to you.
Who is this for?
Worth knowing: the vault is built for the CLI. The web chat itself does not take actions, there you only manage your items.
If you use the CLI for deployments, scripts or browser tasks, the vault is simply the saner path than copy and paste into the chat. If you only chat, you do not need it.
My take: not a feature that gets applause on social media. But one you miss the moment you find one of your keys sitting in a log file.
Create an account and set up your vault, read more about the CLI or see every command in the docs. Everything else that is new is in the update post.