Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(ca2x402): show a curl pay step that works instead of a CLI that cannot sign

nirholas7ab1bab54e02
diff --git a/api/ca2x402/resolve.js b/api/ca2x402/resolve.js
index be551252b..4a46faad9 100644
--- a/api/ca2x402/resolve.js
+++ b/api/ca2x402/resolve.js
@@ -39,8 +39,10 @@ function buildSnippets(endpointUrl) {
const curl =
`# 1) See the price (returns HTTP 402 + payment requirements)\n` +
`curl -i "${endpointUrl}"\n\n` +
- `# 2) Pay & call in one step with the x402 CLI\n` +
- `npx x402-fetch "${endpointUrl}"`;
+ `# 2) Pay: sign the requirement from step 1 into a base64 X-PAYMENT header,\n` +
+ `# then replay the same call with it. The Node tab below builds that\n` +
+ `# header for you; export it as X_PAYMENT to finish here in curl.\n` +
+ `curl -i -H "X-PAYMENT: $X_PAYMENT" "${endpointUrl}"`;
const node =
`import { wrapFetchWithPayment } from 'x402-fetch';\n` +