---
title: "Visa CLI on Turnkey"
description: "Case study: how Visa CLI runs agent keys and payments on Turnkey."
url: https://app.visacli.sh/docs/partners/case-studies/visa-cli-on-turnkey
updated: 2026-11-18
---

# Visa CLI on Turnkey

> Case study: how Visa CLI runs agent keys and payments on Turnkey.

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

Visa CLI lets people verify their AI agents with a Visa card. Every agent signs its requests and pays in stablecoins. The owner keeps control of the money, and agents use their keys without holding them.

- **1** Turnkey sub-organization per owner
- **365** days each agent key is listed in the Visa Agent Directory, until the owner renews

| | |
| --- | --- |
| Company | Visa CLI, a Visa product |
| Builds | Verified AI agents that sign their requests and pay in stablecoins |
| Turnkey products | Turnkey Verifiable Cloud (TVC), policy engine, wallets, sub-organizations, Auth |
| Chain | Tempo |

## Visa CLI at a glance

Visa CLI lets a person verify their AI agent with a Visa card. Once the owner passes the card check, the agent gets a signing key. Every request it sends is signed with the Trusted Agent Protocol, so any service can look the agent up in the Visa Agent Directory and know a verified person stands behind it, without learning who that person is.

Verified agents do real economic work. They find paid tasks, do them, and have the reward paid into their owner's wallet. They pay for APIs that charge per request, in OUSD on Tempo, within limits the owner sets. Every one of those requests and payments runs through Turnkey.

## The challenge

An agent that signs and pays on its own needs a private key, and where that key lives decides what can go wrong.

If the agent holds the key, anything that gets into the agent gets the key too: a prompt injection, a leaked config file, a malicious tool. If a server holds it, everyone who can reach that server can make it sign, including us. And an agent needs keys for two jobs that both have to be right: proving who it is, and moving its owner's money. Visa CLI keeps those apart, with a TAP key for identity and a wallet key for payments.

The design comes down to six rules:

- The owner, not Visa CLI, controls the money.
- Agents use their keys without holding them.
- No single system, our own servers included, can approve a payment alone.
- Every owner is kept apart from every other owner.
- We check the code that holds the keys against builds we've pinned.
- Owners can take their money with them.

## The owner stays in control

Visa CLI is non-custodial. The money, and the keys that move it, sit in the owner's own Turnkey account, where the owner is the only root user. Visa CLI's servers can't move money or give an agent more access on their own. A payment needs the owner's authorization as well as Visa CLI's own checks. When an owner withdraws, their own wallet signs the transfer.

Visa CLI isn't in the flow of funds either. When an agent pays, the money goes on Tempo from the agent's wallet straight to whoever it's paying.

What Visa CLI adds is identity. Every agent has a person behind it who verified with their Visa card, and every request it sends is signed with a key listed in the Visa Agent Directory. That's what lets another service decide to hire the agent, sell to it or pay it, without knowing who the owner is. The owner keeps control of the money; Visa CLI makes the agent someone others can do business with.

## Why Turnkey

Each rule needs something we'd otherwise have to build and audit ourselves. Turnkey covers all six.

| What we needed | What Turnkey gives |
| --- | --- |
| The owner controls the money | Each owner is the only root user of their own Turnkey account. Our servers can't move money on their own. |
| Agents don't hold their own keys | Keys created and used inside enclaves. Only signatures come out. |
| No single system can approve a payment | Policies that need more than one approval before a key signs. |
| Each owner kept apart from every other | A sub-organization per owner, with the owner as its only root user. |
| Checked code holds the keys | We check the code that holds the keys against builds we've pinned. |
| Owners can take their money with them | Owners can export their wallet key through Turnkey. |

Turnkey's wallet infrastructure and policy engine hold the wallet keys and enforce the approvals. Keys in an enclave stop anyone from copying them, but on their own they don't stop someone from changing the code that asks for signatures. Turnkey Verifiable Cloud ties it together. TVC lets us run our own signing code inside a Turnkey enclave and prove which build is running. That meant the rules about what an agent may sign could live in code we can check before we trust it.

## What TVC is

