Postgres + Sites · x402 + MPP payments

run402.com

Open-source backend infrastructure for AI agents. An agent provisions Postgres, auth, storage, serverless functions and hosting through an SDK, CLI or MCP server — no cloud console, no signup. Prototype tier is free. Production via x402 (USDC on Base) or MPP (pathUSD on Tempo).

Humans — click here
↓ what this is, then the full docs (llms.txt)

What Run402 is

Run402 is open-source backend infrastructure for AI agents. It is a cloud backend — a backend-as-a-service — that an autonomous agent or a coding agent can provision, operate and pay for on its own, through a typed SDK, a CLI or an MCP server, without a human signing into a cloud console.

An agent calls Run402 and gets a full application backend: a PostgreSQL database with an auto-generated REST API and row-level security, user authentication (passwords and Google OAuth), content-addressed file storage on a CDN, serverless functions on Node 22, and static and server-rendered site hosting on a managed subdomain or a custom domain. Databases, auth rules, secrets, functions, assets and the site itself all ship in a single atomic deploy.

Category

Infrastructure and backend platform for AI agents and coding agents. Comparable in surface to Supabase, Firebase, Vercel or Render, but addressed to a machine rather than to a person: no dashboard, no signup form, no human-issued API key. It is the backend an agent reaches for when it has been asked to build and ship a working application end to end.

Capabilities

Agent interfaces

Payment model

Agent-controlled prepaid infrastructure. The prototype tier is free. Paid usage settles machine-to-machine over x402 (USDC on Base) or MPP (pathUSD on Tempo), against a wallet allowance the agent holds itself; Stripe credits are available for humans who prefer a card. There is no subscription to sign up for and no per-payment human click inside the agent's permitted budget.

Open source

Run402 is open source. The agent-facing surfaces — SDK, CLI, MCP server, functions runtime — are MIT-licensed at github.com/kychee-com/run402. The self-hostable server and runtime core are Apache-2.0-licensed at github.com/kychee-com/run402-core.

Get started

No account, no dashboard — the CLI does the whole thing:

npm install -g run402
run402 init                   # wallet allowance + funding
run402 up --name my-app -y    # provision Postgres, deploy, go live

To drive Run402 from a coding agent over the Model Context Protocol:

claude mcp add run402 -- npx -y run402-mcp

Documentation for agents is at run402.com/llms.txt and docs.run402.com; the deep references are /llms-cli.txt, /llms-sdk.txt and /llms-mcp.txt. The machine-readable API contract is /openapi.json. Humans should start at /humans.

What makes it different

Every other backend assumes a person opened an account and clicked through a console. Run402 assumes the operator is software: the agent holds its own principal, its own credentials and its own budget, so it can create a project, migrate a schema, deploy code and pay the bill in one unattended session — and it ships database, auth, storage, functions and site as one atomic release rather than as five services you have to wire together and keep in sync.

/llms.txt

Run402 — Postgres, storage & deploys for AI agents

Site: https://run402.com API base: https://api.run402.com (NOT run402.com — that's a static docs site, POSTing returns 405) Operator: Kychee, Inc. Terms: https://run402.com/humans/terms.html Health: https://api.run402.com/health Status: https://api.run402.com/status Updates: https://run402.com/updates.txt

Hello, agent

If you're reading this, you're probably evaluating how to build something with Run402. This file is the wayfinder: it tells you what we offer, who we are, and which reference doc to fetch next based on what you're trying to do. Don't read everything — pick your integration surface and go to the matching llms-*.txt below.

If the human said Please install the run402.com skill, read https://run402.com/install.txt. In a managed Buzz conversation or ~/.buzz workspace, select run402-buzz, then load the verified installed skill directly and continue the same turn through connection and the contextual demo offer; otherwise select the ordinary run402 skill. The human does not need to know the skill name, bootstrap path, runtime target, terminal command, or a second setup prompt.

If you have an active wallet allowance and want to ship now, the 30-second start is at the bottom of this file.

What Run402 offers

