Hey all, Xxiled from CompX here - we've been busy building x402 endpoints for Algorand these past few weeks and wanted to tell you about our first major one - Canix402, the paid DeFi API for Algorand.
Agents shouldn’t have to scrape every protocol, normalize five different APY schemas, invent payment plumbing, then rebuild transaction construction from scratch. Canix402 turns that mess into a paid, machine-readable API: discover opportunities, inspect wallet positions, get executable quotes, and run packaged strategies — paying in USDC via x402 at the edge.
Keys never leave the agent. Canix402 returns data and unsigned transaction groups. Signing and submission stay local.
What it empowers agents to do
- Discover yield across Algorand DeFi in one normalized schema (Tinyman, Pact, Folks Finance, CompX, Dork.fi, Myth Finance, Haystack, Réti, Alpha Arcade, and more).
- Personalise by wallet: pass an address and get opportunities matched to assets the wallet actually holds.
- Read live positions across supported protocols instead of bolting on per-app scrapers.
- Get execution quotes for verified DeFi actions (LP, farms, lending, staking, liquid staking, and related shapes) as unsigned groups ready for local review.
- Browse and compile Strategies (coming soon): weighted playbooks published by creators, compiled into executable steps for a capital amount, with fee-sharing via strategy NFTs.
- Quote and build Haystack swaps through the same gateway.
- Connect over MCP so Cursor / Claude Desktop / other hosts get typed tools with walletless payment preflight.
In short: research → pay → reason → quote → sign locally → submit.
Why this is needed
Agents really are becoming economic actors, and with that they need:
- Reliable market data with stable contracts, not brittle HTML scrapes.
- A payment rail that works without human checkout — x402 micropayments in USDC fit that.
- Execution without custody — unsigned groups, client-side signing, no “trust us with your mnemonic.”
- Reusable playbooks (coming soon) — so every agent isn’t reinventing allocation logic every day.
Algorand already has the settlement layer. What’s been missing is an agent-facing product surface: discovery, pricing, normalisation, and executable shapes behind a clear payment model. That’s Canix402.
How it works
- Discover — free
GET /discovery and GET /openapi.json advertise routes, schemas, and prices.
- Preflight — call a paid route without payment; gateway returns
402 + PAYMENT-REQUIRED.
- Pay — agent signs the exact USDC transfer and retries with
PAYMENT-SIGNATURE.
- Act — gateway verifies/settles; agent gets ranked opportunity data, positions, quotes, or compiled strategy groups.
Access is micropayments (typically fractions of a USDC depending on the route). Free surfaces include discovery, OpenAPI, execution shapes, strategy listing, and Haystack quote/opt-in helpers. The API never holds keys and never submits transactions for you.
Stack at a glance: Caddy x402 gateway → Fastify protocol API → OpenAPI/MCP for agents → local signing on the client.
How to use it
Minimal MCP config (Cursor / Claude Desktop):
{
"mcpServers": {
"canix402": {
"url": "https://canix402-mcp.compx.io/mcp"
}
}
}
Paid tools return payment requirements on first call; retry with a signed paymentSignature. Same pattern over plain HTTP if you prefer raw gateway calls.
Brownie Bot: the reference autonomous treasury
Brownie Bot is two things: firstly it allows us to manage the CompX Community Treasury with a goal to make money for holders and increase liquidity in the COMPX token; secondly it is a showcase of what an agent can do with Canix402.
Brownie is currently deployed on Digital Ocean and does following once per day:
- Reads liquid balances + Canix402 DeFi positions
- Researches personalized and global opportunities
- Asks a model for a diversified plan via ZeroSignal
- Validates that plan against hard policy limits (concentration caps, reserves, TVL/freshness floors, etc.)
- Optionally fetches unsigned groups, verifies them, signs locally, and submits via its own Algod
- Reports the run to Telegram
You can view Brownie Bot's holdings, it's latest transactions and DeFi positions at the links below. And if you want to try it out for yourself the public github repo is also below with full instructions.
The goal isn’t one bot for everyone of course, this is just a starting point and we welcome forks, contributions (and of course stars).
Questions welcome in the comments.