buyforme
v0.1.0
Published
Tiny CLI alias for payagent. `npx buyforme <url>` proxies to `payagent pay <url>` — let AI agents (or you) pay for any URL with USDC over x402.
Downloads
34
Maintainers
Readme
buyforme
A tiny CLI alias for payagent.
npx buyforme https://api.example.com/premium…is exactly equivalent to:
npx payagent pay https://api.example.com/premiumUse whichever feels more natural at the shell. buyforme is intentionally a one-trick verb — point it at a URL and it pays. Everything else (auth, agent creation, funding, limits, networks) is handled by the underlying payagent SDK + CLI.
Install
npm install -g buyforme
# or one-shot:
npx buyforme https://api.example.com/premiumRequires Node.js >= 18.
Behaviour
- If the first argument starts with
http://orhttps://,buyformeinvokespayagent pay <url> ...rest. All otherpayagent payflags work — pass them straight through (--agent,--per-tx,--daily,--monthly,--network,--domains,--method,--body,--amount). - If the first argument is anything else (
init,agent,balance,--help, …),buyformeforwards args verbatim topayagent. Sobuyforme init,buyforme agent create --name hermes,buyforme --helpall work.
What it's a proxy for
payagent provisions a delegated-custody agent wallet through ArisPay: Coinbase CDP holds the signing key, ArisPay enforces per-transaction, daily, monthly, and allowed-domain limits server-side, and signs on your agent's behalf when it hits an HTTP 402. No private keys ever live in your process.
For full docs, see the payagent README.
License
MIT © Polar Industries Ltd
