CLI docs

Verified with VisaTroubleshooting

Verified with Visa

Troubleshooting

Fixes for the common problems: missing tools, the card step, interrupted setup, an agent that can't pay.

Markdownllms.txt
On this page

What the Console is telling you

The word next to your agent says where it is and what it needs.

Verified with Visa

Its step says: Nothing

What it means: The agent's key is listed in Visa CLI's registry and registered in the Visa Agent Directory. Paying also needs your approval and money in the wallet

What to do: Nothing

Verifying

Its step says: Verifying

What it means: Visa CLI is listing the agent's key

What to do: Nothing. It happens on its own

Needs you

Its step says: Add your email

What it means: Your card is accepted, and the listing needs a contact email

What to do: Add one in Settings, then enter the six-digit code sent to it

Needs you

Its step says: Finish connecting

What it means: The listing is waiting on your signature

What to do: Open the agent in Agents and finish its setup

Needs reconnecting

Its step says: “Visa reset its verification. It can't pay until you reconnect it.”

What it means: Visa reset the agent's key

What to do: Reconnect the agent

Approve is refused

Your account has no accepted card yet. Approving is refused until it does. Your Visa card covers adding one, and what each card message means.

My agent isn't listed

A lookup on the registry returns 404, which looks the same whether the agent is unpublished, paused or revoked. Check that your account has a contact email, then check the agent's word in the Console, above.

My agent asks for an access code

Only a release-candidate build asks for one, so this computer still has a release candidate from an earlier install. Install the normal release, npm install -g @visa/cli@latest, then visa config target https://auth.visacli.sh, and restart the agent's app.

The Visa tools don't appear in my app

Restart the app, or reconnect its MCP server. Don't run setup again, because the agent is already connected.

In Hermes, type /reload-mcp now. Hermes adds Visa's tools without a restart.

In Claude Code, run this, select visa-cli and reconnect:

Text
/mcp

Setup was interrupted

Repeat the command you ran, with the same app and setup key. For example:

Shell
visa connect codex

It resumes the same setup with the same link. If you leave the app name out, the command can default to Claude Code.

My agent says it can't pay

Open the Console. Your agent tells you the step, once:

  • A payment is waiting: approve it from its link.
  • Over a limit: raise the limit in Agents, or try a smaller amount.
  • No money: add money on the Wallet page by sending OUSD to its address.
  • Paused: resume the agent in Agents.

A payment's result went missing

Don't pay again. Check the payment in Activity. Your agent can continue the same purchase instead of starting a new one.

“This Visa CLI is older than the server accepts”

Update Visa CLI, then restart your app:

Shell
visa update

In Hermes, run hermes gateway restart --detach instead. Hermes keeps the old Visa in its background gateway, which keeps running after you exit Hermes.

“No desktop keyring is available on this computer”

The computer has no key store, as on a server. The error prints the command to run instead, which keeps the key in an owner-only file.

A new computer, a lost computer, or a key this computer can't read

Remove the agent in the Console (Agents, then Remove). Removing it ends its keys at once, so a lost computer can no longer act as it. Then run visa connect on the computer the agent should use, and approve the new agent. Its spending limit starts fresh.

When Visa CLI says it could not read an agent's key, or that the key is not on this computer, it names the agent and links its page in the Console. A locked keychain is different: unlock it, then retry.

Only when the Console shows Reconnect for the agent does it keep its limits: press it, then run this on the new computer.

Shell
visa connect --setup <key>

Sign-in is refused

Access is limited to approved accounts. Follow the Console's message.

When a call is refused

This section is for whoever runs the agent or builds the app.

Before showing an approval link, connect and status check what's saved for that setup.

What's savedWhat happens
ExpiredNo old link is shown, and a plain visa connect starts a new setup
DeclinedNo old link is shown
ApprovedThe setup is finishing
Unknown or unavailableThe same setup is kept so you can recover it

status only reports a setup. It never claims one.

A setup key that's refused

A mistyped, used or expired setup key (visa connect --setup <key>) is refused with not_found (detail setup_key) or expired (detail setup). Only the owner can make a new one: they copy a new setup command from Add agent in the Visa Console, and the agent runs the new command.

An approval that expired

When the owner's approval expires unanswered, nothing is paid or signed. As with a decline, the answer tells the agent to tell the owner, and a new request starts only if the owner still wants it.

Read the refusal

A local MCP refusal is JSON. Branch on code. detail describes the check, fix gives the remedy, turn says who acts next, and next gives the action. Moving a refused request to another agent or payment rail isn't how it's resolved: the remedy is in fix.

A blocked recipient

Wallet payees and withdrawal addresses are screened before anything is signed. A refusal with detail policy_screening_blocked means the recipient is blocked by payment screening. Retrying, or switching to another agent or payment method, doesn't change that, so the app tells the owner instead.

