Start here
Pick the thing you came to do. Each of these ends with a real response, not a diagram.
Browse the HTTP API
All 227 operations, generated from the OpenAPI document the API serves. Everything works over plain REST — no SDK required.
Make your first call
From a key to a response in three curls, with nothing installed.
Get paid for an API call
Put a paywall in front of an endpoint and take the first paid call.
Let an agent spend
Give an agent an allowance instead of a key. It pays inside the cap you signed.
Charge over Pix
Issue a Pix charge, receive it, and see the credit land in the ledger.
Connect an agent over MCP
One hosted URL, 15 meta-tools, no HTTP client to write. Claude Code, Cursor, Windsurf or any client that speaks it.
Set up your environment
SDK, CLI, adapters, test mode, and the machine-readable contracts.
Four ways in, one runtime
The same governed runtime answers all four. Pick by what you are building with, not by what you are building.
Plain REST
227 operations, generated from the OpenAPI document the API serves at /openapi.json. No SDK, no client library, any language — Go, Java, .NET, PHP. Start at `codespar whoami`'s route and follow the resource you need.
TypeScript or Python SDK
A typed client over the same operations, plus the session and meta-tool ergonomics. `npm i @codespar/sdk` or `pip install codespar`.
MCP
One hosted URL and 15 meta-tools, for Claude Code, Cursor, Windsurf or any client that speaks the protocol. No HTTP client to write.
The CLI
103 commands over the same surface, for exploring the catalog, minting a mandate, or debugging a session from a terminal.
Integrating without our SDK?
Everything the SDK does is an HTTP call you can make yourself, and mandate signing is server-side — you never hold a signing key. The HTTP reference and the served OpenAPI document are the complete contract; point your own generator at it.
See both sides run
Same infrastructure, same governance. Watch the direction of money flip while the mandate gate, the router, and the receipt stay identical.
↘ You get paid
↗ You send agents out to spend
✦ Either way, the same artifact
Every settled move on either side seals a signed receipt binding permission, settlement, and proof: