CLI docs

PartnersTurnkey

Partners

Turnkey

Manage agent keys in secure enclaves, give each user their own stablecoin wallet, and control what gets signed with granular policies.

Markdownllms.txt
On this page

Keeps keys and stablecoin wallets in secure enclaves, with a policy engine that checks every signature.

Agent identityKey custodyCard credentialStablecoin wallet
Turnkey docs

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.

Keys stay in secure enclavesEach agent’s TAP key is created inside a Turnkey Verifiable Cloud enclave and never leaves it.
One account per ownerEvery owner gets their own Turnkey sub-organization, and is its only root user.
Checks on every paymentTurnkey signs a payment only when its policy sees the owner’s authorization and Visa CLI’s own checks.
Checked before trustedWe check the code that holds the keys against builds we’ve pinned.
Case studyCLIHow Visa CLI runs agent keys and payments on TurnkeyRead the case study →

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

  1. Create a Turnkey organization, and a sub-organization (a separate Turnkey account) for each of your users. See sub-organizations.
  2. 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.
  3. Write a policy that lets only your signer sign with that key, and only the activity you need. See Turnkey policies.
  4. 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.
  5. 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

Updated 18 Nov 2026