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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
docs(cli): point every install line at @three-ws/cli and release @three-ws/agents 0.1.1, since the unscoped three-ws name is blocked by npm
nirholas717e64cbd04a
diff --git a/docs/cli.md b/docs/cli.mdindex 322482692..5bbbab97d 100644--- a/docs/cli.md+++ b/docs/cli.md@@ -9,7 +9,7 @@ Requires Node.js 20.12 or newer.## Quick start```bash-npx three-ws setup+npx @three-ws/cli setup```Setup walks through three steps:@@ -35,13 +35,13 @@ Without `--financial`, tools that move funds are not granted, whatever the clien```bash# Only Cursor and VS Code, only the main server and the free 3D studio, no prompts-npx three-ws setup --clients cursor,vscode --servers three-ws-main,three-ws-studio --yes+npx @three-ws/cli setup --clients cursor,vscode --servers three-ws-main,three-ws-studio --yes# Project-scoped config: writes .mcp.json, .cursor/mcp.json, .vscode/mcp.json, .bob/mcp.json, .gemini/settings.json here-npx three-ws setup --project+npx @three-ws/cli setup --project# Print the config instead of writing any file-npx three-ws setup --clients print+npx @three-ws/cli setup --clients print```| Flag | Values |@@ -49,7 +49,7 @@ npx three-ws setup --clients print| `--clients` | `claude-code`, `claude-desktop`, `cursor`, `windsurf`, `vscode`, `bob`, `codex`, `gemini`, `hermes`, `grok-bot`, `print` || `--connector-key` | With `grok-bot`: mint a spend-free API key for Grok Bot's Bot secret || `--no-copy` | With `grok-bot`: do not copy the server URL to the clipboard |-| `--servers` | Server names from `npx three-ws mcp list --available` |+| `--servers` | Server names from `npx @three-ws/cli mcp list --available` || `--packages` | Also add stdio `@three-ws/*-mcp` packages || `--project` | Write project-scoped config in the current directory || `--proxy` | Route every server through the local proxy, so your tool choices apply in every client |@@ -60,8 +60,8 @@ npx three-ws setup --clients printGrok Bot is configured in xAI's cloud, so `setup` cannot write a file for it. `--clients grok-bot` runs the part the CLI can do, with no sign-in for the free studio:```bash-npx three-ws setup --client grok-bot-npx three-ws setup --client grok-bot --connector-key # key for your agents, never spends+npx @three-ws/cli setup --client grok-bot+npx @three-ws/cli setup --client grok-bot --connector-key # key for your agents, never spends```It prints the fields Grok Bot's custom MCP connector asks for (name `three-ws`, transport Streamable HTTP, server URL `https://three.ws/api/mcp-grok`, authentication None or API key), the one-line chat prompt that adds the same server, copies the URL to the clipboard where a clipboard tool exists, and verifies the public URL with a live `tools/list`. The command exits 1 if that verification fails. With `--connector-key` it signs in if needed (requesting `agents:write`), mints a `connector` preset key once through `POST /api/api-keys`, stores it in the credential file, and prints it for the Bot secret field. Revoke it any time on [Dashboard → API](/dashboard/api). The full Grok setup is in [three.ws for Grok](./grok.md) and the [Grok Bot guide](./grok-bot.md).@@ -96,13 +96,13 @@ Every client stores a server under the same name, which is also what `--servers`| `three-ws-pump-fun` | `https://three.ws/api/pump-fun-mcp` | None for reads || `three-ws-ibm` | `https://three.ws/api/ibm-mcp` | Sign-in or x402 |-`npx three-ws mcp list --available` prints the live list, which is the source of truth if this table and the directory ever disagree.+`npx @three-ws/cli mcp list --available` prints the live list, which is the source of truth if this table and the directory ever disagree.## Create an agent and launch its coin```bash-npx three-ws create "Nova" --description "A deep-space guide who explains orbital mechanics."-npx three-ws launch --agent <agent-id> --name "Nova" --symbol NOVA+npx @three-ws/cli create "Nova" --description "A deep-space guide who explains orbital mechanics."+npx @three-ws/cli launch --agent <agent-id> --name "Nova" --symbol NOVA````create` makes the agent on your account and prints its public page and the Solana wallet three.ws minted for it. Pass `--avatar <id>` to use an avatar you already own as its 3D body; otherwise give it a body on its page. A name that imitates an existing public agent is refused with the reason, so pick a distinct one.@@ -115,13 +115,13 @@ Every tool is labelled read, write or financial ([the catalog](/mcp-tools) shows```bash# See and change the tool selection interactively-npx three-ws tools+npx @three-ws/cli tools# Turn financial tools on for the main server only-npx three-ws tools --server three-ws-main --enable financial+npx @three-ws/cli tools --server three-ws-main --enable financial# Back to the default-npx three-ws tools --server three-ws-main --reset+npx @three-ws/cli tools --server three-ws-main --reset```The selection is enforced whichever way you signed in. With a browser sign-in, servers that need an account run through the local proxy (`three-ws proxy`), which also keeps your token fresh: `tools/list` returns only enabled tools, and a call to a disabled one is answered by the proxy with an error explaining how to enable it, without reaching the server. With an API key, the selection travels to the server in the `X-Three-Tools` header, and clients that support a tool allowlist get one written too. `--proxy` routes every server through the proxy regardless.@@ -154,15 +154,15 @@ The selection is enforced whichever way you signed in. With a browser sign-in, sName a client and the CLI does the whole setup without prompts: sign in, write the servers, verify them with a live `tools/list`.```bash-npx three-ws --claude # Claude Code, plus the three.ws skill-npx three-ws --cursor-npx three-ws --codex-npx three-ws --vscode-npx three-ws --windsurf-npx three-ws --gemini+npx @three-ws/cli --claude # Claude Code, plus the three.ws skill+npx @three-ws/cli --cursor+npx @three-ws/cli --codex+npx @three-ws/cli --vscode+npx @three-ws/cli --windsurf+npx @three-ws/cli --gemini```-`--bob` and `--hermes` work the same way. Combine flags to set up several clients at once (`npx three-ws --cursor --vscode`), and add `--project` for config in the current directory, `--device` over SSH, or `--key sk_live_...` for CI.+`--bob` and `--hermes` work the same way. Combine flags to set up several clients at once (`npx @three-ws/cli --cursor --vscode`), and add `--project` for config in the current directory, `--device` over SSH, or `--key sk_live_...` for CI.These flags write a launcher entry (`three-ws proxy <url>`) instead of a token. The OAuth token or API key stays in `~/.config/three-ws/credentials.json` (mode 600) and never appears in a client config file, so you can commit a project config safely. Running a command twice changes nothing the second time.@@ -216,7 +216,7 @@ Each script defines functions and calls `main` on its last line, so a download c## Check your setup```bash-npx three-ws doctor+npx @three-ws/cli doctor````doctor` finds a bad config before you do. It checks the Node version, the credential file and its permissions, that three.ws is reachable, that your sign-in is still valid (expired or revoked), each client's config (unparseable file, missing three.ws entry, a secret stored in plain text, a launcher missing from `PATH`), and a live `tools/list` for every configured server. Every problem comes with the command that fixes it. It exits 1 when anything fails, and `--json` prints the findings for scripts.@@ -224,9 +224,9 @@ npx three-ws doctor## Agents and teams```bash-npx three-ws agent status # each agent, its wallet address and SOL / USDC balance-npx three-ws team # your teams-npx three-ws team status <id-or-name>+npx @three-ws/cli agent status # each agent, its wallet address and SOL / USDC balance+npx @three-ws/cli team # your teams+npx @three-ws/cli team status <id-or-name>```Both are read-only.@@ -235,9 +235,9 @@ Global flags: `--json` for machine-readable output, `--origin <url>` (or `THREE_## Troubleshooting-- **A server returns 401.** The token is missing or expired. Run `npx three-ws login`, or `npx three-ws status` to see what the CLI has stored. Every 401 from a three.ws MCP server includes this hint in its body.-- **A client does not show the tools.** Restart it; most clients read their MCP config only at startup. `npx three-ws mcp list` confirms the entry was written.-- **Signing in over SSH.** Use `npx three-ws login --device` and approve the code from any browser.+- **A server returns 401.** The token is missing or expired. Run `npx @three-ws/cli login`, or `npx @three-ws/cli status` to see what the CLI has stored. Every 401 from a three.ws MCP server includes this hint in its body.+- **A client does not show the tools.** Restart it; most clients read their MCP config only at startup. `npx @three-ws/cli mcp list` confirms the entry was written.+- **Signing in over SSH.** Use `npx @three-ws/cli login --device` and approve the code from any browser.- **Revoking access.** Every signed-in client and CLI session is listed under [Dashboard → Settings → Connected apps](/dashboard/settings).## Relateddiff --git a/packages/agents-sdk/package.json b/packages/agents-sdk/package.jsonindex c8e22ee3a..f8185be7d 100644--- a/packages/agents-sdk/package.json+++ b/packages/agents-sdk/package.json@@ -1,6 +1,6 @@{"name": "@three-ws/agents",- "version": "0.1.0",+ "version": "0.1.1","description": "TypeScript SDK for the three.ws v1 Agents API: create, start and chat with AI agents, run goals, automate, and trade from Solana agent wallets.","type": "module","main": "./dist/index.cjs",diff --git a/packages/three-ws-cli/README.md b/packages/three-ws-cli/README.mdindex 5ae854b50..57b97b587 100644--- a/packages/three-ws-cli/README.md+++ b/packages/three-ws-cli/README.md@@ -3,7 +3,7 @@Connect any MCP client to [three.ws](https://three.ws) in one command. `three-ws` signs you in, writes the hosted three.ws MCP servers into every client it finds (Claude Code, Claude Desktop, Cursor, Windsurf, VS Code, IBM Bob, Codex, Gemini CLI, Hermes), prints the connector fields for Grok Bot, and verifies each one with a live `tools/list`.```bash-npx three-ws setup+npx @three-ws/cli setup```Requires Node.js 20.12 or newer.@@ -17,7 +17,7 @@ Using one client that supports remote connectors? [three.ws/connect](https://thr## One command per client```bash-npx three-ws --claude # also --cursor --codex --vscode --windsurf --gemini --bob --hermes+npx @three-ws/cli --claude # also --cursor --codex --vscode --windsurf --gemini --bob --hermes```Signs in, writes the servers, verifies them, and installs the three.ws skill for Claude Code, with no prompts. The config gets a `three-ws proxy` launcher, never a token: credentials stay in `~/.config/three-ws/credentials.json` (mode 600). Running it again changes nothing. Then: `claude "launch my agent"`.@@ -25,9 +25,9 @@ Signs in, writes the servers, verifies them, and installs the three.ws skill forHosted installers: `curl -fsSL https://three.ws/cli/install | sh` and `curl -fsSL https://three.ws/cli/claude | sh`. Every script ships with a `.sha256` checksum and an ed25519 `.sig`; download, read and verify before running: [three.ws/docs/cli#verify-before-you-run](https://three.ws/docs/cli#verify-before-you-run).```bash-npx three-ws doctor # bad config, expired sign-in, unreachable server, with the fix for each-npx three-ws agent status # agents, wallets and balances-npx three-ws team # your teams; `team status <id>` for one+npx @three-ws/cli doctor # bad config, expired sign-in, unreachable server, with the fix for each+npx @three-ws/cli agent status # agents, wallets and balances+npx @three-ws/cli team # your teams; `team status <id>` for one```### Clean-container check@@ -41,15 +41,15 @@ bash packages/three-ws-cli/tests/container/run.sh## Common commands```bash-npx three-ws setup --clients cursor,vscode --yes # specific clients, no prompts-npx three-ws setup --project # project-scoped config in this directory-npx three-ws login --device # sign in over SSH-npx three-ws link BCDF-GHJK # link this terminal with a code from /dashboard/account-npx three-ws mcp list --available # every server and its name-npx three-ws tools --server three-ws-main --enable financial-npx three-ws status-npx three-ws create "Nova" --description "A deep-space guide." # an agent with its own Solana wallet-npx three-ws launch --agent <id> --name Nova --symbol NOVA # prefilled, you sign on three.ws/launch+npx @three-ws/cli setup --clients cursor,vscode --yes # specific clients, no prompts+npx @three-ws/cli setup --project # project-scoped config in this directory+npx @three-ws/cli login --device # sign in over SSH+npx @three-ws/cli link BCDF-GHJK # link this terminal with a code from /dashboard/account+npx @three-ws/cli mcp list --available # every server and its name+npx @three-ws/cli tools --server three-ws-main --enable financial+npx @three-ws/cli status+npx @three-ws/cli create "Nova" --description "A deep-space guide." # an agent with its own Solana wallet+npx @three-ws/cli launch --agent <id> --name Nova --symbol NOVA # prefilled, you sign on three.ws/launch```## Grok Bot@@ -57,9 +57,9 @@ npx three-ws launch --agent <id> --name Nova --symbol NOVA # prefilled, youGrok Bot's MCP configuration lives in xAI's cloud, so there is no file to write. `setup` handles the rest: it picks the Grok connector (`https://three.ws/api/mcp-grok`), copies the URL to your clipboard when a clipboard tool exists, prints the exact fields for Grok Bot's custom MCP connector, and runs a real `tools/list` against the public URL to prove it answers from outside.```bash-npx three-ws setup --client grok-bot # free 3D studio, no account, no key-npx three-ws setup --client grok-bot --connector-key # also mint a key so Grok Bot can use your agents-npx three-ws setup --clients cursor,grok-bot --yes # local clients and Grok Bot in one run+npx @three-ws/cli setup --client grok-bot # free 3D studio, no account, no key+npx @three-ws/cli setup --client grok-bot --connector-key # also mint a key so Grok Bot can use your agents+npx @three-ws/cli setup --clients cursor,grok-bot --yes # local clients and Grok Bot in one run``````