4Mica is the clearing house for the agentic economy: a credit layer for the x402 HTTP payment standard. A payer deposits collateral once, then signs an off-chain payment guarantee for every request. Guarantees are verified in milliseconds, netted over settlement cycles, and only net positions settle on-chain. Collateral stays non-custodial and earns yield through ERC-4626 strategies such as Aave.
Start with the Quickstart, browse the full documentation, and check the supported networks (Base Sepolia, Base mainnet, Ethereum Sepolia).
- Pay for APIs – build an agent or client that pays per request with signed guarantees instead of on-chain transactions. Buyer quick start · Make paid requests automatically
- Get paid for APIs – gate an API, model, dataset, or workflow behind an x402 paywall with middleware for Express, Hono, Next.js, FastAPI, or Flask. Seller quick start · Payment middleware
- Facilitators – verify and settle 4Mica credit payments from an existing x402 integration, or run your own facilitator. How facilitators work · facilitator-4mica
| Language | Package | Source |
|---|---|---|
| TypeScript | @4mica/sdk with adapters for Node, Express, Hono, Next.js, and Deno |
packages/sdk |
| Python | sdk-4mica |
packages/sdk-python |
| Rust | sdk-4mica |
packages/sdk-rust |
| CLI | @4mica/cli |
packages/cli |
- 4mica – monorepo with the web platform, docs, SDKs, CLI, and examples
- facilitator-4mica – x402 facilitator that runs the 4Mica credit flow