# px402 docs - [Introduction](/introduction.md): Pay-per-request APIs on Solana where each paid call is a private transfer. - **Start** - Getting started - [Install](/getting-started/install.md): Install the px402 command or the SDK with npm, pnpm, Yarn or Bun. - [Run your own agent](/getting-started/self-held-agent.md): Create a key on your machine, fund it with devnet money, and pay for a call. - [Use a hosted agent](/getting-started/hosted-agent.md): Create and fund an agent in the web app, then pay from Claude, Cursor or the CLI. - [Charge for your API](/getting-started/provider.md): Put your HTTPS API behind the px402 gateway and set a price per route. - For agents - [For agents](/agents.md): Everything needed to let an AI agent pay for API calls with px402. - [Connect an AI tool](/agents/connect.md): Add the px402 MCP connector to Claude Code, Codex, Cursor or Claude. - [Agent instructions](/agents/instructions.md): Rules to give an agent that spends money, and what to do on each error. - [Build a paying agent](/agents/build.md): Give your own agent a paid-call tool with the SDK. - [These docs for AI tools](/agents/docs-for-ai.md): Give an AI assistant the px402 docs as plain Markdown. - **Understand** - How it works - [Overview](/how-it-works.md): The parts of px402 and which one does what. - [One paid call](/how-it-works/paid-call.md): Every step from the first request to the paid response. - [Gateway and retries](/how-it-works/gateway.md): What reaches a provider API, and what happens when it fails after payment. - [Self-held agent](/how-it-works/self-held.md): Where the key lives and what limits spending when you run the agent. - [Hosted agent](/how-it-works/hosted.md): How a hosted agent is created, funded, paid from, and revoked. - [MCP connector](/how-it-works/mcp.md): How an AI tool signs in to px402 and what it can do afterwards. - [Provider onboarding](/how-it-works/providers.md): From identity to a live paid route. - Privacy - [What stays private](/privacy.md): The px402 privacy statement, in its exact words. - [Built on Helius and Turnkey](/privacy/stack.md): How the two services fit together in px402, and which one is responsible for what. - [Helius and px402](/privacy/helius.md): How px402 uses Privacy Rings and the Helius services, and what Helius can see. - [Turnkey and px402](/privacy/turnkey.md): Every Turnkey feature px402 uses, how delegated signing is locked down, and what Turnkey can see. - [What a provider can see](/privacy/providers.md): What a provider receives about a payment, and what it does not. - [What each party can learn](/privacy/parties.md): Every party in the system, what it can learn and what it cannot. - Verifiable Cloud (TVC) - [TVC overview](/tvc.md): What Turnkey Verifiable Cloud is, what px402 runs in it, and where that stands. - [How TVC verification works](/tvc/verification.md): Boot Proofs, App Proofs, what a verifier checks, and what px402 still has to add. - [Moving to TVC](/tvc/migration.md): How hosted payments move from delegated keys to the enclave, and what changes for owners. - **Reference** - CLI - [CLI overview](/cli.md): The px402 command, its three modes and its configuration. - [Wallet commands](/cli/wallet.md): Commands for an agent whose key is on your machine. - [Hosted commands](/cli/hosted.md): Drive hosted agents from the terminal. No wallet key on your machine. - [Provider commands](/cli/provider.md): Manage your identity, organization, domain, provider and routes. - SDK - [SDK overview](/sdk.md): The TypeScript library behind the px402 command. - [Paying fetch](/sdk/paid-fetch.md): createPaidFetch pays a 402 and retries the claim until it is served. - [Wallet](/sdk/wallet.md): openAgentWallet and what an AgentWallet can do. - [Caps and journal](/sdk/caps-journal.md): The two things that limit spending and prevent paying twice. - [Hosted client](/sdk/hosted.md): Call the MCP connector from TypeScript, with no wallet key. - [Platform client](/sdk/platform.md): Signed calls to the provider platform from TypeScript. - [Types package](/sdk/types.md): @px402-tech/types: the schemas of the public API. - Protocol and reference - [x402 wire format](/reference/x402.md): The private-transfer scheme, for anyone writing their own client. - [Error codes](/reference/errors.md): Every public HTTP error code. Generated from @px402-tech/types. - [MCP tools](/reference/mcp-tools.md): The eight tools of the px402 connector.