A trusted execution environment (TEE) is a part of a machine that's sealed off from everything else on it. Code running inside can't be read or changed from outside, not by the host's operating system and not by whoever deployed it. The hardware can also sign a statement, called an attestation, saying exactly which code it started.

Turnkey's own key management runs inside TEEs, on AWS Nitro Enclaves. Turnkey Verifiable Cloud opens that same foundation to customers. You write a program, Turnkey runs it inside a Nitro Enclave under QuorumOS, its minimal enclave operating system, and its boot proof shows which program is running.

1. **Build.** Our signing code is built into one small binary, reproducibly, so the same source always gives the same bytes.
2. **Approve.** Turnkey-hosted operators approve a manifest that names exactly that binary and its settings.
3. **Boot.** An AWS Nitro Enclave starts the binary under QuorumOS. Its secrets are only ever put together inside the enclave.
4. **Prove.** The enclave publishes a boot proof: AWS's attestation plus the manifest. We check it against the build we pinned.

Two properties matter most for agents. The enclave has no network access of its own and keeps nothing on disk, so all it can do is answer the requests it's sent, and only in the ways its code allows. And every answer is signed by a key that exists only for that boot, so whoever passes the answer along, including our own servers, can't change it without breaking the signature.

| Term          | What it means                                                                                         |
| ------------- | ----------------------------------------------------------------------------------------------------- |
| TEE           | Hardware-isolated memory and processing, sealed off from the rest of the machine                      |
| Nitro Enclave | AWS's TEE, which TVC runs on                                                                          |
| QuorumOS      | Turnkey's minimal operating system that runs one program inside the enclave                           |
| Pivot         | That one program. For Visa CLI, its signing code                                                      |
| Manifest      | The record of exactly which pivot and settings may run, approved by operators                         |
| Quorum key    | The enclave's long-lived secret, split into shares and only ever put back together inside the enclave |
| Boot proof    | AWS's attestation plus the manifest: the evidence of what's running                                   |
| App proof     | A statement the enclave signs with a key that exists only for this boot                               |

Turnkey's [TVC overview](https://docs.turnkey.com/features/verifiable-cloud/overview) has the full model. Talk to Turnkey to learn more.

## How it works

1. **Sign in.** The owner signs in with an email code or Google. Visa CLI creates their Turnkey sub-organization, with a wallet and an identity key.
2. **Verify with a Visa card.** The owner verifies with their Visa card and a one-time code from their bank. Their identity key signs the result.
3. **Connect an agent.** Visa CLI's signing code on TVC creates the agent's TAP key, and Visa CLI lists its public key in the Visa Agent Directory.
4. **Set limits.** The owner signs one authorization on Tempo that sets what the agent can spend.
5. **The agent works.** Every request is signed inside TVC, and every payment passes Visa CLI's checks, Turnkey policy and Tempo.

Visa CLI's signing code runs on TVC. It creates each agent's TAP key, signs its requests and checks each payment before it's signed. Each owner's own Turnkey sub-organization holds their wallet and their identity key.

What runs where. Private keys stay inside Turnkey's secure enclaves; only public keys and signed results leave.

- **Owner**
  - Verifies with their Visa card, then authorizes each agent once a year
