Short answer: a token vault solves one real problem. When it attaches the credential outside the agent, the credential stays out of the agent’s prompt, memory and config, so a prompt injection or a copied prompt has no credential to carry off. It can narrow which tools an agent calls. It does not set what the credential itself allows, for how long, or who chose that. The app that issued the credential does. An agent builder choosing a vault and an app owner choosing how agents are granted access are answering two different questions.
Christian Posta, describing the gateway his team builds at Solo.io, put the starting question well in a July 2026 post: “at the moment the agent makes a call, where does the credential live?” When the credential sits where the agent can read it, an injected instruction can get the agent to send it somewhere, and anyone who copies the prompt gets the credential with it. An earlier post covered a study that measured the second case. Vaults are a common answer to both. Below is what they do, in the words of the people who build them, and what is left for the app on the other end.
What does a token vault do?
It holds the credential somewhere the agent cannot read and attaches it to the request on the way out. In Composio’s authentication docs, Composio adds the credential to the request on its own servers and passes back the provider’s response: “Your application and the model receive tool results, not tokens.” The user connects an account through a hosted link and consents at the provider. In the sequence on Composio’s token custody page, the provider then sends an “OAuth authorization callback” to Composio, which receives “Access and refresh tokens” and stores them encrypted.
Not every product with vault in its name works the same way. Auth0 “stores the access and refresh tokens for each connected account” in its Token Vault, and then “The application calls Auth0 to exchange a user’s valid Auth0 token for an external provider’s access token” and calls the API with it. There the token reaches the application. Whether the model ever sees it depends on how that application is built.
The pattern was also written up in March 2026 as an individual Internet-Draft, Credential Broker for Agents. It expired on September 30, 2026 with no newer version, and it still lays out the options clearly. In its proxy model, “The agent never receives, sees, or holds the real credential.” In the model the draft recommends, a broker mints a short-lived token and hands it to the agent, and the draft lists the weakness itself: “The agent holds a real (if temporary) credential in memory.”
What problem does that solve?
The copied-prompt problem and the hand-it-over problem. When the credential is not in the prompt, a copy of the prompt does not contain it. When the agent does not hold it, an injected request for the API key has no key to return. That is a real gain. It is also one that AgentAdmit’s own hand-off step does not give you, and we say where below.
What does a vault leave to someone else?
Three things, each stated by the builders themselves.
Custody. The credentials still exist, and now they sit in one place. Composio says so directly: “In the default Composio Cloud deployment, Composio has custody of those credentials. Keeping a token out of your application and keeping it outside Composio’s infrastructure are different requirements.” It offers deployments where credentials stay in the customer’s own cloud or are decrypted with the customer’s keys. Posta, after describing his own gateway’s token store: “We didn’t eliminate the credentials. We just created a high-value target.” He says a second part covers hardening that store. The Internet-Draft rates the same risk as critical: “The broker (CDP) is the highest-value target in the architecture.”
The vault’s own key. The agent builder’s backend no longer holds provider tokens. It holds a key to the vault. Composio’s custody page: “A Composio API key is still a secret with permission to act on connected accounts”. The same page tells developers to keep that key on their backend, because whoever holds it can act for every user in the project.
What the credential can do. A vault has controls of its own. Composio’s authentication docs describe two that shape what an agent can reach, and both belong to the developer building the agent: which toolkits and tools an agent can call (session configuration), and which scopes are asked of the provider (one auth config per toolkit, applied to every user who connects it). Underneath them sits the credential, and on who grants it, Composio’s controls table says: “The provider grants the authorization.”
Who decides what the credential can do?
The app that issues it. Posta again: “GitHub wants its own OAuth token, obtained by that specific user consenting in a browser. You can’t mint it. You have to go get it once, and then hold onto it.” A vault holds what the app gives. Composio’s auth configs take OAuth, bearer tokens, API keys or basic auth. If the only thing an app issues is an account-wide API key, that key is what goes in the vault, and what it can do has not changed: it still opens the whole account.
This is the side AgentAdmit works on. AgentAdmit is for app owners and MCP server operators who give their own AI agent scoped access to what they run, and who let their users connect their own agents. It complements standards like OAuth. Step by step, against the same lifecycle a vault covers:
- Connecting. The grant starts inside the app the user already trusts, in their signed-in session. The consent step runs on an AgentAdmit page opened on the app’s behalf, where the user picks what the agent may do and for how long.
- Delivery. That page shows the user a Connection Token: single-use, 15 minutes by default, one hour at most. The user hands it to their agent. There is no redirect and no callback between the app and the agent, so an injected instruction has no automated path to a new grant. This is user-mediated delivery.
- Discovery and use. The agent exchanges the Connection Token for an Access Token, and the same response lists the granted scopes and only the endpoints those scopes cover. There is no refresh token. Continuing past expiry takes a new grant from the person.
- Limits. The app checks every call with AgentAdmit before running it: the scope the call needs, the grant’s expiry, and whether the grant has been revoked. The user can set call ceilings, daily or lifetime counts, when granting. For higher-risk actions, like sending money or deleting records, the app can mark them as confirm each time. Each of those calls is then refused until a passkey already on file for that user signs that exact action. The app chooses how strong that passkey must be: a user-verified passkey such as Face ID, or only a hardware security key validated against the FIDO Metadata Service.
- Ending it and reviewing it. A person or the app owner can revoke one connection without touching the rest. Each verified call writes a tamper-evident audit row, and the verifiers for those records are public.
What does AgentAdmit not do that a vault does?
Three limits, stated plainly.
First, it does not keep the credential away from the model. The user hands the Connection Token to their agent, so it can pass through a prompt, and the agent holds the Access Token afterwards. What limits the damage is what those credentials are. The first is single-use and short-lived. The second is scoped to what the person approved, checked on every call and revocable. A copied Access Token still works inside its scopes until it expires or someone revokes it.
Second, it exists only where the app has integrated it. A vault works today with providers that already issue tokens. Auth0’s page lists Google, Microsoft, Box, Slack and GitHub among them. AgentAdmit is something an app owner adds to their own API.
Third, it does not store credentials for other services. An agent builder holding users’ Google and Slack tokens still needs somewhere to hold them.
Do you need both?
They sit on different sides of the same call. A vault is the agent builder’s tool: one guarded place for the credentials of many apps. A grant is the app owner’s tool: what an agent’s credential for this app can do, chosen by a person, whether that is a user connecting their own agent or the owner setting up theirs. An agent builder who calls many apps has the vault question either way. An app owner has the grant question either way. One does not answer the other.
If you build agents, the vault question is yours, and the vendors quoted above answer it better than we can. If you run an app or an MCP server that agents call, the question the vault cannot answer for you is this one: when a credential for your API is used by an agent, who chose what it can do, and can you end that one agent’s access without ending everyone’s?
FAQ
Does a token vault stop prompt injection?
It stops one consequence of it. An injected instruction cannot make an agent hand over a credential the agent does not hold. The agent can still be steered into calling the tools its builder allowed, so what the underlying credential permits still matters.
Who holds the tokens when you use a token vault?
The vault operator, unless you arrange otherwise. Composio’s documentation says that in its default cloud deployment Composio has custody of the credentials. It also offers deployments where credentials stay in the customer’s own cloud or are decrypted with the customer’s keys.
Does AgentAdmit keep the token out of the prompt?
No. The user hands a single-use Connection Token to their agent, so it can pass through a prompt, and the agent holds the Access Token afterwards. AgentAdmit limits what a copied credential is worth: it is scoped to what the person approved, time-limited, checked on every call and revocable.
Is AgentAdmit a replacement for a token vault?
No. A vault is an agent builder’s tool for holding the credentials of many apps. AgentAdmit is an app owner’s tool for deciding what an agent’s credential for their app can do, with the person choosing scope and duration. They answer different questions.
AgentAdmit is the app owner’s side of agent access: scoped, time-limited, revocable connections that your users grant to their agents and that you grant to your own. Build and test with test keys at agentadmit.com. Related: prompt injection is an authorization problem.