You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add OpenClaw plugin, --verbose flag, and MPP session fixes
- OpenClaw plugin (src/openclaw/): x_balance tool, x_payment tool,
/x_wallet command, HTTP route proxy for upstream x402 endpoints
- --verbose flag on fetch command for debugging protocol negotiation,
headers, session lifecycle, and payment flow
- Fix Headers instances silently dropped in MPP SSE requests by
converting to plain object before passing to mppx SDK
- Wrap MPP session close() in try/catch to prevent CLI crashes
- Include amount and channelId in MPP payment history records
- Bump to v0.7.0
-`openclaw.plugin.json` manifest with config schema for providers, keypair path, RPC URL, and dashboard URL
16
+
-`./openclaw` subpath export in package.json
17
+
18
+
### Fixed
19
+
- MPP SSE requests silently losing `Content-Type` and other headers when `Headers` instances are spread (workaround for mppx SDK bug, upstream fix: wevm/mppx#209)
20
+
- MPP session `close()` errors no longer crash the CLI - wrapped in try/catch with verbose error reporting
21
+
- MPP payment history now includes `amount` (converted from base units) and `channelId` in transaction records
22
+
- MPP streaming history records now use `channelId` as fallback for `tx` field when no receipt reference is available
23
+
10
24
## [0.6.0] - 2026-03-19
11
25
12
26
### Added
@@ -172,7 +186,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
172
186
-`appendHistory` / `readHistory` / `calcSpend` - JSONL transaction history
173
187
- Re-exports from `@x402/fetch`, `@x402/svm`, `@x402/evm`
See the [library API docs](https://github.com/cascade-protocol/x402-proxy/tree/main/packages/x402-proxy#library-api) for details.
120
123
124
+
## OpenClaw Plugin
125
+
126
+
x402-proxy ships as an [OpenClaw](https://openclaw.dev) plugin, giving your gateway automatic x402 payment capabilities. Registers `x_balance` and `x_payment` tools, `/x_wallet` command, and an HTTP route proxy for upstream x402 endpoints.
127
+
128
+
Configure providers and models in OpenClaw plugin settings. Uses the standard wallet resolution (env vars or `wallet.json`).
- `x_payment`tool - call any x402-enabled endpoint with automatic payment
152
+
- `/x_wallet`command - wallet status, send USDC, transaction history
153
+
- HTTP route proxy (`/x402/*`) - proxies requests to upstream x402 endpoints with payment
154
+
155
+
Configure in your OpenClaw plugin settings with `providers` (upstream x402 endpoints and models) and optionally `keypairPath` or use the standard `X402_PROXY_WALLET_MNEMONIC` env var.
156
+
145
157
## Library API
146
158
147
159
For programmatic use in Node.js apps, read `references/library.md`.
0 commit comments