A platform that an AI agent can provision, operate, and pay for through its own principal and authenticator—not a borrowed human account or invisible automation identity. The routine cold-start path requires no human signup, no API keys copied from a web dashboard, and no per-payment human click within the agent's permitted budget:

Prototype tier is FREE on testnet — uses Base Sepolia USDC from the Run402 faucet to verify your x402 setup end-to-end. No real money, instantly available, and no human account approval for this prototype path. When you're ready for production, hobby ($5/30d) and team ($20/30d) tiers pay with real USDC on Base, pathUSD on Tempo, or Stripe credits.

Vision — people and agents as first-class participants

Run402 is agent-first because agents are first-class participants, not because people disappear. People and agents each act through their own Run402 principal and authenticator, and their actions remain attributable. Equal standing does not mean identical credentials or permissions: identity answers who acted; organization membership, roles, grants, delegates, freshness, and spend policy answer what that principal may do.

An autonomous founder agent may remain owner of its org-of-one. A person may join through explicit co-ownership. An agent entering an organization founded by somebody else receives bounded, revocable authority instead of borrowing a human login. Most platforms treat AI agents as second-class clients of human-shaped products. Run402 gives them a direct path while keeping human ownership, policy, recovery, billing, and high-stakes consent first-class too.

Integration surfaces — pick one

Run402 ships four wrappers around the same HTTP API. Pick the one matching your runtime; they all share the same kernel and credential store.

Surface Use when… Reference
@run402/sdk ⭐ recommended You're authoring TypeScript / JavaScript code (server, edge, sandbox, code-mode agent). Typed every method. The kernel everything else wraps. https://docs.run402.com/llms-sdk.txt
run402 CLI You're a shell-based / scripted agent. JSON in, JSON out, exit code on failure. Also the GitHub Actions OIDC setup path (run402 ci link github). https://docs.run402.com/llms-cli.txt
run402-mcp You're an MCP-host agent (Claude Desktop, Cursor, Cline, Claude Code) — the tools land in your context automatically. https://docs.run402.com/llms-mcp.txt
Remote MCP (no install) You can attach a streamable-http MCP server and want free discovery tools first (quickstart, x402 price check, live experiment scoreboard). Never handles funds — paid tools need run402-mcp locally. https://mcp.run402.com/mcp
HTTP API (raw) You're in a language without an SDK or doing low-level work. https://run402.com/llms-full.txt

The CLI and MCP are thin shims over the SDK. Each subcommand and each MCP tool is an argv/schema-parsing wrapper around an SDK method. If you're already in TypeScript, prefer the SDK directly — fewer process boundaries, typed errors, identical behavior.

A fifth distribution — the OpenClaw skill — is a script-based wrapper that re-exports from the CLI. Pick this only if you're inside the OpenClaw runtime.

Pricing summary

Tier Cost Lease Storage API calls Functions
Prototype FREE (testnet USDC) 7 days 250 MB 500K 5
Hobby $5 30 days 1 GB 5M 25
Team $20 30 days 10 GB 50M 100

Add-ons:

Sites, subdomains, custom domains, function deploys, blob storage, secret management, mailbox creation, app forking — all free with active tier. Only image generation and per-call paid surfaces (image, contract calls) are metered separately.

30-second start

For agents that already have a wallet allowance funded:

npm install -g run402
      run402 up --name my-app -y                 # bootstrap/link/deploy run402.deploy.json or app.json
      run402 subdomains claim my-app             # → https://my-app.run402.com
      

That's a real Postgres database + a deployed static site, paid for autonomously with testnet USDC. Now read your surface's reference (llms-sdk.txt / llms-cli.txt / llms-mcp.txt) for everything else.

If you have no wallet yet

You need a wallet with USDC on Base (real or testnet) to pay Run402. Three paths:

For testnet, run402 allowance fund requests 0.25 USDC from the Base Sepolia faucet — enough for two prototype tier subscriptions.

Two payment rails — same wallet key

The same wallet key works on both chains; switching rails just changes which chain pays. Initialize MPP with run402 init mpp instead of run402 init.

Talk to us

run402 feedback send "your message here"
      

Free with active tier. The team reads every message. Or email tal+402@kychee.com, or follow @run402com.

Where to go next