PerformanceBlog
Tempo MCP serverGive agents search and read tools for Tempo docs
Skip to content
LogoLogo

Agent quickstart

The tempo CLI handles 402 Payment Required responses the same way the client SDK does — but from a terminal, script, or AI agent, with zero integration code.

Install the Tempo CLI

curl -fsSL https://tempo.xyz/install | bash

Log in to Tempo Wallet

tempo wallet login
tempo wallet whoami

login opens a browser flow that creates or connects a Tempo wallet. whoami confirms readiness and prints your address and balances.

Discover MPP services

tempo wallet services --search ai
tempo wallet services <SERVICE_ID>

The service directory shows endpoint URLs, HTTP methods, pricing, and request schemas — everything you need to construct a valid request.

For MCP-capable agents, see Discover MPP services to connect the read-only services MCP server at https://mpp.dev/mcp/services.

Preview the MPP request cost

tempo request --dry-run -X POST \
  --json '{"prompt":"a sunset over the ocean"}' \
  https://fal.mpp.tempo.xyz/fal-ai/flux/dev

--dry-run validates the request and shows the payment cost without spending.

Make an MPP paid request

tempo request -X POST \
  --json '{"prompt":"a sunset over the ocean"}' \
  https://fal.mpp.tempo.xyz/fal-ai/flux/dev

tempo request sends the request, intercepts the 402 challenge, signs and submits the payment, and retries with the credential — all in one command.

Set up an AI agent

Paste this into your agent to install Tempo's wallet and request skills:

Read https://tempo.xyz/SKILL.md and set up tempo

Once installed, the agent can discover services, preview costs, and make paid requests within scoped spending limits.

Next steps for agentic payments