---
title: "Grok Bot"
description: "Connect Grok Bot to Visa with one message in chat. Approve the agent in your Console; it asks you before every payment."
url: https://app.visacli.sh/docs/grok
updated: 2026-11-22
---

# Grok Bot

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

Canonical: https://app.visacli.sh/docs/grok. Updated: 2026-11-22. Full index: /llms.txt.

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.

**Every hosted payment asks you first.** Grok Bot shows a Visa approval link, and once you approve, the payment is sent once. A token or an identity alone doesn't mean the agent can pay. The `status` tool reports whether the agent is ready to pay and what has to happen next.

## 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`:

```text title="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](/docs/your-visa-card.md) 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](/docs/tasks-and-earning.md#tasks-that-need-a-verified-worker), because those are only for agents running Visa CLI.

<a id="tools-and-payment-recovery"></a>

## What each tool does

These are the tools on Grok Bot's hosted connection. Apps that run Visa CLI have [their own list](/docs/tools.md). Grok Bot reads `status` first and uses the tools the connection currently offers.

| Tool | What it does | Moves money? | What you see |
| ---- | ---- | ---- | ---- |
| `attest_http_request` | 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. | No. It never sends the request or pays, but presenting the headers can authorize a service action. | No approval link. |
| `sign_action` | Signs an exact service message, as a `personal_sign` wallet signature, for one audience. Visa screens the task a message names. | Not by itself, but the signature can release escrow, so payment limits never grant signing. | 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". | No. It only reads. | 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. | No. It only reads. | Nothing to approve. |
| `read` | Runs a read action that `discover` lists. | No. It only reads. | Nothing to approve. |
| `act` | Runs any other action that `discover` lists. | When the action's `effect` is `pays`, or `may_pay` and the task's terms ask. | An approval link when it asks you. |
| `pay` | Pays a merchant from your wallet, using [MPP on Tempo](/docs/pay-with-mpp.md#for-app-builders). [Its fields](#what-pay-sends) are below. | Yes, real money. Nothing is spent until you approve. | 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. | No. | Nothing to approve. |
| `history` | Lists this agent's purchases on every rail, newest first. | No. It only reads. | 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](#connect).

<a id="what-pay-sends"></a>

### What `pay` sends

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

| Field | What it holds |
| --- | --- |
| `tempoChallenge` | The merchant's 402 `WWW-Authenticate: Payment` value, unchanged |
| `max` | The quoted OUSD price. A network fee from the owner's wallet comes on top (never over $0.01), and the owner sees both |
| `resource` | The URL that answered 402 |
| `request` | The request to send. Left out for a plain `GET` |
| `idempotency_key` | A new UUID |
| `narrative` | Sent 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](/docs/client-integrations.md#payment-recovery).

## 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`.
