|
2 | 2 |
|
3 | 3 | [](https://github.com/Primer-Systems/x402/actions/workflows/test.yml) |
4 | 4 |
|
5 | | -Implementation of the [x402 payment protocol](https://x402.org) for HTTP 402 payments. |
| 5 | +Implementation of the [x402 payment protocol](https://x402.org) for HTTP 402 payments. **OpenClaw compatible** 🦞 |
6 | 6 |
|
7 | 7 | ## Components |
8 | 8 |
|
9 | | -- **sdk-typescript/** - TypeScript SDK for payers and payees |
10 | | -- **sdk-python/** - Python SDK for payers and payees |
| 9 | +- **sdk-typescript/** - TypeScript SDK for payers and payees ([npm](https://www.npmjs.com/package/@primersystems/x402)) |
| 10 | +- **sdk-python/** - Python SDK for payers and payees ([pypi](https://pypi.org/project/primer-x402/)) |
| 11 | +- **openclaw/** - OpenClaw skill for AI agent payments |
11 | 12 | - **tools/** - CLI tools for testing and token approval |
12 | 13 | - **Contracts/** - *Prism* smart contract for ERC-20 settlements |
13 | 14 |
|
14 | | -## Quick Start |
| 15 | +## Quick Start (CLI) |
| 16 | + |
| 17 | +```bash |
| 18 | +# Node.js |
| 19 | +npx @primersystems/x402 wallet create |
| 20 | +npx @primersystems/x402 probe https://api.example.com/paid |
| 21 | +npx @primersystems/x402 pay https://api.example.com/paid --dry-run |
| 22 | + |
| 23 | +# Python |
| 24 | +pip install primer-x402 |
| 25 | +x402 wallet create |
| 26 | +x402 probe https://api.example.com/paid |
| 27 | +x402 pay https://api.example.com/paid --dry-run |
| 28 | +``` |
| 29 | + |
| 30 | +## Quick Start (Code) |
15 | 31 |
|
16 | 32 | ### As a Payer (Client) |
17 | 33 |
|
@@ -68,6 +84,28 @@ Key v2 features: |
68 | 84 |
|
69 | 85 | **Facilitator:** `https://x402.primer.systems` (Base networks only) |
70 | 86 |
|
| 87 | +## OpenClaw Integration |
| 88 | + |
| 89 | +Set up x402 payments for your AI agent with one command: |
| 90 | + |
| 91 | +```bash |
| 92 | +# Node.js |
| 93 | +npx @primersystems/x402 openclaw init |
| 94 | + |
| 95 | +# Python |
| 96 | +x402 openclaw init |
| 97 | +``` |
| 98 | + |
| 99 | +This creates a wallet, configures the network, and installs the x402 skill. See [openclaw/SKILL.md](openclaw/SKILL.md) for the full skill documentation. |
| 100 | + |
| 101 | +## Links |
| 102 | + |
| 103 | +- [x402 Protocol Specification](https://x402.org) |
| 104 | +- [Documentation](https://primer.systems/x402) |
| 105 | +- [TypeScript SDK](https://www.npmjs.com/package/@primersystems/x402) |
| 106 | +- [Python SDK](https://pypi.org/project/primer-x402/) |
| 107 | +- [Primer Pay Browser Extension](https://chromewebstore.google.com/detail/primer-pay/bckienhfmjoolgkafljofomegfafanmh) |
| 108 | + |
71 | 109 | ## License |
72 | 110 |
|
73 | | -MIT - Primer Systems |
| 111 | +MIT - [Primer Systems](https://primer.systems) |
0 commit comments