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.

v0.1.4发布于 2026-04-23 23:33 UTC2,446star +10 / 7 天672fork同步于 2026-11-10 23:45 UTC

怎么上手

由 README 提炼,执行前请确认
git clone <your-public-repo-url> claw3d
cd claw3d
npm install
cp .env.example .env
npm run dev
硬件要求按 README 说明

README 未说明硬件要求;仅要求 Node.js 20+ 与 npm 10+,并需自行准备可用的 OpenClaw Gateway、Hermes 或使用内置演示网关

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

把 AI 代理团队放进可漫游的 3D 虚拟办公室,让自动化过程看得见

基于 OpenClaw 构建的开源 3D 引擎,用 TypeScript 编写,面向游戏、仿真和高性能 3D 应用开发,底层走 WebGL/Three.js 渲染路线。

核心能力

  • 在 3D 复古办公室中实时观察代理协作与任务活动
  • 支持 OpenClaw、Hermes、自定义 HTTP 运行时和内置演示网关
  • 通过同源 WebSocket 代理连接上游网关,避免浏览器 CORS 问题
  • 提供办公室布局编辑与发布界面 /office/builder
  • 集成站会、PR 评审、QA 日志监控等操作空间

容易踩的坑

Claw3D 不会替你安装或构建 OpenClaw/Hermes,需先让运行时启动并拿到网关 URL 与 token;NEXT_PUBLIC_GATEWAY_URL 是构建期变量,修改后必须重新 npm run build;Studio 绑定到公网或局域网前应设置 STUDIO_ACCESS_TOKEN,生产环境还应配置 UPSTREAM_ALLOWLIST

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

