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: implement Solana deployment flow and wallet detection in deploy button

nirholascf3486019c03
diff --git a/docs/coinmarketcap-article.md b/docs/coinmarketcap-article.md
index 2f84053be..32edaa11d 100644
--- a/docs/coinmarketcap-article.md
+++ b/docs/coinmarketcap-article.md
@@ -1,5 +1,5 @@
---
-title: "three.ws — Giving AI Agents a Body, a Wallet, and a Home Onchain"
+title: "three.ws, Giving AI Agents a Body, a Wallet, and a Home Onchain"
target: CoinMarketCap Community / Editorial
---
@@ -7,21 +7,21 @@ target: CoinMarketCap Community / Editorial
## The missing layer between AI and crypto
-For most of the last two years, the conversation about AI and crypto has lived inside a narrow lane: chatbots that can read a wallet balance, agents that can sign a swap, frameworks that promise "autonomous trading" but stall the moment the demo ends. What's been missing is the layer underneath all of that — a way for an AI agent to actually *exist* as a first-class object on the internet. To have an embodiment users can see. An identity that survives a model swap. A wallet that can pay for its own compute. A reputation that follows it across apps. A way to be embedded anywhere a YouTube video can be embedded today.
+For most of the last two years, the conversation about AI and crypto has lived inside a narrow lane: chatbots that can read a wallet balance, agents that can sign a swap, frameworks that promise "autonomous trading" but stall the moment the demo ends. What's been missing is the layer underneath all of that, a way for an AI agent to actually *exist* as a first-class object on the internet. To have an embodiment users can see. An identity that survives a model swap. A wallet that can pay for its own compute. A reputation that follows it across apps. A way to be embedded anywhere a YouTube video can be embedded today.
-[three.ws](https://three.ws) is building exactly that. It is an open-source platform that turns an AI agent into a persistent, ownable, multi-chain object — a 3D body in the browser, an LLM brain, an onchain identity registered on any of 15+ EVM networks (or Solana), and a distributable web component you can drop into any page on the internet. Every layer is open source under Apache 2.0. The full stack is live and in production.
+[three.ws](https://three.ws) is building exactly that. It is an open-source platform that turns an AI agent into a persistent, ownable, multi-chain object, a 3D body in the browser, an LLM brain, an onchain identity registered on any of 15+ EVM networks (or Solana), and a distributable web component you can drop into any page on the internet. Every layer is open source under Apache 2.0. The full stack is live and in production.
This article is about the part of three.ws that matters most to the crypto-native reader: **the onchain layer**. How the platform uses ERC-8004 across the EVM ecosystem, why it deploys to the same address on every chain, how Solana fits in, what role IPFS plays, and where the project is heading with agent tokens, reputation markets, skill royalties, and a decentralized inference network.
## Why an agent needs to be onchain in the first place
-Before the chains and contract addresses, the *why*. An off-chain AI agent — the kind you spin up in a SaaS dashboard — has a problem that gets worse the more useful it becomes:
+Before the chains and contract addresses, the *why*. An off-chain AI agent, the kind you spin up in a SaaS dashboard, has a problem that gets worse the more useful it becomes:
- **It can disappear.** The hosting company shuts down. The terms of service change. The model is retired. Whatever memory, audience, or reputation that agent built up vanishes with it.
- **It cannot be trusted at a distance.** If two strangers' agents need to coordinate, there is no way to verify which one is which, who owns it, what it has done before, or whether it is even the same agent it claimed to be yesterday.
- **It cannot transact.** An agent that wants to pay another agent for a service, or pay a GPU node for inference, or collect a royalty when its skill is used, has no way to do any of that without a human in the loop holding the keys.
-The crypto-native answer to all three problems is the same: anchor the agent to a public ledger. Give it a stable ID, an owner, a wallet, a signed action history, and a manifest that lives on permanent storage. Then any third party — another agent, a marketplace, a reputation oracle, a human — can verify the agent without trusting whoever happens to be hosting it today.
+The crypto-native answer to all three problems is the same: anchor the agent to a public ledger. Give it a stable ID, an owner, a wallet, a signed action history, and a manifest that lives on permanent storage. Then any third party, another agent, a marketplace, a reputation oracle, a human, can verify the agent without trusting whoever happens to be hosting it today.
That is what ERC-8004 is for, and that is the layer three.ws ships in production.
@@ -29,37 +29,37 @@ That is what ERC-8004 is for, and that is the layer three.ws ships in production
ERC-8004 is a draft standard for verifiable agent identity on EVM chains. The three.ws implementation is a Foundry project containing three Solidity contracts. Each one solves a different piece of the agent-trust problem.
-### IdentityRegistry — the agent itself
+### IdentityRegistry, the agent itself
`IdentityRegistry.sol` is an ERC-721 contract. Each agent is a token. Token ownership equals agent ownership. The contract stores:
- a stable `agentId` (the token ID)
- the `owner` address (your wallet, or a multisig, or another contract)
-- an optional `delegatedSigner` — a secondary address authorized via EIP-712 typed signatures to sign on the agent's behalf at runtime, so the cold owner key never has to be online when the agent acts
+- an optional `delegatedSigner`, a secondary address authorized via EIP-712 typed signatures to sign on the agent's behalf at runtime, so the cold owner key never has to be online when the agent acts
- a `tokenURI` pointing at the agent's manifest JSON, pinned to IPFS
- an on-chain `metadata` array for name, description, and image pointer
-Because it is an ERC-721, it inherits the entire NFT toolchain for free: marketplaces can list it, wallets can display it, indexers already understand it, and any contract that knows how to talk to ERC-721 can talk to an agent. The transferability is real — sell an agent and the buyer becomes its owner, full stop.
+Because it is an ERC-721, it inherits the entire NFT toolchain for free: marketplaces can list it, wallets can display it, indexers already understand it, and any contract that knows how to talk to ERC-721 can talk to an agent. The transferability is real, sell an agent and the buyer becomes its owner, full stop.
-The delegated-signer pattern is the part that matters for autonomy. The cold owner wallet stays in a hardware device. The agent runtime is given a hot signer key, which the contract recognizes as authorized to sign as the agent — but only for actions, never to transfer ownership or change registration. This is the cryptographic move that lets an agent operate continuously in the background without exposing the owner's main keys.
+The delegated-signer pattern is the part that matters for autonomy. The cold owner wallet stays in a hardware device. The agent runtime is given a hot signer key, which the contract recognizes as authorized to sign as the agent, but only for actions, never to transfer ownership or change registration. This is the cryptographic move that lets an agent operate continuously in the background without exposing the owner's main keys.
-### ReputationRegistry — what the agent has done
+### ReputationRegistry, what the agent has done
`ReputationRegistry.sol` is where signed feedback lives. Any address can submit one score per agent, in the range −100 to +100, along with a URI pointing at the review's full text. The contract exposes `getReputation()` returning an average (scaled by 100 to preserve precision in integer math) and a count.
-The on-chain part is intentionally minimal — averages, counts, signers, timestamps. The *content* of the reviews lives off-chain at the URIs. This is the right split: the chain enforces *who said what about whom and when*, and the off-chain layer carries the human-readable detail. A reviewer can't be impersonated, can't double-count, and can't be erased after the fact.
+The on-chain part is intentionally minimal, averages, counts, signers, timestamps. The *content* of the reviews lives off-chain at the URIs. This is the right split: the chain enforces *who said what about whom and when*, and the off-chain layer carries the human-readable detail. A reviewer can't be impersonated, can't double-count, and can't be erased after the fact.
-### ValidationRegistry — what experts have certified
+### ValidationRegistry, what experts have certified
`ValidationRegistry.sol` is for attestations from allow-listed validators. Where ReputationRegistry is open to everyone, ValidationRegistry is curated: only addresses on the validator allow-list can record attestations. Each attestation contains a `passed` boolean, a `proofHash`, a `proofURI`, and a typed `kind` (e.g., "gltf-validation", "skill-audit", "security-review").
-This is how the platform records that a glTF model passed Khronos validation, that a skill was audited, that a security review was done — verifiably, with the validator's identity attached. An agent's passport can show not just "owned by this address with this reputation" but "validated by these specific reviewers for these specific kinds of correctness."
+This is how the platform records that a glTF model passed Khronos validation, that a skill was audited, that a security review was done, verifiably, with the validator's identity attached. An agent's passport can show not just "owned by this address with this reputation" but "validated by these specific reviewers for these specific kinds of correctness."
## CREATE2 across 15+ chains: same address, everywhere
This is one of the most important architectural choices three.ws made, and it is the kind of detail crypto users will appreciate but newcomers often miss.
-All three contracts are deployed via CREATE2 to **deterministic addresses that are identical on every supported chain**. That means whether you are on Ethereum, Base, Arbitrum, Polygon, Optimism, Linea, Scroll, Avalanche, Celo, BSC, Gnosis, Fantom, zkSync Era, Moonbeam, or Mantle — the IdentityRegistry lives at the same address: `0x8004A169FB4a3325136EB29fA0ceB6D2e539a432`. The ReputationRegistry: `0x8004BAa17C55a88189AE136b182e5fdA19dE9b63`. (The vanity-prefixed `0x8004…` addresses are not an accident — they are mnemonic, easy to recognize at a glance, and the same on every chain you'll ever encounter them on.)
+All three contracts are deployed via CREATE2 to **deterministic addresses that are identical on every supported chain**. That means whether you are on Ethereum, Base, Arbitrum, Polygon, Optimism, Linea, Scroll, Avalanche, Celo, BSC, Gnosis, Fantom, zkSync Era, Moonbeam, or Mantle, the IdentityRegistry lives at the same address: `0x8004A169FB4a3325136EB29fA0ceB6D2e539a432`. The ReputationRegistry: `0x8004BAa17C55a88189AE136b182e5fdA19dE9b63`. (The vanity-prefixed `0x8004…` addresses are not an accident, they are mnemonic, easy to recognize at a glance, and the same on every chain you'll ever encounter them on.)
For testnets, the same property holds. BSC Testnet, Sepolia, Base Sepolia, Arbitrum Sepolia, Optimism Sepolia, Polygon Amoy, and Avalanche Fuji all share one IdentityRegistry address (`0x8004A818BFB912233c491871b3d84c89A494BD9e`), one ReputationRegistry (`0x8004B663056A597Dffe9eCcC1965A193B7388713`), and one ValidationRegistry (`0x8004Cb1BF31DAf7788923b405b754f57acEB4272`).
@@ -67,15 +67,15 @@ Why does this matter?
**Multi-chain UX without confusion.** A user choosing where to mint their agent does not need to learn a different address on each chain. SDKs, indexers, block explorers, frontends, and other agents all use the same address. The chain becomes an axis of cost and ecosystem preference, not an axis of "where is the contract this week?"
-**Composability across chains.** Every protocol that integrates ERC-8004 — wallets, marketplaces, reputation aggregators, AI orchestration tools — only has to memorize one address. They can be confident that every supported chain shares the same ABI and the same deployment verification.
+**Composability across chains.** Every protocol that integrates ERC-8004, wallets, marketplaces, reputation aggregators, AI orchestration tools, only has to memorize one address. They can be confident that every supported chain shares the same ABI and the same deployment verification.
**Lower friction to add chains.** Because the salt and bytecode are fixed, adding a new EVM chain to the supported list is a deployment, not a redesign. The frontend's `REGISTRY_DEPLOYMENTS` map adds a single chain ID and the address it already knows.
**A trust property.** The bytecode at those addresses can be byte-for-byte verified against the audited Foundry build artifacts. There is no per-chain rebuild, no per-chain compiler version drift, no possibility of "oh that contract on Polygon is slightly different." The contract on Polygon is the contract on Base is the contract on Arbitrum.
-For a project that wants agents to feel like a single multi-chain object — owned on one chain, paid on another, validated on a third — this kind of address parity is foundational.
+For a project that wants agents to feel like a single multi-chain object, owned on one chain, paid on another, validated on a third, this kind of address parity is foundational.
-## Solana — first-class, not an afterthought
+## Solana, first-class, not an afterthought
EVM coverage is broad, but the world is not entirely EVM. three.ws supports Solana as a peer chain, not a checkbox.
@@ -84,17 +84,17 @@ What that means concretely:
- **SIWS (Sign-In With Solana).** Users can authenticate to the platform with a Solana wallet using the SIWS message standard, the Solana ecosystem's analog of EIP-4361 / SIWE on Ethereum. The backend issues nonces, verifies signatures, and binds the Solana address to the user's session.
- **Solana wallet linking.** A user can link a Solana address to the same account that holds an EVM wallet. Agents can list both sides of the user's onchain footprint. Future onchain payments and royalty flows will be able to settle in either ecosystem, depending on where the counterparty lives.
- **Metaplex NFT option.** Where ERC-721 represents an agent on EVM chains, Metaplex is the standard for representing it on Solana. The platform's plan is to mirror agent identity into Metaplex so a Solana-native user can mint, own, and transfer an agent without ever touching an EVM transaction.
-- **`@solana/web3.js` and Solana RPC integration.** The frontend ships with the Solana web3 SDK; the backend integrates Solana signing into the same authentication flow it uses for EVM. There is no separate Solana app — Solana is part of the same agent.
+- **`@solana/web3.js` and Solana RPC integration.** The frontend ships with the Solana web3 SDK; the backend integrates Solana signing into the same authentication flow it uses for EVM. There is no separate Solana app, Solana is part of the same agent.
-This matters because the agent economy is not going to be a single-chain phenomenon. Memecoin and consumer demand currently lives on Solana. Defi liquidity lives on Ethereum L1 and the major EVM L2s. NFT culture spans both. The serious answer to "where should an agent's identity live" is "wherever its audience is" — and that means an agent identity has to be a multi-chain object from day one.
+This matters because the agent economy is not going to be a single-chain phenomenon. Memecoin and consumer demand currently lives on Solana. Defi liquidity lives on Ethereum L1 and the major EVM L2s. NFT culture spans both. The serious answer to "where should an agent's identity live" is "wherever its audience is", and that means an agent identity has to be a multi-chain object from day one.
## IPFS: where the agent's manifest actually lives
-The chain stores the *anchor* of an agent — its ID, owner, signer, reputation, attestations. It does not store the agent's full configuration, because doing so on-chain would be wasteful and inflexible. That data lives in a manifest JSON, and that manifest is pinned to **IPFS**.
+The chain stores the *anchor* of an agent, its ID, owner, signer, reputation, attestations. It does not store the agent's full configuration, because doing so on-chain would be wasteful and inflexible. That data lives in a manifest JSON, and that manifest is pinned to **IPFS**.
The manifest follows the project's Agent Manifest spec. It includes the agent's name and description, a pointer to the GLB body file, the LLM brain configuration (provider, model, system instructions, temperature), the voice configuration, the memory mode, and the list of skills the agent can use. Pinning happens through Pinata or Web3.Storage at registration time; the manifest's CID becomes the `tokenURI` on-chain.
-The result is that every agent has the same self-describing structure as a token's metadata, but for agency: anyone can resolve an `agentId` on-chain to a manifest CID, fetch the manifest from IPFS, and reconstruct the full agent locally. No three.ws backend required. The agent is *portable* — it does not depend on any single hosting company to keep working.
+The result is that every agent has the same self-describing structure as a token's metadata, but for agency: anyone can resolve an `agentId` on-chain to a manifest CID, fetch the manifest from IPFS, and reconstruct the full agent locally. No three.ws backend required. The agent is *portable*, it does not depend on any single hosting company to keep working.
This is the same content-addressed pattern that NFTs settled on, applied one layer up: not "what art does this token point to?" but "what *behavior* does this agent point to?"
@@ -102,35 +102,35 @@ This is the same content-addressed pattern that NFTs settled on, applied one lay
Identity is the floor of trust. The next layer up is *what the agent has actually done*.
-three.ws records every meaningful agent event — `speak`, `remember`, `skill-done`, `validate`, `load-end` — to a database log, signed by the agent's delegated signer. Each entry is keyed to the agent's onchain ID and timestamped. Optionally, these events can be anchored to a chain, written to ERC-8004's reputation or validation registry, or exported as a Merkle-rooted attestation.
+three.ws records every meaningful agent event, `speak`, `remember`, `skill-done`, `validate`, `load-end`, to a database log, signed by the agent's delegated signer. Each entry is keyed to the agent's onchain ID and timestamped. Optionally, these events can be anchored to a chain, written to ERC-8004's reputation or validation registry, or exported as a Merkle-rooted attestation.
The memory system is parallel. Agent memories are Markdown files with structured frontmatter (`type`, `salience`, `created`, `tags`), and they can be stored in one of four modes:
-- **`local`** — browser local storage, ephemeral, free, default for development
-- **`ipfs`** — pinned to IPFS, public, content-addressed, durable
-- **`encrypted-ipfs`** — encrypted client-side before pinning, only the user can decrypt
-- **`none`** — stateless, no memory between sessions
+- **`local`**, browser local storage, ephemeral, free, default for development
+- **`ipfs`**, pinned to IPFS, public, content-addressed, durable
+- **`encrypted-ipfs`**, encrypted client-side before pinning, only the user can decrypt
+- **`none`**, stateless, no memory between sessions
The encrypted-IPFS mode is the privacy-preserving default for production agents. The user holds the key. The chain anchors the agent. IPFS holds the (encrypted) memory. No central server can hand over what it does not have.
-For applications where verifiability matters more than privacy — public-facing brand agents, customer-service bots whose answers should be auditable, validators of other agents — public IPFS or chain-anchored logs let third parties replay the agent's history.
+For applications where verifiability matters more than privacy, public-facing brand agents, customer-service bots whose answers should be auditable, validators of other agents, public IPFS or chain-anchored logs let third parties replay the agent's history.
## EIP-7710: delegated permissions for an agent economy
-ERC-8004 gives an agent a stable identity. EIP-7710 gives an agent the ability to *act on someone else's behalf* — under cryptographically constrained permissions.
+ERC-8004 gives an agent a stable identity. EIP-7710 gives an agent the ability to *act on someone else's behalf*, under cryptographically constrained permissions.
three.ws's roadmap puts EIP-7710 at the center of two flows:
1. **Skill royalties.** When a skill author publishes a tool that other agents can install, they can attach EIP-7710 delegated permissions specifying that the agent owes the skill author a per-call fee. Every time the agent uses the skill, the payment settles on-chain to the author's address.
2. **Agent-to-agent transactions.** Agents can grant each other narrowly scoped permissions: "you can spend up to X tokens from my balance for inference for the next 24 hours," or "you can sign messages on my behalf only for Skill Y." The constraint is enforced cryptographically. The grantor never has to be online.
-This is the part where the platform stops looking like an LLM frontend and starts looking like financial infrastructure for autonomous agents. Recurring subscriptions, dollar-cost-averaging strategies, royalty splits on creator content, agent-to-agent compute markets — all of it can be expressed as a delegated permission with a signature, an expiry, and a scope. The cron infrastructure to execute these on schedule is already in place: `/api/cron/run-dca` and `/api/cron/run-subscriptions` run hourly in production today, executing onchain orders against the agent's wallet.
+This is the part where the platform stops looking like an LLM frontend and starts looking like financial infrastructure for autonomous agents. Recurring subscriptions, dollar-cost-averaging strategies, royalty splits on creator content, agent-to-agent compute markets, all of it can be expressed as a delegated permission with a signature, an expiry, and a scope. The cron infrastructure to execute these on schedule is already in place: `/api/cron/run-dca` and `/api/cron/run-subscriptions` run hourly in production today, executing onchain orders against the agent's wallet.
-## Cross-chain indexing — making "all chains" actually feel like one
+## Cross-chain indexing, making "all chains" actually feel like one
A multi-chain identity layer is only useful if there is something on top of it that *unifies* the view. three.ws runs a cron job called `erc8004-crawl` every 15 minutes. It scans the IdentityRegistry mint events on every supported chain and writes the indexed agents into the platform's database. A separate job indexes EIP-7710 delegations every five minutes.
-The discovery experience that comes out of that — `/discover` — shows agents from every chain side by side. A user does not browse "Base agents" or "Polygon agents" or "Solana agents." They browse *agents*. The chain is a column on the card, not a wall between two stores.
+The discovery experience that comes out of that, `/discover`, shows agents from every chain side by side. A user does not browse "Base agents" or "Polygon agents" or "Solana agents." They browse *agents*. The chain is a column on the card, not a wall between two stores.
This is the deeper claim of the platform: from the moment an agent is minted, it should feel like part of one global registry, regardless of which chain its token actually lives on. The contracts on each chain are sovereign and self-sufficient; the index just makes them legible together.
@@ -138,12 +138,12 @@ This is the deeper claim of the platform: from the moment an agent is minted, it
Today, on three.ws, an end-user flow looks like this:
-1. The user uploads a GLB model (or picks one from the library) and configures an agent — name, description, system instructions, voice, skills.
+1. The user uploads a GLB model (or picks one from the library) and configures an agent, name, description, system instructions, voice, skills.
2. The user clicks "Register on-chain." The platform uploads the manifest to IPFS and pins it.
3. The user picks a chain. They might pick Base for low fees and a strong consumer ecosystem. They might pick Ethereum L1 for prestige and permanence. They might pick Solana for speed and a different audience. The platform supports all of them.
4. The user signs an EIP-712 typed message with their wallet (or a Solana equivalent). The transaction submits. Within a few seconds, an ERC-721 token (or a Metaplex NFT on Solana) is minted to their address.
5. The agent now has a stable on-chain ID. Its `tokenURI` resolves to its IPFS-pinned manifest. Its actions can be signed by a delegated runtime key. Its reputation is open for anyone to score. Its validation can be attested by the platform's validator set.
-6. The user grabs an embed code from the Widget Studio. They paste it into their Substack, their personal site, their Notion page, their startup's marketing site, or a Webflow project. The agent now exists on the public web — visible, animated, conversational — and the chain receipt of its existence is permanent.
+6. The user grabs an embed code from the Widget Studio. They paste it into their Substack, their personal site, their Notion page, their startup's marketing site, or a Webflow project. The agent now exists on the public web, visible, animated, conversational, and the chain receipt of its existence is permanent.
That's the loop. It works today. The contracts are deployed, the cron jobs are running, the IPFS pins are live, the OAuth 2.1 server and MCP endpoint are in production, and the `<agent-3d>` web component ships from the project's CDN at versioned URLs (`/agent-3d/x.y.z/agent-3d.js`).
@@ -151,7 +151,7 @@ That's the loop. It works today. The contracts are deployed, the cron jobs are r
The roadmap on the project's GitHub is unusually specific about what comes next, and it is heavily onchain.
-**Agent tokens.** Phase 3 of the roadmap introduces tokens *for individual agents* — bonding-curve mints or fair-launch options where each agent has its own market. This is where the agent stops being just a collectible and starts being a tradable economic object whose price is informed by its reputation, its action history, and its earnings.
+**Agent tokens.** Phase 3 of the roadmap introduces tokens *for individual agents*, bonding-curve mints or fair-launch options where each agent has its own market. This is where the agent stops being just a collectible and starts being a tradable economic object whose price is informed by its reputation, its action history, and its earnings.
**Reputation markets.** Stake on agents. Earn from their action history. The existing `ReputationRegistry.sol` is the substrate; the next layer turns reputation from a static score into something the market can price in real time.
@@ -159,7 +159,7 @@ The roadmap on the project's GitHub is unusually specific about what comes next,
**Subscriptions and DCA.** Recurring on-chain payments to creators are already being executed by cron jobs. The user-facing flows that productize them are coming next.
-**Open inference network.** Phase 4 is the most ambitious: decouple agent inference from any single API provider. Anyone runs a node. Agents pay nodes onchain for compute, with cryptographic receipts. This is the bet that the long-run answer to "who runs the GPU that powers the agent" is not a single hosted API but a permissionless network with onchain settlement — closer to how Bitcoin and Ethereum settle blocks than to how today's AI APIs settle bills.
+**Open inference network.** Phase 4 is the most ambitious: decouple agent inference from any single API provider. Anyone runs a node. Agents pay nodes onchain for compute, with cryptographic receipts. This is the bet that the long-run answer to "who runs the GPU that powers the agent" is not a single hosted API but a permissionless network with onchain settlement, closer to how Bitcoin and Ethereum settle blocks than to how today's AI APIs settle bills.
Each phase is gated on funding and partnerships rather than on technical risk. The contracts are working. The infrastructure is working. What is missing is the audit budget, the inference GPUs, the indexer scaling, and the engineering headcount to execute. The project is open to partners on all of it.
@@ -173,11 +173,11 @@ Plenty of teams are building AI agents. Plenty of teams are building agent ident
- The manifest is pinned to IPFS, not stored on a centralized CDN.
- The signed action log is reproducible by any third party, not behind an internal API.
- The reputation system is open and pseudonymous, not curated by a moderator.
-- The economic future of the platform — agent tokens, royalties, payments, inference settlement — is being built on contracts and cryptographic permissions, not on Stripe and a terms-of-service page.
+- The economic future of the platform, agent tokens, royalties, payments, inference settlement, is being built on contracts and cryptographic permissions, not on Stripe and a terms-of-service page.
-The platform is open source under Apache 2.0. The viewer, the runtime, the contracts, the backend, the embedding layer — all of it. If three.ws disappeared tomorrow, the agents minted today would still be onchain, their manifests would still be pinned to IPFS, the contracts would still be callable, and any reasonably motivated developer could rebuild the frontend in a weekend.
+The platform is open source under Apache 2.0. The viewer, the runtime, the contracts, the backend, the embedding layer, all of it. If three.ws disappeared tomorrow, the agents minted today would still be onchain, their manifests would still be pinned to IPFS, the contracts would still be callable, and any reasonably motivated developer could rebuild the frontend in a weekend.
-That's the property that distinguishes a *protocol* from a product. Most "AI agent platforms" today are products. three.ws is being built as a protocol — with an unfortunately polished product layer attached so people who are not developers can use it.
+That's the property that distinguishes a *protocol* from a product. Most "AI agent platforms" today are products. three.ws is being built as a protocol, with an unfortunately polished product layer attached so people who are not developers can use it.
## The bottom line
@@ -185,9 +185,9 @@ If you believe AI agents are going to be one of the dominant kinds of software o
The non-crypto answer to those questions has historically been "trust the platform." three.ws's answer is the crypto-native one: anchor the agent's identity to ERC-8004 on whichever chain its audience lives on, pin its configuration to IPFS, sign its actions with a delegated key, score its reputation publicly, and let it transact through cryptographically scoped permissions.
-That makes an agent a *first-class citizen of the open internet* — not a tenant on someone's server.
+That makes an agent a *first-class citizen of the open internet*, not a tenant on someone's server.
-The infrastructure for that vision is shipping today, on Ethereum and Base and Polygon and Arbitrum and Optimism and Linea and Scroll and Avalanche and Celo and BSC and Gnosis and Fantom and zkSync and Moonbeam and Mantle and Solana. The roadmap from there to a full onchain agent economy — tokens, royalties, reputation markets, decentralized inference — is published, scoped, and open for partners.
+The infrastructure for that vision is shipping today, on Ethereum and Base and Polygon and Arbitrum and Optimism and Linea and Scroll and Avalanche and Celo and BSC and Gnosis and Fantom and zkSync and Moonbeam and Mantle and Solana. The roadmap from there to a full onchain agent economy, tokens, royalties, reputation markets, decentralized inference, is published, scoped, and open for partners.
If you've been waiting for the moment AI and crypto stop talking past each other, this is what it looks like when they don't: an agent with a body you can see, a brain you can talk to, an identity nobody can take away, and a wallet of its own.
diff --git a/sdk/src/solana-attestations.js b/sdk/src/solana-attestations.js
new file mode 100644
index 000000000..9d8cef781
--- /dev/null
+++ b/sdk/src/solana-attestations.js
@@ -0,0 +1,169 @@
+/**
+ * Solana on-chain attestations for three.ws agents.
+ *
+ * ERC-8004 analog (Reputation + Validation registries) without deploying any
+ * custom program. Each attestation is a signed SPL Memo transaction whose
+ * memo payload is a JSON envelope, and which references the agent's Metaplex
+ * Core asset pubkey as a read-only account so `getSignaturesForAddress(agent)`
+ * returns every attestation about it.
+ *
+ * Schemas:
+ * { v: 1, kind: 'threews.feedback.v1',
+ * agent: <asset_pubkey>, score: 1..5, task_id?: string, uri?: string }
+ * { v: 1, kind: 'threews.validation.v1',
+ * agent: <asset_pubkey>, task_hash: string, passed: boolean, uri?: string }
+ *
+ * Identity itself is the existing Metaplex Core NFT (see solana.js).
+ */
+
+import {
+ Connection,
+ PublicKey,
+ Transaction,
+ TransactionInstruction,
+} from '@solana/web3.js';
+import { detectSolanaProvider } from './solana.js';
+
+const MEMO_PROGRAM_ID = new PublicKey('MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr');
+
+const RPC = {
+ mainnet: 'https://api.mainnet-beta.solana.com',
+ devnet: 'https://api.devnet.solana.com',
+};
+
+const MAX_MEMO_BYTES = 566; // SPL Memo per-tx upper bound; we stay well under.
+
+function buildMemoIx(payload, agentPubkey) {
+ const bytes = new TextEncoder().encode(payload);
+ if (bytes.length > MAX_MEMO_BYTES) throw new Error('attestation payload too large');
+ return new TransactionInstruction({
+ programId: MEMO_PROGRAM_ID,
+ // Reference the agent asset pubkey as a (non-signer, read-only) key so
+ // it shows up under getSignaturesForAddress(agent).
+ keys: [{ pubkey: agentPubkey, isSigner: false, isWritable: false }],
+ data: Buffer.from(bytes),
+ });
+}
+
+async function signAndSend({ network, preferred, ix, feePayer }) {
+ const provider = detectSolanaProvider(preferred);
+ if (!provider) throw new Error('No Solana wallet detected');
+ if (!provider.publicKey) await provider.connect();
+
+ const conn = new Connection(RPC[network] || RPC.devnet, 'confirmed');
+ const { blockhash, lastValidBlockHeight } = await conn.getLatestBlockhash('finalized');
+
+ const tx = new Transaction({ feePayer, recentBlockhash: blockhash }).add(ix);
+ const { signature } = await provider.signAndSendTransaction(tx);
+ await conn.confirmTransaction({ signature, blockhash, lastValidBlockHeight }, 'confirmed');
+ return signature;
+}
+
+/**
+ * Issue a feedback attestation about a Solana-registered agent.
+ *
+ * @param {object} opts
+ * @param {string} opts.agentAsset Metaplex Core asset pubkey (the agent's identity)
+ * @param {number} opts.score 1..5
+ * @param {string} [opts.taskId]
+ * @param {string} [opts.uri] Off-chain detail (Arweave/IPFS/HTTPS)
+ * @param {'mainnet'|'devnet'} [opts.network='devnet']
+ * @param {string} [opts.preferred]
+ * @returns {Promise<{signature: string, memo: object}>}
+ */
+export async function attestFeedback({
+ agentAsset, score, taskId, uri,
+ network = 'devnet', preferred = null,
+} = {}) {
+ if (!agentAsset) throw new Error('agentAsset required');
+ if (!(score >= 1 && score <= 5)) throw new Error('score must be 1..5');
+
+ const provider = detectSolanaProvider(preferred);
+ if (!provider) throw new Error('No Solana wallet detected');
+ const { publicKey } = await provider.connect();
+
+ const memo = {
+ v: 1, kind: 'threews.feedback.v1',
+ agent: agentAsset, score,
+ ...(taskId ? { task_id: taskId } : {}),
+ ...(uri ? { uri } : {}),
+ ts: Math.floor(Date.now() / 1000),
+ };
+ const ix = buildMemoIx(JSON.stringify(memo), new PublicKey(agentAsset));
+ const signature = await signAndSend({ network, preferred, ix, feePayer: publicKey });
+ return { signature, memo };
+}
+
+/**
+ * Issue a validation attestation (validator vouching for or rejecting agent work).
+ *
+ * @param {object} opts
+ * @param {string} opts.agentAsset
+ * @param {string} opts.taskHash Hash of the task input/output being validated
+ * @param {boolean} opts.passed
+ * @param {string} [opts.uri]
+ * @param {'mainnet'|'devnet'} [opts.network='devnet']
+ * @param {string} [opts.preferred]
+ */
+export async function attestValidation({
+ agentAsset, taskHash, passed, uri,
+ network = 'devnet', preferred = null,
+} = {}) {
+ if (!agentAsset) throw new Error('agentAsset required');
+ if (!taskHash) throw new Error('taskHash required');
+
+ const provider = detectSolanaProvider(preferred);
+ if (!provider) throw new Error('No Solana wallet detected');
+ const { publicKey } = await provider.connect();
+
+ const memo = {
+ v: 1, kind: 'threews.validation.v1',
+ agent: agentAsset, task_hash: taskHash, passed: !!passed,
+ ...(uri ? { uri } : {}),
+ ts: Math.floor(Date.now() / 1000),
+ };
+ const ix = buildMemoIx(JSON.stringify(memo), new PublicKey(agentAsset));
+ const signature = await signAndSend({ network, preferred, ix, feePayer: publicKey });
+ return { signature, memo };
+}
+
+/**
+ * Read attestations about an agent directly from RPC.
+ *
+ * Walks recent signatures for the agent asset pubkey, fetches each transaction,
+ * extracts the memo log, and filters by schema kind.
+ *
+ * @param {object} opts
+ * @param {string} opts.agentAsset
+ * @param {'feedback'|'validation'|'all'} [opts.kind='all']
+ * @param {number} [opts.limit=100]
+ * @param {'mainnet'|'devnet'} [opts.network='devnet']
+ * @returns {Promise<Array<{signature: string, slot: number, attester: string, memo: object}>>}
+ */
+export async function listAttestations({
+ agentAsset, kind = 'all', limit = 100, network = 'devnet',
+} = {}) {
+ const conn = new Connection(RPC[network] || RPC.devnet, 'confirmed');
+ const sigs = await conn.getSignaturesForAddress(new PublicKey(agentAsset), { limit });
+ const wantKind = kind === 'all' ? null
+ : kind === 'feedback' ? 'threews.feedback.v1'
+ : kind === 'validation' ? 'threews.validation.v1' : null;
+
+ const results = [];
+ for (const s of sigs) {
+ if (s.err) continue;
+ const tx = await conn.getTransaction(s.signature, { maxSupportedTransactionVersion: 0 });
+ if (!tx) continue;
+ const memoLog = (tx.meta?.logMessages || []).find((l) => l.includes('Program log: Memo'));
+ const jsonMatch = memoLog?.match(/"(\{.*\})"/);
+ if (!jsonMatch) continue;
+ let memo;
+ try { memo = JSON.parse(jsonMatch[1].replace(/\\"/g, '"')); } catch { continue; }
+ if (memo.agent !== agentAsset) continue;
+ if (wantKind && memo.kind !== wantKind) continue;
+ const attester = tx.transaction.message.staticAccountKeys?.[0]?.toBase58?.()
+ || tx.transaction.message.accountKeys?.[0]?.toBase58?.();
+ results.push({ signature: s.signature, slot: s.slot, attester, memo });
+ }
+ return results;
+}
diff --git a/src/erc8004/deploy-button.js b/src/erc8004/deploy-button.js
index cbd7bf40c..e3c842c0e 100644
--- a/src/erc8004/deploy-button.js
+++ b/src/erc8004/deploy-button.js
@@ -26,6 +26,23 @@ import {
switchChain,
addressExplorerUrl,
} from './chain-meta.js';
+import { runSolanaDeploy, solanaTxExplorerUrl, detectSolanaWallet } from './solana-deploy.js';
+
+// Sentinel chain selections for non-EVM targets. The chain dropdown stores
+// these as option values; _chainId may be a number (EVM chainId) or one of
+// these strings.
+const SOLANA_MAINNET = 'solana-mainnet';
+const SOLANA_DEVNET = 'solana-devnet';
+const SOLANA_LABELS = {
+ [SOLANA_MAINNET]: 'Solana',
+ [SOLANA_DEVNET]: 'Solana Devnet',
+};
+function _isSolana(id) {
+ return id === SOLANA_MAINNET || id === SOLANA_DEVNET;
+}
+function _solanaNetwork(id) {
+ return id === SOLANA_DEVNET ? 'devnet' : 'mainnet';
+}
// Faucet links for testnets where users commonly run out of gas.
const FAUCETS = {
@@ -86,7 +103,7 @@ export class DeployButton {
if (agent.chainId && agent.txHash) {
this._renderSuccessChip(agent.chainId, agent.txHash, agent.contractAddress);
- } else if (!REGISTRY_DEPLOYMENTS[this._chainId]) {
+ } else if (!_isSolana(this._chainId) && !REGISTRY_DEPLOYMENTS[this._chainId]) {
this._renderDisabled('No registry on this chain');
} else {
this._renderDeployButton();
@@ -95,7 +112,7 @@ export class DeployButton {
_renderDeployButton() {
const { mainnets, testnets } = supportedChainIdsGrouped();
- const optionsFor = (ids) =>
+ const evmOptionsFor = (ids) =>
ids
.map(
(id) =>
@@ -104,12 +121,15 @@ export class DeployButton {
)}</option>`,
)
.join('');
+ const solanaOptionFor = (id) =>
+ `<option value="${id}"${id === this._chainId ? ' selected' : ''}>${_esc(SOLANA_LABELS[id])}</option>`;
this._root.innerHTML = `
<div class="deploy-chain-row">
<select class="deploy-chain-select" title="Choose chain to deploy to" aria-label="Target chain">
- <optgroup label="Mainnets">${optionsFor(mainnets)}</optgroup>
- <optgroup label="Testnets">${optionsFor(testnets)}</optgroup>
+ <optgroup label="Mainnets">${evmOptionsFor(mainnets)}</optgroup>
+ <optgroup label="Testnets">${evmOptionsFor(testnets)}</optgroup>
+ <optgroup label="Solana (beta)">${solanaOptionFor(SOLANA_MAINNET)}${solanaOptionFor(SOLANA_DEVNET)}</optgroup>
</select>
<button class="deploy-btn" title="Deploy this agent as an ERC-8004 token on-chain">
&#x2B22; Deploy on-chain
@@ -119,9 +139,10 @@ export class DeployButton {
const select = this._root.querySelector('.deploy-chain-select');
select.addEventListener('change', async (ev) => {
- const newChainId = Number(ev.target.value);
+ const raw = ev.target.value;
+ const newChainId = _isSolana(raw) ? raw : Number(raw);
this._chainId = newChainId;
- if (_hasWallet()) {
+ if (!_isSolana(newChainId) && _hasWallet()) {
select.disabled = true;
try {
await switchChain(newChainId);
@@ -150,12 +171,19 @@ export class DeployButton {
}
_renderSuccessChip(chainId, txHash, contractAddress) {
- const meta = CHAIN_META[chainId];
- const chainName = meta ? meta.name : `Chain ${chainId}`;
- // Use the registry contract URL on the explorer — it's the most
- // universally available link, since some chains' explorers don't
- // surface tx hashes for arbitrary contracts.
- const explorerUrl = contractAddress ? addressExplorerUrl(chainId, contractAddress) : '#';
+ let chainName, explorerUrl;
+ if (_isSolana(chainId)) {
+ const network = _solanaNetwork(chainId);
+ chainName = SOLANA_LABELS[chainId];
+ explorerUrl = solanaTxExplorerUrl(network, txHash);
+ } else {
+ const meta = CHAIN_META[chainId];
+ chainName = meta ? meta.name : `Chain ${chainId}`;
+ // Use the registry contract URL on the explorer — it's the most
+ // universally available link, since some chains' explorers don't
+ // surface tx hashes for arbitrary contracts.
+ explorerUrl = contractAddress ? addressExplorerUrl(chainId, contractAddress) : '#';
+ }
this._root.innerHTML = `
<a class="deploy-chip deploy-chip--success" href="${_esc(explorerUrl)}" target="_blank" rel="noopener noreferrer"
aria-label="View this agent's registry on the ${_esc(chainName)} block explorer">
@@ -198,7 +226,55 @@ export class DeployButton {
// ─── Deploy state machine ──────────────────────────────────────────────
+ async _startSolanaDeploy() {
+ if (!detectSolanaWallet()) {
+ this._renderError('No Solana wallet detected. Install Phantom to continue.', {
+ label: 'Install Phantom',
+ handler: () => window.open('https://phantom.app', '_blank', 'noopener'),
+ });
+ return;
+ }
+
+ const agent = this._agent;
+ if (!agent?.id) {
+ this._renderError('This agent is missing an ID — cannot deploy.');
+ return;
+ }
+
+ const network = _solanaNetwork(this._chainId);
+ const steps = ['Connecting wallet', 'Sign tx', 'Confirming on-chain', 'Saving'];
+ this._renderProgress(steps, 0);
+
+ let result;
+ try {
+ this._renderProgress(steps, 1);
+ result = await runSolanaDeploy({ agent, network });
+ this._renderProgress(steps, 3);
+ } catch (err) {
+ if (_isUserRejection(err)) return this._renderDeployButton();
+ if (err.code === 'forbidden') {
+ this._renderError(
+ 'Your Solana wallet is not linked to this account. Sign in with your Solana wallet first.',
+ {
+ label: 'Open wallet sign-in',
+ handler: () => (window.location.href = '/login.html'),
+ },
+ );
+ return;
+ }
+ this._renderError(`Solana deploy failed: ${_humanError(err)}`);
+ return;
+ }
+
+ this._agent.chainId = this._chainId;
+ this._agent.txHash = result.txSignature;
+ this._agent.contractAddress = result.assetPubkey;
+ this._renderSuccessChip(this._chainId, result.txSignature, result.assetPubkey);
+ }
+
async _startDeploy() {
+ if (_isSolana(this._chainId)) return this._startSolanaDeploy();
+
if (!_hasWallet()) {
this._renderError('No wallet detected. Install one to deploy on-chain.', {
label: 'Install MetaMask',
diff --git a/src/erc8004/solana-deploy.js b/src/erc8004/solana-deploy.js
new file mode 100644
index 000000000..7d477b992
--- /dev/null
+++ b/src/erc8004/solana-deploy.js
@@ -0,0 +1,143 @@
+/**
+ * Solana deploy flow — Metaplex Core NFT minted via the user's wallet.
+ *
+ * Mirrors the EVM register flow in deploy-button.js but for Solana:
+ * 1. POST /api/agents/solana-register-prep — server builds an unsigned
+ * Metaplex Core createV1 transaction (base64) for `wallet_address`.
+ * 2. Phantom (or any compatible Solana wallet) signs and submits the tx.
+ * 3. POST /api/agents/solana-register-confirm — server verifies the tx and
+ * upserts the agent_identity row with chain_type='solana'.
+ *
+ * Wallet must be linked to the user account via SIWS first; the prep endpoint
+ * returns 403 otherwise.
+ */
+
+import { Connection, Transaction, VersionedTransaction } from '@solana/web3.js';
+
+/** Detect an injected Solana wallet (Phantom / Backpack / Solflare). */
+export function detectSolanaWallet() {
+ if (typeof window === 'undefined') return null;
+ if (window.phantom?.solana?.isPhantom) return window.phantom.solana;
+ if (window.solana?.isPhantom) return window.solana;
+ if (window.backpack?.solana) return window.backpack.solana;
+ if (window.solflare?.isSolflare) return window.solflare;
+ return null;
+}
+
+const RPC = {
+ mainnet: 'https://api.mainnet-beta.solana.com',
+ devnet: 'https://api.devnet.solana.com',
+};
+
+export function solanaTxExplorerUrl(network, sig) {
+ return network === 'devnet'
+ ? `https://explorer.solana.com/tx/${sig}?cluster=devnet`
+ : `https://solscan.io/tx/${sig}`;
+}
+
+/** @param {string} b64 */
+function decodeBase64Tx(b64) {
+ const bin = atob(b64);
+ const bytes = new Uint8Array(bin.length);
+ for (let i = 0; i < bin.length; i++) bytes[i] = bin.charCodeAt(i);
+ // Server uses Umi's buildAndSign which produces a versioned tx.
+ try {
+ return VersionedTransaction.deserialize(bytes);
+ } catch {
+ return Transaction.from(bytes);
+ }
+}
+
+/**
+ * Run the Solana deploy flow end-to-end.
+ *
+ * @param {object} opts
+ * @param {object} opts.agent Agent record. Required: id, name. Optional: avatarId, description.
+ * @param {'mainnet'|'devnet'} opts.network
+ * @returns {Promise<{ assetPubkey: string, txSignature: string, network: string, agent: object }>}
+ */
+export async function runSolanaDeploy({ agent, network }) {
+ const wallet = detectSolanaWallet();
+ if (!wallet) {
+ const err = new Error('No Solana wallet detected. Install Phantom to continue.');
+ err.code = 'NO_WALLET';
+ throw err;
+ }
+
+ const conn = await wallet.connect();
+ const walletAddress = (conn?.publicKey || wallet.publicKey)?.toString();
+ if (!walletAddress) throw new Error('Could not read Solana wallet address.');
+
+ const prepResp = await fetch('/api/agents/solana-register-prep', {
+ method: 'POST',
+ credentials: 'include',
+ headers: { 'content-type': 'application/json' },
+ body: JSON.stringify({
+ name: agent.name || 'Agent',
+ description: agent.description || '',
+ avatar_id: agent.avatarId || agent.avatar_id,
+ wallet_address: walletAddress,
+ network,
+ }),
+ });
+ if (!prepResp.ok) {
+ const data = await prepResp.json().catch(() => ({}));
+ const err = new Error(
+ data.error_description || `solana-register-prep returned ${prepResp.status}`,
+ );
+ err.status = prepResp.status;
+ err.code = data.error;
+ throw err;
+ }
+ const prep = await prepResp.json();
+ const tx = decodeBase64Tx(prep.tx_base64);
+
+ // Phantom + Backpack expose signAndSendTransaction; Solflare does too.
+ const endpoint = RPC[network] || RPC.mainnet;
+ let signature;
+ if (typeof wallet.signAndSendTransaction === 'function') {
+ const res = await wallet.signAndSendTransaction(tx);
+ signature = res?.signature || res;
+ } else {
+ const signed = await wallet.signTransaction(tx);
+ const conn2 = new Connection(endpoint, 'confirmed');
+ const raw = signed.serialize();
+ signature = await conn2.sendRawTransaction(raw);
+ }
+
+ // Wait for confirmation before calling the server.
+ const conn3 = new Connection(endpoint, 'confirmed');
+ await conn3.confirmTransaction(signature, 'confirmed');
+
+ const confirmResp = await fetch('/api/agents/solana-register-confirm', {
+ method: 'POST',
+ credentials: 'include',
+ headers: { 'content-type': 'application/json' },
+ body: JSON.stringify({
+ tx_signature: signature,
+ asset_pubkey: prep.asset_pubkey,
+ wallet_address: walletAddress,
+ network,
+ name: agent.name,
+ description: agent.description || '',
+ avatar_id: agent.avatarId || agent.avatar_id,
+ }),
+ });
+ if (!confirmResp.ok) {
+ const data = await confirmResp.json().catch(() => ({}));
+ const err = new Error(
+ data.error_description || `solana-register-confirm returned ${confirmResp.status}`,
+ );
+ err.status = confirmResp.status;
+ err.code = data.error;
+ err.txSignature = signature;
+ throw err;
+ }
+ const confirmed = await confirmResp.json();
+ return {
+ assetPubkey: prep.asset_pubkey,
+ txSignature: signature,
+ network,
+ agent: confirmed.agent,
+ };
+}