Should you give an AI agent your passwords and credit card?

Yes, but only if the model never sees the secret. How agent secrets leak, and how Hermes' vault, 1Password, Bitwarden, Visa, Mastercard, AP2 and ACP compare.

By Kovacs Software Solutions, the makers of Ceryx · Published · 12 min read

Yes, you can let an AI agent use your passwords and your credit card, but only through a system where the model never sees the secret. The agent should ask to use a login or a card by name. A separate component, such as a password manager, a credential vault or a payment token, then puts the real value into the page or the payment. The password or card number never enters the model’s context, its memory or its logs.

Never type a password or card number into the chat. Anything in the chat becomes part of the model’s context. It can end up in session history, memory and logs, and a prompt injection can talk the model into sending it somewhere. For payments, add two more rules. Approve each payment yourself, and set a spending cap the agent can’t change.

This guide shows how secrets leak from AI agents, compares the safe patterns available today (from Hermes Agent’s credential vault to Visa, Mastercard, Google and Stripe), and ends with a checklist.

How does giving an AI agent a password go wrong?

Most leaks don’t need a clever attack. They come from putting the secret where the model can read it.

Pasting secrets into the chat

When you paste a password into a chat, it becomes text in the conversation. The model reads it on every later turn, may quote it back, and may pass it to a tool. With Hermes Agent, every CLI and messaging session is stored in a SQLite database at ~/.hermes/state.db with full-text search. A password you pasted in March is still there to be found in June, by you or by the agent’s own session search.

Memory

Agents with long-term memory save facts about you to use later. If a secret is in the conversation, a memory step can save it. Hermes scans memory writes for credential exfiltration and injection patterns, and that helps. A scan looks for patterns, though, and it can’t tell that a random-looking string is your bank password.

Logs and tool output

Agents run commands and scripts. If the agent puts a password in a command line, a config file or a script it writes, the secret can land in shell history, log files and backups. Hermes’ vault registers a filled password with a redactor so a later page read can’t echo it back. That protection only exists when the vault filled the password. A secret pasted into the chat gets none of it.

Prompt injection that sends your data out

This is the dangerous one. An agent that reads untrusted content, like an email, a web page or a shared document, can be given instructions by whoever wrote that content. If the model can see a secret, an attacker can try to make it send the secret out.

  • EchoLeak (CVE-2025-32711). In June 2025, Aim Security showed that one crafted email could make Microsoft 365 Copilot collect private data from the user’s earlier chats and send it to an attacker’s server, with no click by the victim (SecurityWeek).
  • SpAIware. In 2024, Johann Rehberger showed that a web page could plant instructions in ChatGPT’s long-term memory that sent later conversations to an attacker. OpenAI fixed that route for sending data out in ChatGPT version 1.2024.247 (Embrace The Red).

Simon Willison calls this combination the lethal trifecta. An agent that has private data, reads untrusted content and can communicate externally can be tricked into stealing your data. OpenAI wrote in December 2025 that prompt injection “is unlikely to ever be fully ‘solved’” (OpenAI). So the safe design doesn’t rely on the model resisting. It keeps the secret out of the model’s reach.

What does “the model never sees the secret” mean in practice?

Every safe pattern below follows the same four ideas.

  1. Handles, not values. The agent refers to a login or card by a label, such as “GitHub work account” or “Visa ending 4242”. The real value stays in a store the model can’t read.
  2. Fill outside the model. A separate component writes the value into the page, the process or the payment. The model sees only “filled” or “failed”.
  3. Bound to a place. A login fills only on the exact site it belongs to. A payment token works only for one merchant, one amount or one set of rules. A phishing page gets nothing.
  4. A person approves the risky uses. Payments, and sometimes every credential request, need a human yes, ideally outside the chat window.

What are the safe options today?

The Hermes Agent credential vault

If you run Hermes Agent, start here. The credential vault stores logins with one-time-code keys, cards and addresses, encrypted under ~/.hermes/vault/ and scoped to each profile. The agent uses the browser_vault tool to fill a saved item into a page.

  • Labels, site origins and login names are visible to the model. Passwords and card values never leave the vault except into the page.
  • A fill is refused unless the page origin exactly matches the saved origin, and Hermes checks again just before it writes.
  • Every card fill asks you first. Cron jobs, webhooks and the API server can’t confirm, so they are refused.
  • The key can live in your OS keychain. Run hermes vault key migrate --to keychain.
  • If the op or bw CLI is installed and signed in, Hermes can read logins from 1Password or Bitwarden too.

The docs are honest about the limits. Once a password is typed into a site, that site has it. A plugin runs inside Hermes and can do anything Hermes can, including filling a saved login. Malware running as you can decrypt the vault in either key mode.

1Password with Browserbase

In October 2025, 1Password and Browserbase announced Secure Agentic Autofill for AI agents that browse in Browserbase’s cloud browsers. Credentials come from your 1Password vault at the moment they are needed. 1Password says “Secrets never pass through or become visible to the AI,” and you approve access in real time in the 1Password app on your phone or computer. It launched in early access for 1Password customers using Browserbase (1Password).

Bitwarden

Bitwarden offers two different tools, and the difference matters.

  • The Bitwarden MCP server runs on your machine through the Bitwarden CLI. It lets an AI assistant retrieve passwords and one-time codes and manage vault items. That means the secret can pass through the model. Bitwarden strongly recommends using it with a local, self-hosted model (Bitwarden).
  • The Agent Access SDK, announced in March 2026, is built for the safer pattern. The agent asks for one credential, you approve each request in the CLI, and the run command injects the credential into a child process as environment variables. It is open source under Apache 2.0 and was announced as an early alpha for testing, not production (Bitwarden).

Visa Intelligent Commerce and Mastercard Agent Pay

The card networks are building agent payments into the card system itself. Both announced their programs in April 2025.

  • Visa Intelligent Commerce replaces card details with tokenized credentials for AI agents. You set the spending limits and conditions, and Visa says “Only the consumer can instruct the agent on what to do and when to activate a payment credential” (Visa).
  • Mastercard Agent Pay introduces Mastercard Agentic Tokens, built on its existing tokenization. Agents must be registered and verified before they can pay, you control what an agent may buy, and agents can support strong authentication with on-device biometrics (Mastercard).

In both cases the agent holds a token, not your card number. A leaked token is limited by the rules on it.

Google’s Agent Payments Protocol (AP2)

Google announced AP2 in September 2025 with more than 60 partners, including Adyen, American Express, Mastercard, PayPal and Coinbase. AP2 records what you authorized in “mandates”, which are cryptographically signed digital contracts (Google Cloud).

  • An Intent Mandate captures your request and its rules, such as a price limit and timing.
  • A Cart Mandate records the exact items and price when you approve the cart.

When you are present, you sign the cart. When you are not, you sign a detailed Intent Mandate up front, such as “buy concert tickets the moment they go on sale”, and the agent creates the Cart Mandate only when the conditions are met. The chain from intent to cart to payment leaves an audit trail.

Stripe and OpenAI’s Agentic Commerce Protocol (ACP)

Stripe and OpenAI released the Agentic Commerce Protocol in September 2025, alongside Instant Checkout in ChatGPT. After you pay, Stripe issues a Shared Payment Token that is “scoped to a specific merchant and cart total” and lets ChatGPT start the payment “without exposing the buyer’s payment credentials” (Stripe). ACP is an open standard under the Apache 2.0 license (agenticcommerce.dev).

How do these options compare?

OptionWhat it protectsDoes the model see the secret?Your controlAnnounced
Hermes credential vaultLogins, one-time codes, cards, addressesNo. It sees labels, sites and login names.Exact-origin fill. Approval for every card fill.Part of Hermes Agent
1Password + BrowserbaseLogins and one-time codes in a cloud browserNo, per 1PasswordReal-time approval in the 1Password appOctober 2025, as early access
Bitwarden MCP serverVault itemsYes, when the assistant retrieves oneLocal CLI. Bitwarden advises a local model.2025
Bitwarden Agent Access SDKCredentials for scripts and toolsInjected into a process, not the chatApprove each requestMarch 2026, as an early alpha
Visa Intelligent CommerceCard paymentsNo. The agent uses a token.Limits and conditions you setApril 2025
Mastercard Agent PayCard paymentsNo. The agent uses an Agentic Token.Limits you set, registered agents, biometricsApril 2025
Google AP2PaymentsNo. Mandates authorize the payment.Signed Intent and Cart MandatesSeptember 2025
Stripe and OpenAI ACPCheckout in AI appsNo, per StripeToken scoped to one merchant and cart totalSeptember 2025, with Instant Checkout in ChatGPT

The payment protocols need the shop to support them. For most shops today, a personal agent still fills a card form in a browser, which is where a vault with per-payment approval matters.

A checklist for passwords and cards

  1. Never paste a secret into a chat. Not a password, an API key, a one-time code or a card number. If you already did, change it, and delete that session.
  2. Use a vault that fills without showing the value. On Hermes, add logins with hermes vault add or in Hermes Desktop under Settings, Passwords & Logins.
  3. Keep the vault key in your OS keychain. Run hermes vault key migrate --to keychain, and read the backup caveats first.
  4. Bind every login to its exact site. Check the saved origin. A login for https://github.com should never fill on a look-alike domain.
  5. Give each bot only the logins it needs. A research bot doesn’t need your bank. In Hermes, separate profiles keep separate vaults.
  6. Use a separate card for agents. A virtual card or a card with a low limit keeps the worst case small.
  7. Approve every payment yourself, and check the total on the shop’s own page. An agent’s summary of the price is only a claim.
  8. Set spending caps. Per payment and per month, in a place the agent can’t edit.
  9. Turn off memory writes you didn’t ask for. In Hermes, set memory.write_approval: true and review what is staged with /memory pending.
  10. Watch for agents that build their own password store. If a bot asks you to type a password into the chat or writes one into a script, stop it and put the secret in the vault.
  11. Prefer tokens over card numbers where shops support them. Network tokens, Shared Payment Tokens and signed mandates limit what a leak can do.

For the wider set of protections, read Is Hermes Agent safe?

How the Ceryx Vault works

Ceryx is a desktop app for running a team of bots on your own Hermes server, and its Vault builds on Hermes’ credential vault. Hermes does the encrypted storage and the exact-origin fill. Ceryx adds the policy on top.

  • You choose which bot may use each login or card. Each grant is signed by your device. A bot sees only the item’s name, its site and the account name, never the password or card number.
  • The Vault stays locked until you unlock it. An unlock lasts 15 minutes by default.
  • Payments are off until you set caps. You set a cap per payment and per bot per month. The screen suggests $50 per payment and $200 per bot per month.
  • Each payment needs your OK. You see the amount, the shop, the card and the bot’s reason. Your approval is signed, and it allows exactly one card fill within 5 minutes.
  • You check the total. Ceryx Guardian can’t see the shop’s page, so the amount on the approval card is the one the bot declares. Check the total on the shop’s own page.

Read the Vault: passwords and cards your bots never see for the full details, and how Ceryx Guardian works for how each action is checked.

Ceryx is independent and not affiliated with Nous Research.

Sources

Read next