U.CASH for developers

SDKs for agents that get paid

Zero-dependency SDKs for the 402 Online Protocol. Create priced resources, save wallet addresses, issue challenges and settle payments over plain HTTP - non-custodial, in about ten lines of code.

JS + Python MCP server npm @ucash/agents · pip agents-u-cash

JavaScript SDK

zero-dependency

npm package

npm install @ucash/agents

Node and the browser. Strict input contracts, Idempotency-Key support and typed responses - the same contract the live API enforces.

Python SDK

zero-dependency

PyPI package

pip install agents-u-cash

Standard library only. Works everywhere Python does, from agents to notebooks to cron jobs.

MCP server

Claude ready

stdio Model Context Protocol

git clone https://github.com/UdotCash/agents
cd agents && php mcp/server.php

86 seller tools (resources, wallets, settlements). Buyers need no install at all: the hosted keyless MCP is mcp.u.cash - docs + config snippets at agents.u.cash/mcp.

Ten lines to a paid resource

from agents_u_cash import AgentsUCash

agent = AgentsUCash(api_key="...")
agent.set_wallet("btc", "bc1q...")
res = agent.create_resource(amount=0.05)
acc = agent.create_challenge(res["res_id"])

Set a wallet, price a resource, mint the 402 challenge. The buyer pays your wallet directly on-chain; settlement is detected and signed back to you.

Everything else is HTTP

The SDKs are thin by design: they wrap the same REST surface any client can call. When you outgrow them, the reference is the contract, and openapi.json generates the next one.