- **Turnkey’s secure enclaves**
  - Visa CLI's signing code (TVC): Holds each agent's TAP key, signs its requests and checks each payment
  - Wallet and identity root (Owner's sub-organization): A wallet key per agent, used only under the owner's Turnkey policy
- **Outside**
  - The Visa Agent Directory lists each agent's public key, so any service can check its signature
  - Tempo applies the owner's spending limit on chain

## The TAP key, from start to finish

The [Trusted Agent Protocol](/docs/what-is-tap.md) (TAP) is how a service knows which agent sent a request. The agent signs the request with its private key, and its public key is listed in the Visa Agent Directory. The service looks the key up and checks the signature. If it matches, the request came from that agent and hasn't changed on the way.

Here's what a signed request from a Visa CLI agent carries. It covers the method, host, path, query, a digest of the body and the headers that matter, and it's only good for 60 seconds:

```http
signature-input: sig2=("@method" "@scheme" "@authority" "@path" "@query" "content-digest" "accept" "content-type" "signature-agent");created=1794000000;expires=1794000060;keyid="11111111-2222-4333-8444-555555555555";alg="ed25519";nonce="BwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwc=";tag="agent-browser-auth"
```

The private half of that key never exists outside TVC. Here's its whole life:

| Stage   | What happens                                                                                                                                                                                                                         |
| ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Created | When the owner connects an agent, Visa CLI's signing code on TVC creates a key for that agent. Each agent gets its own key, and no one, including Visa CLI's servers, ever sees the private half.                                              |
| Listed  | Only the public key leaves TVC. Visa CLI's server registers it in the Visa Agent Directory for 365 days. The Visa Agent Directory assigns the key ID that goes in every signature.                                                           |
| Used    | For each request, Visa CLI sends its signing code on TVC the exact request and the owner's authorization. It checks both, signs, and returns only the signature.                                                                        |
| Renewed | Nothing extends a listing without the owner. The owner renews once a year, and the agent gets a new key, listed for another 365 days, while the old key stops being listed. [Agent lifecycle](/docs/agent-lifecycle.md) has the detail. |
| Rotated | One agent's key can be replaced on its own, without touching any other agent.                                                                                                                                                        |
| Removed | When the owner removes an agent, Visa CLI deactivates its listing, and from then on a lookup of that key answers 404.                                                                                                                |

Because the Visa Agent Directory holds only public keys, a service that checks a signature learns the agent's name and key, and nothing about the owner's card or who they are. See [Visa CLI's profile of TAP](/docs/verify-a-signed-request.md#signature-profiles) for every detail of the signature.

## Checks on every payment

An agent's wallet key sits in its owner's sub-organization. A payment passes checks run by separate systems, so no one of them can approve it alone.

1. **Visa CLI's payment code (TVC).** Checks the exact charge against what the owner authorized.
2. **Turnkey policy.** Decides who has to agree before the wallet key signs, with the owner among them.
3. **Tempo.** Applies the owner's spending limit on chain.

The Turnkey policy sits between Visa CLI and the key, so our own servers can't get a payment signed on their own.

## Checked before it's trusted

We check the code that holds the keys against builds we've pinned. The builds are reproducible: the same source builds to the same bytes every time, so a pin stands for one exact piece of source.

## Results

- Visa CLI agents don't hold their own TAP key or wallet key. They get signatures, not keys.
- Every agent payment is checked by more than one system before Turnkey signs it, and Tempo applies the owner's limits on chain.
- Every owner has their own Turnkey sub-organization, with their wallet's private key held in secure enclaves, and can export it through Turnkey.
- Agent payments run on Tempo mainnet with real OUSD. New agents' keys are listed in the Visa Agent Directory.

|                                                         | Status                                                                                           |
| ------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| Agent signatures made in a TVC enclave                  | Live in Visa CLI. New agents' keys are listed in the Visa Agent Directory |
| Payments through Visa CLI's checks and Turnkey policy   | Live on Tempo mainnet, with real OUSD                                                            |
| An owner sub-organization for every Visa CLI owner      | Live                                                                                             |

See [Status](/docs/status.md) for the current state of every part of Visa CLI.

## What's next

New agents' keys are now listed in the Visa Agent Directory, so services in production can check them. No key or policy depends on whether an agent is listed in the Visa Agent Directory or its sandbox, so nothing in Turnkey had to change.

## What you can take from it

1. Keep the signing key where the agent can't reach it, and send the enclave the exact request to sign instead of a hash.
2. Write a narrow Turnkey policy for each key, and deny everything else.
3. Ask for more than one independent approval on anything that moves money, and make sure one of them is the person who owns it.
4. Put spending limits somewhere your own servers can't override, such as on chain.
5. Pin the builds you trust, and check their boot proofs before you use them.

## Links

- [Turnkey](/docs/partners/turnkey.md)
- [Turnkey Verifiable Cloud](https://docs.turnkey.com/features/verifiable-cloud/overview)
- [Turnkey policies](https://docs.turnkey.com/concepts/policies/overview)
- [What is TAP?](/docs/what-is-tap.md)
- [Sign requests as an agent](/docs/sign-requests-as-an-agent.md)
