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(voice): finish the BYOK setup surface and declare the copy-mcp Smithery config

nirholas2a3ea24e0703
diff --git a/api/cron/[name].js b/api/cron/[name].js
index 3a3f140f9..4b7675f40 100644
--- a/api/cron/[name].js
+++ b/api/cron/[name].js
@@ -45,6 +45,8 @@ import { cors, error, json, method, wrapCron } from '../_lib/http.js';
import { env } from '../_lib/env.js';
import { llmComplete } from '../_lib/llm.js';
import { CHAINS } from '../_lib/erc8004-chains.js';
+import { REGISTRY_TOPICS, decodeRegistryLog } from '../_lib/erc8004-registry-events.js';
+import { agentRef, recordEvents } from '../_lib/onchain-events.js';
import { DELEGATION_MANAGER_DEPLOYMENTS, DELEGATION_MANAGER_ABI } from '../../src/erc7710/abi.js';
import {
getPumpAgent,
@@ -208,9 +210,6 @@ async function handleSolanaAgentsCrawl(req, res) {
// erc8004-crawl
// ═══════════════════════════════════════════════════════════════════════════
-const REGISTERED_TOPIC = keccakId('Registered(uint256,string,address)');
-const ABI_CODER = AbiCoder.defaultAbiCoder();
-
// Blocks scanned per chain per cron invocation. Public RPCs typically allow
// 2000-block ranges; lower this if a chain's RPC rejects with "block range".
const ERC8004_BLOCK_CHUNK = 1_000;
diff --git a/data/changelog.json b/data/changelog.json
index ba91ebca9..221989aa1 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,15 @@
{
"$comment": "Curated changelog entries for three.ws, the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-08-11",
+ "title": "Design your agent's coin before you launch it, and rehearse the launch for free",
+ "summary": "Your agent can now carry a token plan: the name, ticker, story, artwork, pairing, buyback share and dev buy of the coin it is going to become, saved on the agent itself instead of typed into a form and thrown away. The plan shows up on the agent's profile, so visitors can see the coin is coming before it exists, and it tells you what is still missing and what the launch will cost in SOL. There is also a rehearsal: one button builds the real launch transaction from your saved plan and asks Solana to run it on devnet without broadcasting anything, so you find out whether it would work before a single lamport moves. Saving and rehearsing cost nothing and mint nothing; launching stays a separate, deliberate step. Coins launched from your own wallet also now appear in the public launch feed and in your agent's launch history, which they previously did not.",
+ "tags": [
+ "feature"
+ ],
+ "link": "/launches"
+ },
{
"date": "2026-08-11",
"title": "Your agent's personality is now signed and published to IPFS",
diff --git a/docs/api-reference.md b/docs/api-reference.md
index 458bebdd1..92cfced03 100644
--- a/docs/api-reference.md
+++ b/docs/api-reference.md
@@ -1747,6 +1747,117 @@ curl -s -X POST https://three.ws/api/asl-recognition \
---
+## Agent Tokens API
+
+The coin an agent is configured to become, before it exists on chain. Full guide,
+including the launch paths and the mainnet activation step:
+[Agent tokens](./agent-tokens.md).
+
+### Read an agent's token plan
+
+```
+GET /api/agents/tokens/plan?agent_id=<uuid>&network=mainnet
+```
+
+Open. A plan whose `status` is `ready` or `launched` is returned to anyone; a
+`draft` is returned only to the agent's owner, who also gets `launch_wallet`.
+
+**Response**
+
+```json
+{
+ "agent_id": "8f14e45f-ceea-467a-9f27-1f0f8b1cba1c",
+ "network": "mainnet",
+ "is_owner": false,
+ "launch_wallet": null,
+ "plan": {
+ "name": "Ada Ledger",
+ "symbol": "ADA",
+ "coin_type": "agent",
+ "quote_currency": "sol",
+ "buyback_bps": 2500,
+ "sol_buy_in": 0.5,
+ "status": "ready",
+ "mint": null,
+ "readiness": { "ready": true, "blockers": [], "warnings": [] },
+ "cost_estimate": { "total_sol": 0.514105, "dev_buy_usdc": 0 }
+ }
+}
+```
+
+---
+
+### Save an agent's token plan
+
+```
+PUT /api/agents/tokens/plan
+```
+
+Requires the agent owner's session. Saving costs nothing and mints nothing.
+`status` is derived from the readiness check on every save. A plan that already
+launched is permanent and answers `409 conflict`.
+
+**Request body**
+
+```json
+{
+ "agent_id": "8f14e45f-ceea-467a-9f27-1f0f8b1cba1c",
+ "network": "mainnet",
+ "name": "Ada Ledger",
+ "symbol": "ADA",
+ "description": "The ledger of a working agent.",
+ "coin_type": "agent",
+ "quote_currency": "sol",
+ "buyback_bps": 2500,
+ "sol_buy_in": 0.5
+}
+```
+
+---
+
+### Discard an unlaunched plan
+
+```
+DELETE /api/agents/tokens/plan?agent_id=<uuid>&network=mainnet
+```
+
+Requires the agent owner's session. A launched plan is a record and is kept;
+deleting one answers `409 conflict`.
+
+---
+
+### Rehearse the launch (no broadcast)
+
+```
+POST /api/agents/tokens/plan-dry-run
+```
+
+Requires the agent owner's session. Builds the real pump.fun create instructions
+from the saved plan, compiles them against a real blockhash, and simulates them
+on the cluster. Never signs, never broadcasts, costs nothing. `network` defaults
+to `devnet`.
+
+**Response**
+
+```json
+{
+ "ok": true,
+ "broadcast": false,
+ "network": "devnet",
+ "result": {
+ "verdict": "would_succeed",
+ "compiled": true,
+ "tx_bytes": 918,
+ "simulation": { "error": null, "units_consumed": 121843, "logs": ["…"] }
+ }
+}
+```
+
+`verdict` is one of `would_succeed`, `funding_required`, `would_fail`,
+`compile_failed`, `rpc_unavailable`.
+
+---
+
## Token API — security
Rug-check any Solana token in one free call. Instead of an invented "risk score",
diff --git a/packages/copy-mcp/smithery.yaml b/packages/copy-mcp/smithery.yaml
index 077893f4f..e007071b8 100644
--- a/packages/copy-mcp/smithery.yaml
+++ b/packages/copy-mcp/smithery.yaml
@@ -4,7 +4,24 @@ startCommand:
type: stdio
configSchema:
type: object
- properties: {}
- required: []
+ properties:
+ threeWsApiKey:
+ type: string
+ description: >-
+ three.ws bearer credential (API key sk_live_/sk_test_ or OAuth token).
+ Required for every tool except a leader's public aggregate earnings.
+ threeWsBase:
+ type: string
+ description: three.ws API deployment to talk to.
+ default: https://three.ws
+ required:
+ - threeWsApiKey
commandFunction: |
- (config) => ({ command: "npx", args: ["-y", "@three-ws/copy-mcp"], env: {} })
+ (config) => ({
+ command: "npx",
+ args: ["-y", "@three-ws/copy-mcp"],
+ env: {
+ THREE_WS_API_KEY: config.threeWsApiKey,
+ ...(config.threeWsBase ? { THREE_WS_BASE: config.threeWsBase } : {}),
+ },
+ })
diff --git a/src/voice/voice-setup.js b/src/voice/voice-setup.js
index 3c23e73d0..ca0d42358 100644
--- a/src/voice/voice-setup.js
+++ b/src/voice/voice-setup.js
@@ -72,6 +72,7 @@ export class VoiceSetup {
this._stream = null;
this._destroyed = false;
this._el = null;
+ this._sampleUrl = null;
}
async mount() {
@@ -87,6 +88,10 @@ export class VoiceSetup {
this._destroyed = true;
this._stopTimer();
this._releaseMic();
+ if (this._sampleUrl) {
+ URL.revokeObjectURL(this._sampleUrl);
+ this._sampleUrl = null;
+ }
this._el?.remove();
this._el = null;
}