> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://mpp.dev/api/mcp` to find what you need.

# OpenClaw \[Connect OpenClaw to paid APIs]

Install the official [`openclaw-mpp`](https://clawhub.ai/tempoxyz/plugins/openclaw-mpp) plugin from [ClawHub](https://clawhub.ai/) to let an OpenClaw instance call free and paid HTTP APIs through MPP. When a configured wallet receives an MPP Challenge, the plugin creates a Credential, retries the request, and returns the paid response.

## Choose a wallet integration

### Tempo Wallet

The `openclaw-mpp` plugin uses a scoped Tempo Wallet access key for automatic MPP payments. Continue with the plugin setup below.

### Privy

Install Privy's OpenClaw skill when the agent needs a Privy wallet for onchain actions. Create a Privy app first, then keep its app secret in the OpenClaw configuration—not in a skill or source file.

```bash [terminal]
$ clawhub install privy
```

```json [~/.openclaw/openclaw.json]
{
  "env": {
    "vars": {
      "PRIVY_APP_ID": "your-app-id",
      "PRIVY_APP_SECRET": "your-app-secret"
    }
  }
}
```

Restart the gateway, then ask the agent to create a wallet and attach the spending policies it needs.

```bash [terminal]
$ openclaw gateway restart
```

:::info
The current `openclaw-mpp` plugin accepts a Tempo Wallet access key; it does not yet accept a Privy-backed account for automatic `mpp_fetch` payments. Use Privy's [MPP recipe](https://docs.privy.io/recipes/agent-integrations/mpp) to add a custom `mppx` payment tool backed by `createViemAccount`.
:::

## Install from ClawHub

```bash [terminal]
$ openclaw plugins install clawhub:openclaw-mpp
```

```text [output]
Installed plugin: mpp
Restart the gateway to load plugins.
```

Use npm only as an explicit fallback:

```bash [terminal]
$ openclaw plugins install npm:openclaw-mpp
```

The plugin adds `mpp_fetch` for agent-initiated HTTP requests, plus `mpp_wallet_setup` and `mpp_wallet_status` for connecting and inspecting a Tempo account.

## Connect Tempo Wallet

Run setup once to authorize a scoped access key for OpenClaw. The command prints a Tempo Wallet link and waits for approval.

```bash [terminal]
$ openclaw mpp setup
```

Your wallet's private key is never shared with OpenClaw. Mainnet is the default: the access key expires after seven days and can spend up to 10 USDC.e.

:::info
If the gateway was already running, restart it after setup so the plugin can load the new access key.
:::

## Start or restart the gateway

Start OpenClaw and confirm that the MPP plugin initializes before making paid requests.

```bash [terminal]
$ openclaw gateway run
```

If the gateway is already installed and running as a service, use `openclaw gateway restart` instead.

The gateway log confirms that payment-aware fetch is ready:

```text [output]
[plugins] MPP payment-aware fetch initialized.
[gateway] ready
```

## Pay for HTTP requests

Ask the agent to fetch a paid mainnet endpoint:

```text [prompt]
Use mpp_fetch to GET https://kicksdb.mpp.tempo.xyz/v3/stockx/products?query=nike&limit=1
```

The plugin handles the `402`, signs the Challenge with the matching access key, and retries the request. It selects an access key from the Challenge's chain ID, so one gateway can handle mainnet and testnet requests.

:::info
If the active OpenClaw tool profile filters plugin tools, add `mpp` to the existing `tools.alsoAllow` list.
:::

## Manage agent spend

Set a shorter lifetime or a different USDC.e limit when authorizing the access key. `--no-deposit` skips the Tempo Wallet funding prompt. It does not bypass payment for protected APIs.

```bash [terminal]
$ openclaw mpp setup --expires 24h --limit USDC=25 --no-deposit
```

Inspect the account and access key currently available to OpenClaw:

```bash [terminal]
$ openclaw mpp status
```

```text [output]
Tempo Wallet access key ready.
Network: mainnet (4217)
Account: 0x1234...abcd
Access key: 0xabcd...1234
Publication: published
```

Create and inspect a separate access key for Tempo testnet when needed. Commands without `--network` continue to target mainnet:

```bash [terminal]
$ openclaw mpp setup --network testnet
$ openclaw mpp status --network testnet
```

Authorize an access key for each network the agent uses. The plugin automatically routes each payment Challenge to the key for that chain.

See [Managing agent spend](/guides/managing-agent-spend) for access key limits, scopes, recipient restrictions, and revocation.
