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: enhance agent listing API with additional on-chain filtering criteria

nirholas7f6f084380b2
diff --git a/api/agents.js b/api/agents.js
index 270930383..28ab6a6b9 100644
--- a/api/agents.js
+++ b/api/agents.js
@@ -64,7 +64,8 @@ async function handleList(req, res) {
if (isMe) return handleGetOrCreateMe(req, res, auth);
- const onchainFilter = onchainOnly ? sql`AND erc8004_agent_id IS NOT NULL` : sql``;
+ const onchainFilter = onchainOnly ? sql`AND (erc8004_agent_id IS NOT NULL OR meta->>'onchain' IS NOT NULL)` : sql``;
+
const rows = await sql`
SELECT * FROM agent_identities
WHERE user_id = ${auth.userId}