Every refusal code

codeWhat it meansWhat happens next
update_requiredThis Visa CLI is older than the server accepts.The owner updates it with visa update and restarts the agent session. Then the same request can go again.
setup_requiredThis agent isn't connected, signed in or set up here.visa connect in a shell, or the connect tool over MCP, starts or resumes setup, and the owner finishes the browser step. Both resume where they left off. Then the original request can go again.
owner_approval_requiredThe owner must approve this first.The owner opens the approval link in the answer's owner.url. Then the same request goes again with the same identifiers, unchanged, rather than as a new one.
owner_declinedThe owner declined this.The request ends and isn't retried automatically. A new request, which asks the owner again, starts only if the owner asks for it.
agent_inactiveThis agent can't act: it's paused, revoked or its keys were replaced.A retry gets the same answer. In the Visa Console, the owner resumes a paused agent or connects a new one.
grant_requiredThis agent has no current spending approval.Nothing was charged. The owner reconnects this agent from the Visa Console (Reconnect on the agent). Then the same payment can go once more.
limit_reachedThis payment is over a spending limit.Nothing was charged. A smaller amount or a later try can pass, or the owner can raise the limit. Repeating it, or moving it to another agent or payment method, isn't a way around the limit.
wallet_funds_insufficientThe wallet doesn't hold enough for this payment.Nothing was charged. The owner adds funds on the Wallet page of the Visa Console. Then the same payment can go once more. Raising a limit doesn't help, and moving it to another agent or payment method isn't a way around it.
over_maxThis charge costs more than the max the agent set.Nothing was charged. The answer names the price beside the max; the network fee comes on top, from the owner's wallet. The agent checks the price with its human and calls again with a higher max only if they agree; it never raises max on its own. It isn't a spending limit, so the owner has nothing to raise.
blockedVisa refused this request.The owner is told what was refused. It isn't retried, and moving it to another agent, payment method or merchant isn't a way around the refusal.
merchant_unsupportedThis merchant can't be paid this way.Nothing was charged. The same request unchanged gets the same answer. A merchant that supports this payment can be paid instead, or the owner is told.
invalid_requestSome details in this request weren't valid.A corrected request can go again. An earlier purchase is checked by its original reference.
not_foundVisa couldn't find that for this agent.The reference or the selected agent is usually wrong. A read that found nothing isn't a sign the original is gone, so it's no reason to create a replacement.
expiredThat request expired before it was completed.The original request's outcome is checked first. Then a fresh request can start.
conflictAn existing request conflicts with this one.The original request is checked by its reference. If it's still in progress, the same request goes again after a wait, rather than a replacement.
outcome_unknownThe result of this request isn't known yet.Repeating the same call with the same idempotency_key continues the same purchase, so a new one isn't needed.
unavailableVisa, or a service it depends on, didn't answer.Whether the original request went through is checked before any other payment, and the request goes again later. Switching agents or payment methods isn't part of the recovery.
not_enabledThis feature isn't available right now.Visa has turned this off for now. Nothing was charged, and it can be tried again later. Signing in again won't turn it on.
local_keystoreThis computer's key store couldn't be used, so nothing was signed or sent.The owner fixes the key store on this computer: unlock it, restore access or sync the clock. Then the request can go once more.
rate_limitedToo many requests from this caller right now.Retry-After (also in retry_after_seconds) says when the same request, with the same identifiers, can go again. Switching agents doesn't get around it.
internal_errorVisa couldn't complete this request.For a payment, its status, read with the same idempotency_key, says what comes next. Otherwise the same call can go once more. If that fails too, it goes to a person, with the request reference.

Details worth knowing

Some refusals are best read by their detail:

detailWhat it meansWhat to do
agent_clock_skewThis computer's clock is wrong, so nothing was signed or sentFix the clock, or let it update automatically, then retry the same request. Reconnecting doesn't help
no_ousd_chargeThe merchant offers no Tempo charge in OUSD that Visa can pay, such as one that only takes cardsNothing was paid. Pick a service that takes OUSD on Tempo. See Pay with MPP
async_resultThe merchant answers with a job to collect later, which Visa can't collect yetNothing was paid. Use a service that answers with the result
task_tap_requires_deviceThe task needs a verified worker, and this connection can't sign as oneTake it from Visa CLI on your computer, or from a hosted connection such as Grok Bot

In words: grant_required, limit_reached, wallet_funds_insufficient, over_max, merchant_unsupported and not_enabled mean nothing was charged. For outcome_unknown, conflict and internal_error, the original request is checked by its reference before anything else, and owner_declined and blocked are never retried automatically.

Updated 19 Nov 2026