Claw3D 不会替你安装或构建 OpenClaw/Hermes,需先让运行时启动并拿到网关 URL 与 token;NEXT_PUBLIC_GATEWAY_URL 是构建期变量,修改后必须重新 npm run build;Studio 绑定到公网或局域网前应设置 STUDIO_ACCESS_TOKEN,生产环境还应配置 UPSTREAM_ALLOWLIST
Claw3D
iamlukethedevMIT活跃维护基于 OpenClaw 构建的开源 3D 引擎,用 TypeScript 编写,面向游戏、仿真和高性能 3D 应用开发,底层走 WebGL/Three.js 渲染路线。
Claw3D is an open source 3D engine built on OpenClaw for creating games, simulations, and high-performance 3D applications.
git clone <your-public-repo-url> claw3d
cd claw3d
npm install
cp .env.example .env
npm run devREADME 未说明硬件要求;仅要求 Node.js 20+ 与 npm 10+,并需自行准备可用的 OpenClaw Gateway、Hermes 或使用内置演示网关
把 AI 代理团队放进可漫游的 3D 虚拟办公室,让自动化过程看得见
基于 OpenClaw 构建的开源 3D 引擎,用 TypeScript 编写,面向游戏、仿真和高性能 3D 应用开发,底层走 WebGL/Three.js 渲染路线。
核心能力
- 在 3D 复古办公室中实时观察代理协作与任务活动
- 支持 OpenClaw、Hermes、自定义 HTTP 运行时和内置演示网关
- 通过同源 WebSocket 代理连接上游网关,避免浏览器 CORS 问题
- 提供办公室布局编辑与发布界面 /office/builder
- 集成站会、PR 评审、QA 日志监控等操作空间
容易踩的坑
- v0.1.4v0.1.4 – Runtime Profiles, Multi-Floor Offices & Diagnostics最新正式版2026-04-23 · 2026-04-23 23:33 UTC
Runtime Profiles, Multi-Floor Offices, Remote Collaboration, and Diagnostics
This release converges the runtime-profiles, office-systems, claw3doctor, and selective
vera_lanework into one branch. Backends become named profiles, the office becomes a multi-floor building, remote offices gain server-backed messaging and handoffs, and a new diagnostics CLI makes setup and troubleshooting first-class.Highlights
- Named runtime profiles for
openclaw,hermes,demo,local,claw3d, andcustombackends — each with its own saved URL and token in Studio settings instead of one global pair. - Multi-floor office runtime model with one runtime binding per floor and persistent per-floor state. Includes
lobby,openclaw-ground,hermes-first,local-runtime,claw3d-runtime,custom-second,training,traders-floor, andcampus. - Remote office messaging & handoffs for cross-office collaboration via new
/api/office/remote-messageand/api/office/remote-handoffroutes. - Local file uploads for chat attachments with allowlisted MIME types and a 10 MB cap.
claw3doctordiagnostics CLI with profile-scoped or--all-profilesruns, OpenClaw / Hermes / demo / custom-runtime probes, gateway failure classification, and JSON output. Available asnpm run doctor.- Hardened security defaults around CSP, Studio access gating, proxy handling, and runtime boundaries.
Added
- Named runtime profiles and profile-aware connection behavior across all backends.
- Multi-floor office model with floor roster persistence and a floor navigation HUD.
- Remote office messaging API with structured assistant-history reply resolution.
- Remote office handoff API supporting task / context / deliverables / acceptance criteria.
- Local file upload route for chat attachments.
claw3doctorCLI plus adoctorpackage script.- New product and architecture docs: runtime profiles, multi-floor architecture, claw3doctor spec, runtime profile architecture, refreshed roadmap, multi-agent beta, plus bulletin-board, desk-progression, hierarchy-and-teams, meeting-room-workflow, QA-department, and whiteboard specs.
Changed
- Runtime provider selection is now profile-aware instead of collapsing into one generic path.
- Studio settings persist per-profile URL/token entries with a coordinated bootstrap and hydration path.
- Remote agent chat panel and remote office presence updated for the new server-backed delivery and reply behavior.
- Production CSP drops
'unsafe-eval'(kept in dev for HMR), adds strictReferrer-Policy,X-Content-Type-Options,X-Frame-Options: SAMEORIGIN, restrictivePermissions-Policy,Cross-Origin-Resource-Policy: same-origin, and HSTS in production. - Access gate rewritten with constant-time token comparison, a per-IP rate limiter (10 attempts / 60s), and
TRUSTED_PROXY=1-gatedX-Forwarded-Forhandling. - Custom runtime provider and proxy URL handling tightened around runtime boundaries and allowlists.
Fixed
- Repaired merge-corrupted files and removed tracked merge artifacts from the earlier overlapping branch stack.
- Resolved a UTF-8 / Turbopack parsing issue and cleaned up Turbopack root and optional
openclawresolution warnings. - Office navigation and pathfinding tightened around floor-aware routing and runtime persistence.
Tests
- Added unit coverage for
claw3doctor, office floors, floor roster, runtime connection, gateway connection, office floor runtime persistence, agent fleet hydration derivation, and studio settings coordinator behavior.
Docs
- Replaced top-level
MULTI_AGENT_BETA.mdandROADMAP.mdwith stubs that point to canonical docs underdocs/. - Expanded
README.mdto describeLocalandClaw3Druntime modes, persistent backend profile configuration, and the additionallocalandclaw3dvalues forCLAW3D_GATEWAY_ADAPTER_TYPE.
Notes
This is still an early-stage release.
- Named runtime profiles for
- v0.1.3v0.1.3 – Remote Offices, Skills Marketplace, and Company Builder2026-03-28 · 2026-03-28 03:34 UTC
查看更新说明
This release expands Claw3D from a single-office viewer into a more complete AI workplace, with guided setup, richer agent operations, remote office support, and stronger security hardening.
Highlights
- New onboarding wizard for first-time setup, including gateway connection, prerequisites, company details, and initial agent configuration.
- New packaged skills marketplace with trigger-driven office routing, including starter skills like Todo Board and SOUNDCLAW.
- New office agent management wizard for creating and managing agents directly from the office experience.
- New multi-agent beta support for remote office layouts, presence sync, and remote messaging.
- New company builder wizard with AI-assisted organization generation and bootstrap planning.
- Improved UI polish, responsiveness, and accessibility across the main app and office surfaces.
Security and Reliability
- Hardened access control so gating applies across all routes, not only
/api. - Closed multiple path traversal and file-path validation gaps in local file operations.
- Resolved symlink handling issues in path suggestions.
- Added runtime gateway URL fallback through
/api/studiofor more reliable environment-specific setup. - Improved office navigation and pathfinding by fixing diagonal corner-cutting, metadata-driven blockers, collision-aware routing, and A* failure behavior.
- Enforced voice upload size limits before buffering.
- Removed a TypeScript
TS2367build blocker inskillGymDirective.
Docs
- Added an Agent Bus integration guide for visualizing AI sessions in Claw3D.
- Refreshed the public roadmap.
Notes
This is still an early-stage release. The platform is moving quickly, especially around remote office workflows, skills, and guided setup, so expect rapid iteration in upcoming versions.
- v0.1.2v0.1.2 – Custom 3D Avatars + Unified Agent Editor2026-03-21 · 2026-03-21 04:19 UTC
查看更新说明
This release introduces a major upgrade to how agents are visualized and managed inside Claw3D.
Agents now have fully customizable 3D avatars with persistent profiles, and a unified editing experience that brings together both visual identity and agent brain configuration.
Highlights
- Full 3D avatar customization system with live preview
- Unified agent editor (visual + brain files in one place)
- Persistent avatar profiles across sessions
- Improved office HUD and agent management flows
Why this matters
Claw3D is moving toward a more immersive and controllable AI workspace.
This release is a big step toward making agents feel like real entities you can see, edit, and manage in one environment instead of scattered tools.
Notes
This is still an early version. Expect rapid iteration and breaking changes as the platform evolves.
What's Changed
- First Release of Claw3D by @iamlukethedev in https://github.com/iamlukethedev/Claw3D/pull/11
- docs: add .env.example for local development setup by @asimons81 in https://github.com/iamlukethedev/Claw3D/pull/14
- Fix WS auth + gym release directive TypeScript error by @asimons81 in https://github.com/iamlukethedev/Claw3D/pull/16
- Avatar Customization + Update Agent Brain by @iamlukethedev in https://github.com/iamlukethedev/Claw3D/pull/23
- Feature/avatar customization by @iamlukethedev in https://github.com/iamlukethedev/Claw3D/pull/25
New Contributors
- @iamlukethedev made their first contribution in https://github.com/iamlukethedev/Claw3D/pull/11
- @asimons81 made their first contribution in https://github.com/iamlukethedev/Claw3D/pull/14
Full Changelog: https://github.com/iamlukethedev/Claw3D/commits/v0.1.2
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
Claw3D — A 3D Workspace for AI Agents
Claw3D is a 3D virtual office for AI agents you run on your own infrastructure. Instead of watching automation through dashboards and logs, you walk through a live 3D office where your agents collaborate, review code, run standups, ship pull requests, and execute tasks side by side. The Gateway is just the control plane — the product is the office.
If you want a personal, self-hosted workspace that turns your AI workforce into something you can actually see, this is it.
Supported runtimes include: OpenClaw Gateway, Hermes, a direct HTTP custom runtime provider for orchestrator-backed stacks, and a built-in demo gateway for office exploration without a real agent framework.
Website · Vision · Architecture · Tutorial · Getting Started · Runtime Profiles · Multi-Agent Beta · Contributing · Security · Discord
Unofficial project. Claw3D is an independent, community-driven project and is not affiliated with, endorsed by, or maintained by the OpenClaw team. OpenClaw is a separate project, and this repository is not the official OpenClaw repository.
Built and maintained by LukeTheDev. Follow on X: @iamlukethedev.
What you can do with Claw3D
- Watch your AI agents work in real time inside a shared 3D office.
- Run standups with agents connected to GitHub and Jira.
- Review pull requests from inside the office.
- Monitor QA pipelines and logs without leaving the workspace.
- Train agents in the gym to develop new skills.
- Reset sessions and clean context with the janitor system.
What Claw3D Is
Claw3D is the visualization and interaction layer.
Today it can sit on top of:
- OpenClaw through the existing gateway flow
- Hermes through the bundled WebSocket adapter
- a direct HTTP
customruntime provider for orchestrator-backed stacks - a built-in demo gateway for office exploration without a real agent framework
In practical terms, this app gives you:
- a live
/officeretro-office environment where agents appear as workers moving through a shared 3D world - an
/office/buildersurface for editing and publishing office layouts - a gateway-first architecture that keeps runtime state in the connected backend while Studio stores local UI preferences
- a backend-neutral runtime seam inside Studio so additional providers can be integrated without rewriting the whole UI
This repository does not build the upstream runtimes themselves. It is the frontend, Studio, and adapter/proxy layer that connects to a runtime speaking the Claw3D gateway protocol.
Why It Exists
AI systems are becoming more capable, but their work is still usually hidden behind logs, terminal output, and dashboards.
Claw3D exists to make agent systems visible:
- inspect what agents are doing in real time
- monitor runs, approvals, history, and activity from one place
- interact with agents through chat and immersive UI surfaces
- move toward a world where AI systems are understandable through space, motion, and presence
For the broader direction of the project, see VISION.md.
What Exists Today
The current app already includes a substantial Claw3D surface:
- Fleet management and agent chat with runtime updates streamed from the gateway.
- Agent creation, settings, session controls, approvals, and gateway-backed configuration editing.
- A 3D retro office with desks, rooms, navigation, animations, and event-driven activity cues.
- Immersive operational spaces for standups, GitHub review flows, analytics, and system monitoring.
- Local Studio persistence for gateway connection details, focused-agent preferences, desk assignments, office state, and related UI settings.
- A custom same-origin WebSocket proxy so the browser talks to Studio, and Studio talks to the upstream OpenClaw Gateway.
Quick Start
Requirements:
- Node.js 20+ recommended.
- npm 10+ recommended.
- One of:
- a working OpenClaw installation with a reachable Gateway URL and token
- Hermes with the bundled adapter
- the built-in demo gateway for local exploration
Prerequisite:
- Claw3D does not install or build OpenClaw or Hermes for you.
- Before starting Claw3D against a real backend, make sure your chosen runtime is already running and that you know the gateway URL and token Studio should use.
- For a no-framework local office demo, run the bundled demo gateway instead.
- If you need a full cross-machine setup guide (OpenClaw + Tailscale + Claw3D), follow
TUTORIAL.md.
Run from source:
git clone <your-public-repo-url> claw3d
cd claw3d
npm install
cp .env.example .env
npm run dev
Then open http://localhost:3000 and configure the gateway URL and token in Studio.
Studio now also persists the selected backend mode (OpenClaw, Hermes, Demo, Local, Claw3D, or Custom) and
shows the active backend reported by the connected gateway.
Runtime profiles
If you are integrating an orchestrator-backed runtime through the direct HTTP runtime seam, start your runtime first, then start Claw3D:
npm run dev
Then open http://localhost:3000, choose Local runtime, Claw3D runtime,
or Custom backend, and point the upstream URL at your runtime boundary.
Typical examples:
http://127.0.0.1:7770
http://localhost:3000/api/runtime/custom
Current direct-runtime expectations:
GET /healthGET /stateGET /registryPOST /v1/chat/completions
The browser does not call that runtime directly. Claw3D proxies the
custom provider through its own same-origin route at
/api/runtime/custom, which avoids browser-side CORS problems and keeps
the provider transport separate from the OpenClaw/Hermes gateway path.
Demo mode
If you only want to see the office and agent interactions without installing OpenClaw or Hermes:
npm run demo-gateway
npm run dev
Then connect Studio to:
ws://localhost:18789
This starts a mock local gateway with demo agents, streaming chat, session previews, and office presence.
In the connect screen, choose Demo backend, then connect.
Hermes adapter
If you want to use Hermes instead of OpenClaw:
npm run hermes-adapter
npm run dev
See docs/hermes-gateway.md for setup details and current scope.
For a local gateway on the same machine, the usual upstream URL is:
ws://localhost:18789
In the connect screen, choose Hermes backend, then connect.
How It Connects
Claw3D uses two separate network hops:
- Browser -> Studio over HTTP and a same-origin WebSocket at
/api/gateway/ws. - Studio -> OpenClaw Gateway over a second WebSocket opened by the Studio server.
That means ws://localhost:18789 always refers to the gateway reachable from the Studio host, not necessarily from the browser device.
This design keeps gateway settings persisted on the Studio host and lets Studio open the upstream connection server-side. The current UI still loads the configured upstream URL/token into browser memory at runtime, so treat the browser as part of the active trust boundary.
Common Setups
Gateway local, Studio local
- Start Studio with
npm run dev. - Open
http://localhost:3000. - Use
ws://localhost:18789plus your OpenClaw gateway token.
Gateway remote, Studio local
Use any gateway URL your machine can reach.
Recommended with Tailscale:
- On the gateway host, run
tailscale serve --yes --bg --https 443 http://127.0.0.1:18789. - In Studio, use
wss://<gateway-host>.ts.net.
Alternative with SSH:
- Run
ssh -L 18789:127.0.0.1:18789 user@<gateway-host>. - In Studio, use
ws://localhost:18789.
Studio remote, Gateway remote
- Run Studio on the remote host.
- Expose Studio on a private network or over Tailscale.
- Set
STUDIO_ACCESS_TOKENif Studio binds to a public host. - Configure the gateway URL and token inside Studio.
Studio on LAN or Tailscale for other devices
- Start Studio with
HOST=0.0.0.0(or a specific LAN/Tailscale host). - Set
STUDIO_ACCESS_TOKENbefore exposing Studio beyond localhost. - Open Claw3D from the LAN/Tailscale address instead of
localhost. - If you are connecting to a remote OpenClaw gateway, remember device approval is per browser/device. A new browser may still require:
openclaw devices approve --latest
Tech Stack
- Next.js App Router, React, and TypeScript for the main web application.
- A custom Node server for the Studio-side WebSocket proxy.
- Three.js, React Three Fiber, and Drei for the 3D office experience.
- Phaser for office/viewer-builder workflows and related interactive surfaces.
- Vitest for unit tests and Playwright for end-to-end coverage.
Configuration
Important runtime paths:
- OpenClaw config:
~/.openclaw/openclaw.json - Studio settings:
~/.openclaw/claw3d/settings.json
Common environment variables:
HOSTandPORTcontrol the Studio server bind address and port.STUDIO_ACCESS_TOKENprotects Studio when binding to a public host.UPSTREAM_ALLOWLISTrestricts which upstream gateway hosts Studio may proxy to. Set this in production.CUSTOM_RUNTIME_ALLOWLISTrestricts which hosts/api/runtime/custommay fetch. If unset, it falls back toUPSTREAM_ALLOWLIST.NEXT_PUBLIC_GATEWAY_URLprovides the default upstream gateway URL when Studio settings are empty. Note: this is a build-time variable — changes requirenpm run buildto take effect.CLAW3D_GATEWAY_URLandCLAW3D_GATEWAY_TOKENprovide a runtime alternative toNEXT_PUBLIC_GATEWAY_URLthat takes effect on server restart without a rebuild.CLAW3D_GATEWAY_ADAPTER_TYPEcan pair withCLAW3D_GATEWAY_URLto mark those runtime defaults asopenclaw,hermes,demo,local,claw3d, orcustom.- If
CLAW3D_GATEWAY_URLis not set, Studio can still surface local Hermes or demo adapter defaults fromHERMES_ADAPTER_PORT/DEMO_ADAPTER_PORT. - OpenClaw file defaults still come from
~/.openclaw/openclaw.jsonwhen present. OPENCLAW_STATE_DIRandOPENCLAW_CONFIG_PATHoverride the default OpenClaw paths.OPENCLAW_GATEWAY_SSH_TARGET,OPENCLAW_GATEWAY_SSH_USER,OPENCLAW_GATEWAY_SSH_PORT, andOPENCLAW_GATEWAY_SSH_STRICT_HOST_KEY_CHECKINGsupport advanced gateway-host operations over SSH when needed.ELEVENLABS_API_KEY,ELEVENLABS_VOICE_ID, andELEVENLABS_MODEL_IDenable voice reply integration.
See .env.example for the full local development template.
Scripts
npm run devstarts the Studio dev server.npm run hermes-adapterstarts the Hermes WebSocket adapter.npm run demo-gatewaystarts the built-in mock gateway for demo mode.npm run buildbuilds the production Next.js app.npm run startstarts the production server.npm run lintruns ESLint.npm run typecheckruns TypeScript without emitting output.npm run testruns unit tests with Vitest.npm run e2eruns Playwright tests.npm run studio:setupprepares common local Studio prerequisites.npm run smoke:dev-serverruns a basic dev-server smoke check.
Documentation
VISION.md: project direction and long-term guardrails.ARCHITECTURE.md: system boundaries, data flow, and major trade-offs.TUTORIAL.md: detailed step-by-step setup for OpenClaw + Tailscale + Claw3D.docs/multi-agent-beta.md: remote office beta setup, connection modes, and limitations.docs/runtime-profiles.md: saved backend/runtime profiles and the current HTTP runtime seam.CODE_DOCUMENTATION.md: practical code map, extension points, and contributor onboarding order.CONTRIBUTING.md: local workflow, testing, and PR expectations.SUPPORT.md: where to ask for help and how to route reports.ROADMAP.md: near-term priorities and contributor-friendly work areas.docs/pi-chat-streaming.md: gateway runtime streaming and transcript rendering.docs/permissions-sandboxing.md: Studio permissions and OpenClaw behavior.docs/hermes-gateway.md: Hermes adapter setup, capabilities, and current limitations.
Current Limitations
- The immersive retro office (
/office) and the Phaser builder (/office/builder) are related but still separate stacks. - The app keeps gateway secrets out of browser persistent storage, but the current connection flow still loads the upstream URL/token into browser memory at runtime.
- Local Spotify auth for
SOUNDCLAWcurrently stores an access token only. Refresh-token handling is not implemented yet, so local Spotify auth may need to be repeated after the token expires.
Troubleshooting
If the UI loads but Connect fails, the problem is usually on the Studio -> Gateway side:
- Confirm the upstream URL and token in Studio settings.
EPROTOorwrong version numberusually meanswss://was used against a non-TLS endpoint.INVALID_REQUESTerrors mentioningminProtocolormaxProtocolusually mean the gateway is too old for Claw3D protocol v3. Upgrade OpenClaw, use the Hermes adapter, or runnpm run demo-gateway.401 Studio access token requiredusually meansSTUDIO_ACCESS_TOKENis enabled and the request is missing the expectedstudio_accesscookie.- If
/api/runtime/customreturns a blocked-host error in production, setCUSTOM_RUNTIME_ALLOWLISTor include the runtime host inUPSTREAM_ALLOWLIST. - Helpful proxy error codes include
studio.gateway_url_missing,studio.gateway_token_missing,studio.upstream_error, andstudio.upstream_closed.
Marketplace skill installs now use a gateway-native workspace flow and do not require enabling SSH on the user machine.
Spotify auth on localhost
If you are testing the SOUNDCLAW jukebox locally and Spotify OAuth does not accept your localhost callback, use an ngrok callback bridge:
- Keep Claw3D running locally on
http://localhost:3000. - Start
ngrokfor the local Studio server, for examplengrok http 3000. - In the jukebox setup UI, paste your public
ngrokURL into thengrok Public URLfield. - In the Spotify developer dashboard, register
https://<your-ngrok-host>/spotify/callbackas the redirect URI. - Complete Spotify sign-in from the jukebox panel.
How it works:
- The main Claw3D app stays on
localhost, so your normal local office state and agent state remain intact. - Spotify redirects to the
ngrokcallback URL. - The callback page passes the auth code back to the open local Claw3D window.
Current local limitation:
- Because only the Spotify access token is stored right now, you may need to repeat the
ngrokauth flow when that token expires during local development.
If you use other advanced gateway-host operations over SSH:
- macOS: enable
System Settings->General->Sharing->Remote Login, and make sure the target user is allowed. - Windows: enable the
OpenSSH Serveroptional feature, start thesshdservice, and allow it through the firewall. - Linux: make sure
sshdis installed, running, and reachable from the Studio machine.
For first-time SSH connections, Claw3D uses StrictHostKeyChecking=accept-new by default so a new host key can be trusted automatically. If you need stricter behavior, set OPENCLAW_GATEWAY_SSH_STRICT_HOST_KEY_CHECKING=yes, or set it to no only if you explicitly want to skip host key checks.
Contributing
Keep pull requests focused, run npm run lint, npm run typecheck, and npm run test before opening a PR, and update docs when behavior or architecture changes.
AI Editing Guardrails
If you use Cursor or another AI-assisted workflow, review the committed project guardrails in .cursor/rules/claw3d-project-guardrails.mdc.
That rule file captures the shared editing expectations for this repository, including the Claw3D-vs-OpenClaw boundary, code placement conventions, office-stack distinctions, and documentation/test update expectations.
Community expectations live in CODE_OF_CONDUCT.md. Security reporting instructions live in SECURITY.md.