File size: 963 Bytes
972d2b7
f072685
 
 
972d2b7
 
 
 
f072685
972d2b7
f072685
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
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
```