Keeps keys and stablecoin wallets in secure enclaves, with a policy engine that checks every signature.
Where Turnkey fits
Turnkey keeps private keys inside secure enclaves: sealed-off parts of a server whose contents can't be read from outside. Your app or agent asks Turnkey to sign, Turnkey checks your policies, and only then does a signature come back. The key itself never leaves the enclave. Policies work like an allowlist: a key signs only what a policy says it may, and nothing else.
Turnkey Verifiable Cloud (TVC) goes one step further: you run your own code inside a Turnkey enclave, and you can check exactly which version of it is running, from a proof the enclave publishes when it starts.
How Visa CLI uses Turnkey
Visa CLI is built on Turnkey. Every verified agent's signing key, and every payment an agent makes, goes through it. How Visa CLI is built shows how it fits with the other pieces.
Choose Turnkey when
- You want agent keys that nobody on your team can export, including your own servers.
- You want signing rules enforced outside your app, so a bug in your code can't approve a payment by itself.
- You want stablecoin wallets for each user or agent, with approvals you set per key.
- You want to check which code holds your keys, with boot proofs, before you trust it.
Not the right fit when
- You only need to verify signed requests. That needs no key at all. See Verify a signed request.
- You need a card credential. Turnkey doesn't vault cards, so pair it with a card partner.
Set it up
- Create a Turnkey organization, and a sub-organization (a separate Turnkey account) for each of your users. See sub-organizations.
- Create an Ed25519 or P-256 key for each agent. Both work with TAP, and Basis Theory recommends P-256. Its public key is what you register in the Visa Agent Directory. See Register an agent.
- Write a policy that lets only your signer sign with that key, and only the activity you need. See Turnkey policies.
- Build each request's signature base, the exact text TAP signs, and have Turnkey sign it with its raw signing call. Then send the headers as described in Sign requests as an agent.
- To run your signing code in a verifiable enclave, request access to TVC.
Live and coming
| Live today |
|---|
| Keys in secure enclaves, a policy engine that denies by default, Ed25519 raw-payload signing, and Turnkey Verifiable Cloud for running your own code in a verifiable enclave (docs, TVC) |
| Visa CLI signs agent requests in a Turnkey Verifiable Cloud enclave. Payments pass Visa CLI's checks and a Turnkey policy, and are signed from Turnkey wallets. New agents' keys are listed in the Visa Agent Directory, and wallet payments use real OUSD on Tempo mainnet (status) |
Works with
- Basis Theory for your TRID, and Basis Theory or VGS for the card step.