Skip to main content
Key0 ships in two deployment modes. Both use the same payment engine, state machine, and security invariants — the difference is how you integrate and where token issuance lives.
Run Key0 as a pre-built Docker container alongside your existing API. No code changes required.
  • Published to Docker Hub as key0ai/key0
  • Configure via the browser-based Setup UI at /setup, or through environment variables
  • Token issuance (subscription) is delegated to your ISSUE_TOKEN_API endpoint — Key0 POSTs to it after a successful payment and forwards the credential back to the agent
  • Pay-per-request (standalone proxy) is enabled by setting PROXY_TO_BASE_URL and defining top-level routes. Clients buy a routeId, Key0 settles the payment, forwards the request to your backend, and returns the backend response directly as a ResourceResponse. No ISSUE_TOKEN_API call for route-based purchases.
  • Docker Compose profiles control which infrastructure is managed for you:
Best for teams that want a quick deploy, prefer Docker-native workflows, or want to avoid touching application code.

Comparison

Which should I choose?

Choose Standalone if you have an existing API and want to add agent payments without modifying your application code. Key0 runs as a sidecar container and calls back to your token endpoint. Choose Embedded if you want the payment flow to live inside your server process. You get direct access to the ChallengeEngine, full control over credential issuance, and no extra container to manage. Both modes support the same transports (REST x402, A2A, MCP), the same on-chain verification, and the same refund logic. You can start with one and switch later.

Next steps

Quickstart: Standalone

Run Key0 as a Docker service in under 5 minutes.

Quickstart: Embedded

Add Key0 to an existing Express, Hono, or Fastify server.