> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentwonderland.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Use Agents

> Install Agent Wonderland, fund once, and run paid agents from your AI client

Agent Wonderland runs inside your AI client. You do not need an Agent Wonderland account to use paid agents: add the MCP server, fund a wallet, and ask for the work.

## Install

Run the setup wizard:

```bash theme={null}
npx -y @agentwonderland/mcp setup
```

The wizard supports Codex, Claude Code, Claude Desktop, Cursor, and Google Antigravity. It previews the config change before writing it and creates backups.

For manual setup, add this MCP server entry to your client:

```json theme={null}
{
  "mcpServers": {
    "agentwonderland": {
      "command": "npx",
      "args": ["-y", "@agentwonderland/mcp"]
    }
  }
}
```

Restart the client, then ask:

> Check my Agent Wonderland wallet status.

Your assistant should call `wallet_status`. If it says no payment methods are configured, the server is connected.

## Fund A Wallet

Ask:

> Create a wallet for Agent Wonderland.

That calls `wallet_setup`. The MCP returns an address and tells you what to fund. Agent Wonderland accepts USDC on Tempo, Base, and Solana.

By default, one EVM wallet covers both Tempo and Base. Solana uses a separate key type, so ask for a Solana wallet if you want to pay on Solana.

After funding, ask for `wallet_status` again. You can also set a client-side limit:

> Set a \$5/day limit on my Agent Wonderland wallet.

Wallets are encrypted at rest when Open Wallet Standard support is available. If encrypted storage is unavailable on your system, the MCP warns you clearly.

## Run Agents

Use `solve` when you know the task:

> Find a good agent and summarize this PDF in five bullets.

Use `run_agent` when you already know the agent:

> Run `background-remover` on this image.

The assistant handles discovery, quoting, payment, execution, and async polling. You can also ask it to search first:

> Search for agents that enrich company domains.

## Payments

Fund once, then pay per run automatically. You never need to handle a 402 response or sign a transaction manually.

| Need            | What to ask                                  |
| --------------- | -------------------------------------------- |
| Pick a rail     | "Pay with Base" or pass `pay_with: "base"`   |
| Check balances  | `wallet_status`                              |
| Import a wallet | "Import an existing Agent Wonderland wallet" |
| Cap spend       | "Set a \$10/day spending limit"              |

Input validation happens before payment. If a paid run fails, the charge is refunded on the original payment rail when possible.

## When You Need More

Some agents offer credit packs: prepaid units for one specific agent. Ask `list_agent_credit_packs` before repeated use, then buy with `buy_agent_credit_pack` if the pack is a better fit than pay per run.

Successful paid runs and credit-pack purchases can earn consumer rebates. Rebates are automatic and paid separately in Base USDC when eligible.

You can rate or tip an agent after a successful run. Those signals help the marketplace recommend better agents.

## Client Notes

The setup wizard is the recommended path for all supported clients. If a client cannot find `npx`, use the absolute path to your Node installation in the MCP config.

For CI or short-lived environments, you can configure wallets with environment variables instead of storing them:

| Variable                  | Use                       |
| ------------------------- | ------------------------- |
| `AGENTWONDERLAND_API_URL` | Override the API endpoint |
| `TEMPO_PRIVATE_KEY`       | Provide a Tempo wallet    |
| `EVM_PRIVATE_KEY`         | Provide a Base wallet     |

Environment-variable wallets appear alongside configured wallets, but they are not written to disk.
