Spaces:
Running
Running
更新 README.md
Browse files
README.md
CHANGED
|
@@ -5,4 +5,38 @@ colorFrom: indigo
|
|
| 5 |
colorTo: red
|
| 6 |
sdk: docker
|
| 7 |
app_port: 7860
|
|
|
|
|
|
|
| 8 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
colorTo: red
|
| 6 |
sdk: docker
|
| 7 |
app_port: 7860
|
| 8 |
+
datasets:
|
| 9 |
+
- your-username/your-space-name-data
|
| 10 |
---
|
| 11 |
+
|
| 12 |
+
# HuggingClaw 🦀
|
| 13 |
+
|
| 14 |
+
Deploy [OpenClaw](https://openclaw.ai) on HuggingFace Spaces for free — 2 vCPU, 16 GB RAM, 50 GB storage, always online.
|
| 15 |
+
|
| 16 |
+
## Required Secrets
|
| 17 |
+
|
| 18 |
+
Set these in your Space → Settings → Repository secrets:
|
| 19 |
+
|
| 20 |
+
| Secret | Description |
|
| 21 |
+
|--------|-------------|
|
| 22 |
+
| `HF_TOKEN` | Your HuggingFace token (needs read + write access) |
|
| 23 |
+
| `OPENCLAW_DATASET_REPO` | Dataset repo to persist data, e.g. `your-name/HuggingClaw-data` |
|
| 24 |
+
|
| 25 |
+
## Optional Secrets
|
| 26 |
+
|
| 27 |
+
| Secret | Default | Description |
|
| 28 |
+
|--------|---------|-------------|
|
| 29 |
+
| `AUTO_CREATE_DATASET` | `false` | Set `true` to auto-create the dataset repo on first start |
|
| 30 |
+
| `SYNC_INTERVAL` | `60` | Seconds between workspace sync pushes |
|
| 31 |
+
| `OPENCLAW_DEFAULT_MODEL` | — | Default AI model, e.g. `gpt-4o` |
|
| 32 |
+
| `ANTHROPIC_API_KEY` | — | Anthropic API key |
|
| 33 |
+
| `OPENAI_API_KEY` | — | OpenAI API key |
|
| 34 |
+
| `OPENROUTER_API_KEY` | — | OpenRouter API key |
|
| 35 |
+
|
| 36 |
+
## Setup
|
| 37 |
+
|
| 38 |
+
1. **Duplicate this Space** on the HuggingFace Space page.
|
| 39 |
+
2. Create a **private Dataset repo** at [huggingface.co/new-dataset](https://huggingface.co/new-dataset).
|
| 40 |
+
3. Set `OPENCLAW_DATASET_REPO` and `HF_TOKEN` as Repository Secrets.
|
| 41 |
+
4. Edit this README and update the `datasets:` field above to match your dataset repo.
|
| 42 |
+
5. The Space will build and OpenClaw will be available on port 7860.
|