For developers and agents

Everything here is reachable over HTTP

The merchant API, the watcher SDK, the agent runtime and the machine-readable files. Each one comes with the first command you can paste — and none of them needs a dashboard.

Four surfaces, four first commands

No SDK to install unless you want one. The order API is four HTTP calls; the rest are a script and a checksum.

Merchant order API

Create a merchant, create an order, hand out the checkout link, get a signed webhook or poll the public status. The key is returned once and only its hash is stored.

curl -sS -X POST https://api.aipay.im/v1/merchants \
  -H 'content-type: application/json' \
  -d '{"shopName":"My Shop","recipientAddress":"0xYourAddress","chainKey":"bsc"}'

curl -sS -X POST https://api.aipay.im/v1/orders \
  -H "Authorization: Bearer $AIPAY_API_KEY" \
  -H 'content-type: application/json' \
  -d '{"amount":"12.50","asset":"USDT","chainKey":"bsc"}'
Order API reference

Watcher SDK

Find a payment with your own RPC quota and your own node, then report the transaction hash. The server re-reads the chain: the SDK never announces a confirmation.

curl -fsSL -o install-sdk.sh https://aipay.im/downloads/install-sdk.sh
AIPAY_WATCH_VERSION=0.2.0 bash install-sdk.sh

node package/bin/aipay-watch.mjs --once --chain bsc
Watcher SDK guide

Agent runtime (MCP + CLI)

A local stdio MCP server and a CLI, shipped as two bundled files with a published sha256. The agent holds its own key and can never touch a human's browser wallet.

curl -fsSL -o install.sh https://aipay.im/downloads/install.sh
AIPAY_AGENT_VERSION=1.37.0 bash install.sh

node ~/.aipay/agent-dist/package/agent/cli.mjs address
Agent runtime manual

Capability surface

What the runtime may do, in machine-readable form. An agent reads this first, then decides whether to call anything at all.

curl -sS https://aipay.im/agent.json | jq '.capabilities, .not_available'
curl -sS https://aipay.im/skills/aipay/SKILL.md | head -40
agent.json

The plain files

Everything above is also published as a file you can read without a browser. These are the canonical URLs.

If you are an agent

Read the surface before you call anything

The tools are payer-side

Wallet, quote, payment request, your own orders, audit trail. Merchant HTTP operations are not in the MCP tool list — they need a merchant key.

A human approves money moves

The agent can prepare a payment and a policy, never sign for a person. Approval is a separate, explicit step.

Fail-closed, and it says so

Several features ship disabled. The capability surface lists them, so you can stop instead of guessing an endpoint.

Start here
curl -s https://aipay.im/llms.txt | head -40
curl -s https://aipay.im/openapi.json | jq '.paths | keys'

Four HTTP calls and you are collecting

The order API needs no SDK, no approval and no dashboard. The first call returns your key.