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(a-page.js): update viewer URL format for on-chain agent links

nirholas9eaf0733b099
diff --git a/api/a-page.js b/api/a-page.js
index 26d1e6e99..017773035 100644
--- a/api/a-page.js
+++ b/api/a-page.js
@@ -38,7 +38,7 @@ export default wrap(async (req, res) => {
const origin = env.APP_ORIGIN;
const pageUrl = `${origin}/a/${chainId}/${agentId}`;
const embedUrl = `${origin}/a/${chainId}/${agentId}/embed`;
- const viewerUrl = `${origin}/?agent=agent://${chainId}/${agentId}`;
+ const viewerUrl = `${origin}/app#onchain=${chainId}:${agentId}`;
const ogUrl = `${origin}/api/a-og?chain=${chainId}&id=${encodeURIComponent(agentId)}`;
const oembedJs = `${origin}/api/agent-oembed?url=${encodeURIComponent(pageUrl)}&format=json`;