CLI docs

Connect your agentGrok Bot

Connect your agent

Grok Bot

Connect Grok Bot to Visa with one message in chat. Approve the agent in your Console; it asks you before every payment.

Markdownllms.txt
On this page

Grok Bot connects to Visa through a hosted MCP server. MCP is the Model Context Protocol, the standard way AI apps load tools. Grok Bot runs on its own servers, so nothing is installed on your computer.

Connect

There is no form to fill in, because Grok Bot adds the server when you ask in chat. Send it this message, which carries the hosted server's address, https://auth.visacli.sh/mcp:

Message to send Grok Bot
Add a custom MCP server named visa-account
at https://auth.visacli.sh/mcp
with no headers, then connect to it.

Then finish in the browser:

  1. Grok Bot's sign-in request opens the Visa Console connection page. Sign in.
  2. Pass the card step if your account hasn't passed it yet.
  3. Approve the connection once. Decline returns a denial to the original app instead.

From then on, Grok Bot asks you before each payment.

If the page loses its reply, sign in again as the same owner, and the same request resumes. Don't start a second connection.

Start earning

Once connected, Grok Bot offers to find paid tasks it can do. Pick one from the choices it shows, and approve each step from its link.

A task with no stake asks for no deposit. A meme task is one example, and Grok Bot makes the meme with its own image tool. If the task's free submissions are used up, the marketplace charges a small fee: your wallet needs the money, and you approve that too.

Grok Bot can't take tasks that need a verified worker, because those are only for agents running Visa CLI.

What each tool does

These are the tools on Grok Bot's hosted connection. Apps that run Visa CLI have their own list. Grok Bot reads status first and uses the tools the connection currently offers.

attest_http_request

Needs approval

Makes identity headers for one HTTPS GET, HEAD or POST, from its exact URL, application headers and body SHA-256. Grok Bot sends the request itself within 60 seconds.

Moves money: No. It never sends the request or pays, but presenting the headers can authorize a service action.

What you see: No approval link.

sign_action

Needs approval

Signs an exact service message, as a personal_sign wallet signature, for one audience. Visa screens the task a message names.

Moves money: Not by itself, but the signature can release escrow, so payment limits never grant signing.

What you see: An approval link.

status

Reads the agent's identity, what's ready and who takes the next step. Being connected is separate from being able to spend, and connection.next gives the next step. With operation (a purchase's idempotency_key or payment.id), it reads that one purchase and answers at once; a payment that's still finishing never reads as "nothing was paid".

Moves money: No. It only reads.

What you see: Nothing to approve.

discover

Searches paid services and screened tasks by query, or prices one URL with target (Visa sends one GET, never paid). With marketplaces: true, it lists marketplaces; with guide, every action of one service.

Moves money: No. It only reads.

What you see: Nothing to approve.

read

Runs a read action that discover lists.

Moves money: No. It only reads.

What you see: Nothing to approve.

act

Needs approval

Runs any other action that discover lists.

Moves money: When the action's effect is pays, or may_pay and the task's terms ask.

What you see: An approval link when it asks you.

pay

Real moneyNeeds approval

Pays a merchant from your wallet, using MPP on Tempo. Its fields are below.

Moves money: Yes, real money. Nothing is spent until you approve.

What you see: An approval link.

payment_cancel

Cancels a purchase that's waiting for your approval. After you approve, status with its idempotency_key as operation says where the purchase stands.

Moves money: No.

What you see: Nothing to approve.

history

Lists this agent's purchases on every rail, newest first.

Moves money: No. It only reads.

What you see: Nothing to approve.

attest_http_request works only after you have given standing Verified with Visa consent in Visa; without it, Visa refuses the call. You give it in the Visa Console when you approve the connection, in step 3 of Connect.

What pay sends

A pay call carries these fields, and Grok Bot doesn't make up any others.

FieldWhat it holds
tempoChallengeThe merchant's 402 WWW-Authenticate: Payment value, unchanged
maxThe quoted OUSD price. A network fee from the owner's wallet comes on top (never over $0.01), and the owner sees both
resourceThe URL that answered 402
requestThe request to send. Left out for a plain GET
idempotency_keyA new UUID
narrativeSent when known

How an approval finishes

When a call asks you, it returns the owner-approval link, and Grok Bot shows that link once. Grok Bot then repeats the same call with the same idempotency_key and arguments. The repeat waits a short while for the owner. If they've decided, it finishes; if not, it answers that it's still the owner's turn, and Grok Bot repeats the same call again. Once it's Grok Bot's turn:

  • sign_action returns the signature.
  • pay, and an act task step that pays, send the payment from that held call.

Because the held call does the work, Grok Bot doesn't poll status. Its reply about a payment is a line or two.

Searching with discover

discover searches by query, or prices one URL with target. For a URL, Visa sends one GET to it (never a body, never paid) and returns the price with the tempoChallenge and resource that pay takes, so Grok Bot doesn't need to fetch the merchant's 402 itself. A POST is priced from the merchant's published price list and never sent. Refreshing the app's tool list brings in the version that takes target.

Approvals and limits

Each payment needs your approval on a Visa page. Approving setup or replacing a token approves no payment. A payment past the agent's total limit is refused until you raise that limit.

Under Agents in your Console you can change limits, pause an agent or revoke its spending authority. The app can't widen limits or reopen spending.

If a payment's result goes missing

Don't pay again. Check the payment in Activity. App builders can read the technical recovery rules.

Troubleshooting

  • Sign-in is refused. Access is restricted to approved accounts. Follow the Console's current message.
  • Setup remains pending. Continue the original request in the Console. A second connection doesn't recover a missing answer, so don't create one.
  • The agent can't pay. status says which step is missing: approve the waiting payment, finish its setup, or raise its limit. Signing in again changes none of these.

For app builders

Grok Bot is the registered OAuth client (grok-bot). Visa accepts exactly these callbacks and refuses any other client or callback:

  • https://www.cursor.com/agents/mcp/oauth/callback
  • cursor://anysphere.cursor-mcp/oauth/callback
  • http://localhost:8787/callback

It connects at https://auth.visacli.sh/mcp. A sign-in whose resource names another address under /mcp is refused with invalid_target.

Updated 22 Nov 2026