3 个版本v0.1.4
  1. 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_lane work 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, and custom backends — 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, and campus.
    • Remote office messaging & handoffs for cross-office collaboration via new /api/office/remote-message and /api/office/remote-handoff routes.
    • Local file uploads for chat attachments with allowlisted MIME types and a 10 MB cap.
    • claw3doctor diagnostics CLI with profile-scoped or --all-profiles runs, OpenClaw / Hermes / demo / custom-runtime probes, gateway failure classification, and JSON output. Available as npm 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.
    • claw3doctor CLI plus a doctor package 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 strict Referrer-Policy, X-Content-Type-Options, X-Frame-Options: SAMEORIGIN, restrictive Permissions-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-gated X-Forwarded-For handling.
    • 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 openclaw resolution 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.md and ROADMAP.md with stubs that point to canonical docs under docs/.
    • Expanded README.md to describe Local and Claw3D runtime modes, persistent backend profile configuration, and the additional local and claw3d values for CLAW3D_GATEWAY_ADAPTER_TYPE.

    Notes

    This is still an early-stage release.

  2. 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/studio for 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 TS2367 build blocker in skillGymDirective.

    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.

  3. 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

    New Contributors

    Full Changelog: https://github.com/iamlukethedev/Claw3D/commits/v0.1.2

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    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 custom runtime 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 /office retro-office environment where agents appear as workers moving through a shared 3D world
    • an /office/builder surface 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 /health
    • GET /state
    • GET /registry
    • POST /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:

    1. Browser -> Studio over HTTP and a same-origin WebSocket at /api/gateway/ws.
    2. 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

    1. Start Studio with npm run dev.
    2. Open http://localhost:3000.
    3. Use ws://localhost:18789 plus your OpenClaw gateway token.

    Gateway remote, Studio local

    Use any gateway URL your machine can reach.

    Recommended with Tailscale:

    1. On the gateway host, run tailscale serve --yes --bg --https 443 http://127.0.0.1:18789.
    2. In Studio, use wss://<gateway-host>.ts.net.

    Alternative with SSH:

    1. Run ssh -L 18789:127.0.0.1:18789 user@<gateway-host>.
    2. In Studio, use ws://localhost:18789.

    Studio remote, Gateway remote

    1. Run Studio on the remote host.
    2. Expose Studio on a private network or over Tailscale.
    3. Set STUDIO_ACCESS_TOKEN if Studio binds to a public host.
    4. Configure the gateway URL and token inside Studio.

    Studio on LAN or Tailscale for other devices

    1. Start Studio with HOST=0.0.0.0 (or a specific LAN/Tailscale host).
    2. Set STUDIO_ACCESS_TOKEN before exposing Studio beyond localhost.
    3. Open Claw3D from the LAN/Tailscale address instead of localhost.
    4. 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:

    • HOST and PORT control the Studio server bind address and port.
    • STUDIO_ACCESS_TOKEN protects Studio when binding to a public host.
    • UPSTREAM_ALLOWLIST restricts which upstream gateway hosts Studio may proxy to. Set this in production.
    • CUSTOM_RUNTIME_ALLOWLIST restricts which hosts /api/runtime/custom may fetch. If unset, it falls back to UPSTREAM_ALLOWLIST.
    • NEXT_PUBLIC_GATEWAY_URL provides the default upstream gateway URL when Studio settings are empty. Note: this is a build-time variable — changes require npm run build to take effect.
    • CLAW3D_GATEWAY_URL and CLAW3D_GATEWAY_TOKEN provide a runtime alternative to NEXT_PUBLIC_GATEWAY_URL that takes effect on server restart without a rebuild.
    • CLAW3D_GATEWAY_ADAPTER_TYPE can pair with CLAW3D_GATEWAY_URL to mark those runtime defaults as openclaw, hermes, demo, local, claw3d, or custom.
    • If CLAW3D_GATEWAY_URL is not set, Studio can still surface local Hermes or demo adapter defaults from HERMES_ADAPTER_PORT / DEMO_ADAPTER_PORT.
    • OpenClaw file defaults still come from ~/.openclaw/openclaw.json when present.
    • OPENCLAW_STATE_DIR and OPENCLAW_CONFIG_PATH override the default OpenClaw paths.
    • OPENCLAW_GATEWAY_SSH_TARGET, OPENCLAW_GATEWAY_SSH_USER, OPENCLAW_GATEWAY_SSH_PORT, and OPENCLAW_GATEWAY_SSH_STRICT_HOST_KEY_CHECKING support advanced gateway-host operations over SSH when needed.
    • ELEVENLABS_API_KEY, ELEVENLABS_VOICE_ID, and ELEVENLABS_MODEL_ID enable voice reply integration.

    See .env.example for the full local development template.

    Scripts

    • npm run dev starts the Studio dev server.
    • npm run hermes-adapter starts the Hermes WebSocket adapter.
    • npm run demo-gateway starts the built-in mock gateway for demo mode.
    • npm run build builds the production Next.js app.
    • npm run start starts the production server.
    • npm run lint runs ESLint.
    • npm run typecheck runs TypeScript without emitting output.
    • npm run test runs unit tests with Vitest.
    • npm run e2e runs Playwright tests.
    • npm run studio:setup prepares common local Studio prerequisites.
    • npm run smoke:dev-server runs a basic dev-server smoke check.

    Documentation

    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 SOUNDCLAW currently 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.
    • EPROTO or wrong version number usually means wss:// was used against a non-TLS endpoint.
    • INVALID_REQUEST errors mentioning minProtocol or maxProtocol usually mean the gateway is too old for Claw3D protocol v3. Upgrade OpenClaw, use the Hermes adapter, or run npm run demo-gateway.
    • 401 Studio access token required usually means STUDIO_ACCESS_TOKEN is enabled and the request is missing the expected studio_access cookie.
    • If /api/runtime/custom returns a blocked-host error in production, set CUSTOM_RUNTIME_ALLOWLIST or include the runtime host in UPSTREAM_ALLOWLIST.
    • Helpful proxy error codes include studio.gateway_url_missing, studio.gateway_token_missing, studio.upstream_error, and studio.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:

    1. Keep Claw3D running locally on http://localhost:3000.
    2. Start ngrok for the local Studio server, for example ngrok http 3000.
    3. In the jukebox setup UI, paste your public ngrok URL into the ngrok Public URL field.
    4. In the Spotify developer dashboard, register https://<your-ngrok-host>/spotify/callback as the redirect URI.
    5. 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 ngrok callback 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 ngrok auth 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 Server optional feature, start the sshd service, and allow it through the firewall.
    • Linux: make sure sshd is 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.