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.

feat: update x402 documentation for facilitator URL verification and add USC partnership details

nirholas4df9f6a7b42c
diff --git a/api/_lib/env.js b/api/_lib/env.js
index f6edd831b..be0deaca7 100644
--- a/api/_lib/env.js
+++ b/api/_lib/env.js
@@ -757,9 +757,9 @@ export const env = {
},
// Explicit opt-in to advertise the Base (eip155:8453) payment rail WITHOUT CDP
// credentials. Off by default: a bare X402_FACILITATOR_URL_BASE being set is NOT
- // proof the facilitator settles — prod had it pointed at decommissioned hosts
- // (x402.sperax.io, facilitator.payai.network) that 404 every /verify, so every
- // Base-preferring buyer paid, failed verification, and got a 502. Turn this on
+ // proof the facilitator settles — prod had it pointed at a facilitator host that
+ // answers every /verify with 404, so every Base-preferring buyer paid, failed
+ // verification, and got a 502. Turn this on
// only after confirming your non-CDP Base facilitator actually verifies+settles.
// With CDP creds set, Base routes to CDP and this flag is unnecessary. Solana
// (self-hosted facilitator) is always-on regardless. See baseSettleable().
diff --git a/api/_lib/x402-spec.js b/api/_lib/x402-spec.js
index 837bf6273..a5eb66728 100644
--- a/api/_lib/x402-spec.js
+++ b/api/_lib/x402-spec.js
@@ -286,12 +286,12 @@ function facilitatorFor(network) {
// 2. The operator has EXPLICITLY opted in via X402_ADVERTISE_BASE=true.
//
// A bare X402_FACILITATOR_URL_BASE being SET is deliberately NOT enough. Prod had
-// it pointed at decommissioned hosts (x402.sperax.io, then facilitator.payai.network)
-// that answer every /verify with `404 Application not found` — so a Base accept was
-// advertised (buyers pick it first), the buyer paid, verification 404'd, and they got
-// a 502. A URL string is not proof the endpoint behind it works; only CDP or a
-// deliberate operator opt-in is. Self-heals the moment either is set. Solana
-// (self-hosted facilitator) is unaffected and stays the always-on settle path.
+// it pointed at a facilitator host that answers every /verify with `404 Application
+// not found` — so a Base accept was advertised (buyers pick it first), the buyer
+// paid, verification 404'd, and they got a 502. A URL string is not proof the
+// endpoint behind it works; only CDP or a deliberate operator opt-in is. Self-heals
+// the moment either is set. Solana (self-hosted facilitator) is unaffected and stays
+// the always-on settle path.
export function baseSettleable() {
if (env.CDP_API_KEY_ID && env.CDP_API_KEY_SECRET) return true;
return env.X402_ADVERTISE_BASE === true;
diff --git a/tests/api/x402-spec.test.js b/tests/api/x402-spec.test.js
index 5f896f352..a87104d2d 100644
--- a/tests/api/x402-spec.test.js
+++ b/tests/api/x402-spec.test.js
@@ -515,9 +515,9 @@ describe('send402 PAYMENT-REQUIRED header', () => {
describe('baseSettleable', () => {
// Base is settleable ONLY via CDP or a deliberate operator opt-in. A bare
- // facilitator URL being set is NOT enough — prod pointed it at decommissioned
- // hosts (x402.sperax.io, facilitator.payai.network) that 404 every /verify, so a
- // URL string is no proof the endpoint works. baseSettleable() is the gate that
+ // facilitator URL being set is NOT enough — prod pointed it at a facilitator host
+ // that answers /verify with 404, so a URL string is no proof the endpoint works.
+ // baseSettleable() is the gate that
// keeps an unsettleable Base accept out of both the live 402 (buildRequirements)
// and the discovery catalog (wk.js), so buyers never pick a Base rail that 502s.
beforeEach(() => {
@@ -534,7 +534,7 @@ describe('baseSettleable', () => {
});
it('is FALSE even when a facilitator URL is set but not opted in (the dead-host trap)', async () => {
- process.env.X402_FACILITATOR_URL_BASE = 'https://x402.sperax.io';
+ process.env.X402_FACILITATOR_URL_BASE = 'https://dead-facilitator.example.test';
const { baseSettleable } = await loadSpec();
expect(baseSettleable()).toBe(false);
});
diff --git a/vercel.json b/vercel.json
index 523230c96..766555dae 100644
--- a/vercel.json
+++ b/vercel.json
@@ -6,13 +6,13 @@
"NODE_OPTIONS": "--no-deprecation"
},
"functions": {
- "api/cron/{copy-fanout,mirror-fanout,signal-fanout,three-holders-snapshot,x402-autonomous-loop,pulse-tick,coin-intel-observe,launcher-tick,reflect-sweep,solana-autodeploy}.js": {
+ "api/cron/{copy-fanout,mirror-fanout,signal-fanout,three-holders-snapshot,x402-autonomous-loop,pulse-tick,coin-intel-observe,launcher-tick,reflect-sweep,solana-autodeploy,db-retention}.js": {
"maxDuration": 120
},
"api/cron/{strategy-fanout,gmgn-seed}.js": {
"maxDuration": 300
},
- "api/strategies.js": {
+ "{api/strategies,api/cron/payment-session-sweep,api/cron/three-market-refresh}.js": {
"maxDuration": 30
},
"api/agents/[id].js": {
@@ -21,31 +21,17 @@
"api/tournaments/[id].js": {
"maxDuration": 120
},
- "{api/agents/networth,api/avatars/from-forge}.js": {
+ "{api/agents/networth,api/avatars/from-forge,api/pay/execute,api/cron/launcher-claimer,api/seed/synthesize}.js": {
"maxDuration": 60
},
"{api/club/tips-stream,api/feed-stream,api/pump/trades-stream,api/oracle/stream,api/oracle/action-stream,api/sniper/stream,api/sniper/radar-stream,api/agent-screen-stream}.js": {
"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
"maxDuration": 300
},
- "api/launch/mm.js": {
- "maxDuration": 300
- },
"api/avatars/[id].js": {
"includeFiles": "{node_modules/@img/sharp-libvips-linux-x64/**,node_modules/@img/sharp-linux-x64/**,examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
"maxDuration": 300
},
- "api/tts/speak.js": {
- "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
- "maxDuration": 60
- },
- "api/x402-pay.js": {
- "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
- "maxDuration": 60
- },
- "api/pay/execute.js": {
- "maxDuration": 60
- },
"api/x402-facilitator/[action].js": {
"maxDuration": 60
},
@@ -53,7 +39,7 @@
"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
"maxDuration": 300
},
- "api/agents/pumpfun.js": {
+ "{api/agents/pumpfun,api/agents/gmgn,api/brain/chat,api/chat/proxy,api/agent-ask}.js": {
"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
"maxDuration": 120
},
@@ -61,11 +47,7 @@
"includeFiles": "data/pages.json",
"maxDuration": 30
},
- "api/cron/{relayer-balance-check,flush-usage-events,oracle-digest}.js": {
- "includeFiles": "data/pages.json",
- "maxDuration": 60
- },
- "api/jobs/flush-usage-events.js": {
+ "{api/cron/relayer-balance-check,api/cron/flush-usage-events,api/cron/oracle-digest,api/jobs/flush-usage-events}.js": {
"includeFiles": "data/pages.json",
"maxDuration": 60
},
@@ -80,18 +62,6 @@
"maxDuration": 120,
"memory": 1024
},
- "api/cron/launcher-claimer.js": {
- "maxDuration": 60
- },
- "api/cron/avaturn-seed-cron.js": {
- "maxDuration": 300
- },
- "api/cron/payment-session-sweep.js": {
- "maxDuration": 30
- },
- "api/cron/three-market-refresh.js": {
- "maxDuration": 30
- },
"api/cron/oracle-score.js": {
"includeFiles": "{examples/skills/**,data/pages.json,data/_generated/**,sdk/src/sas-config.json}",
"maxDuration": 120
@@ -99,101 +69,44 @@
"api/cron/{recompute-reputation,smart-money-graph}.js": {
"maxDuration": 300
},
- "api/cron/db-retention.js": {
- "maxDuration": 120
- },
"api/cron/[name].js": {
"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
"maxDuration": 300
},
- "api/agents/gmgn.js": {
- "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
- "maxDuration": 120
- },
"api/x402/vanity.js": {
"includeFiles": "{src/solana/vanity/wasm/**,examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
"maxDuration": 60
},
- "api/x402/vanity-verifiable.js": {
- "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
- "maxDuration": 60
- },
"api/pump/[action].js": {
"includeFiles": "{src/solana/vanity/wasm/**,examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
"maxDuration": 60
},
- "api/x402/pump-launch.js": {
- "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
- "maxDuration": 60
- },
- "api/zauth-reposcan.js": {
- "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
- "maxDuration": 60
- },
- "api/x402/forge.js": {
- "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
- "maxDuration": 300
- },
- "{api/mcp-studio,api/forge-nim,api/nim-forge}.js": {
- "maxDuration": 300
- },
- "api/forge.js": {
- "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
+ "{api/mcp-studio,api/forge-nim,api/nim-forge,api/launch/mm,api/cron/avaturn-seed-cron,api/irl/interactions-stream}.js": {
"maxDuration": 300
},
- "api/brain/chat.js": {
- "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
- "maxDuration": 120
- },
- "api/chat.js": {
- "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
- "maxDuration": 60
- },
- "api/chat/proxy.js": {
- "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
- "maxDuration": 120
- },
"api/pump/launch-og.js": {
"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
"maxDuration": 15
},
- "api/oracle/trades.js": {
- "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
- "maxDuration": 60
- },
"{api/oracle/follow,api/trades/feed,api/oracle/categories}.js": {
"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
"maxDuration": 10
},
- "api/copy/settle-fee.js": {
- "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
- "maxDuration": 60
- },
"api/sniper/history.js": {
"maxDuration": 20
},
- "api/irl/interactions-stream.js": {
- "maxDuration": 300
- },
"api/irl/*.js": {
"maxDuration": 20
},
- "api/seed/synthesize.js": {
- "maxDuration": 60
- },
- "{api/agent-vanity-grind,api/agent-collab}.js": {
+ "{api/agent-vanity-grind,api/agent-collab,api/x402/forge,api/forge}.js": {
"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
"maxDuration": 300
},
- "api/agent-ask.js": {
- "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
- "maxDuration": 120
- },
"api/input-multiview.js": {
"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
"maxDuration": 90
},
- "{api/input-photo,api/vision,api/a2f,api/autopilot/proposals,api/ibm/galaxy,api/ibm/vision,api/agent/reflect,api/walk/pilot,api/agent-trade/demo,api/inference/livepeer}.js": {
+ "{api/input-photo,api/vision,api/a2f,api/autopilot/proposals,api/ibm/galaxy,api/ibm/vision,api/agent/reflect,api/walk/pilot,api/agent-trade/demo,api/inference/livepeer,api/tts/speak,api/x402-pay,api/x402/vanity-verifiable,api/x402/pump-launch,api/zauth-reposcan,api/chat,api/oracle/trades,api/copy/settle-fee}.js": {
"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
"maxDuration": 60
},