---
title: "Turnkey"
description: "Manage agent keys in secure enclaves, give each user their own stablecoin wallet, and control what gets signed with granular policies."
url: https://app.visacli.sh/docs/partners/turnkey
updated: 2026-11-18
---

# Turnkey

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

Canonical: https://app.visacli.sh/docs/partners/turnkey. Updated: 2026-11-18. Full index: /llms.txt.

## 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](/docs/partners/how-visa-cli-is-built.md) shows how it fits with the other pieces.

[How Visa CLI runs agent keys and payments on Turnkey](/docs/partners/case-studies/visa-cli-on-turnkey.md), a case study of Visa CLI on Turnkey.

## 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](/docs/verify-a-signed-request.md).
- You need a card credential. Turnkey doesn't vault cards, so pair it with a [card partner](/docs/partners.md#choose-your-stack).

## Set it up

1. Create a Turnkey organization, and a sub-organization (a separate Turnkey account) for each of your users. See [sub-organizations](https://docs.turnkey.com/concepts/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](/docs/register-an-agent.md).
3. Write a policy that lets only your signer sign with that key, and only the activity you need. See [Turnkey policies](https://docs.turnkey.com/concepts/policies/overview).
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](/docs/sign-requests-as-an-agent.md).
5. To run your signing code in a verifiable enclave, request access to [TVC](https://docs.turnkey.com/features/verifiable-cloud/overview).

## 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](https://docs.turnkey.com/concepts/policies/overview), [TVC](https://www.turnkey.com/turnkey-verifiable-cloud))      |
| 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](/docs/status.md)) |

## Works with

- [Basis Theory](/docs/partners/basis-theory.md) for your TRID, and Basis Theory or [VGS](/docs/partners/vgs.md) for the card step.

## Links

- [Turnkey docs](https://docs.turnkey.com)
- [Turnkey Verifiable Cloud](https://docs.turnkey.com/features/verifiable-cloud/overview)
- [How the pieces fit](/docs/how-the-pieces-fit.md)
