| title: OpenClaw | |
| emoji: 🦀 | |
| colorFrom: purple | |
| colorTo: indigo | |
| sdk: docker | |
| pinned: false | |
| license: apache-2.0 | |
| app_port: 7860 | |
| # OpenClaw Space | |
| Native OpenClaw runtime for Hugging Face Spaces. VS Code/code-server is intentionally not installed. | |
| ## Routing | |
| ```text | |
| / -> OpenClaw control UI | |
| /{port}/ -> localhost:{port} | |
| /proxy/{port}/ -> localhost:{port} | |
| ``` | |
| ## Persistence | |
| On startup, `/data/root` is restored into `/root` when `/data` is available. | |
| During runtime, `/root` is synced back to `/data/root` every 5 minutes by default. | |
| ```text | |
| SYNC_INTERVAL=300 | |
| ``` | |
| Large generated folders such as `node_modules`, `.next`, `dist`, `build`, and cache directories are excluded. | |
| ## Environment | |
| ```text | |
| PROXY_PORT=7860 | |
| OPENCLAW_PORT=8080 | |
| SYNC_INTERVAL=300 | |
| OPENCLAW_CMD= | |
| ``` | |
| Use `OPENCLAW_CMD` only if your installed OpenClaw CLI needs a different start command. | |
| Example: | |
| ```text | |
| OPENCLAW_CMD=openclaw --host 127.0.0.1 --port 8080 | |
| ``` | |