tao-shen Claude Opus 4.6 commited on
Commit
981cddc
·
1 Parent(s): dd40c50

chore: default repo → HuggingClaw-data, default model → DeepSeek V3 (free)

Browse files

- Example dataset repo: your-name/HuggingClaw-data
- Default model: openrouter/deepseek/deepseek-chat:free (open-source)
- DeepSeek V3 listed first in OpenRouter provider models

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Files changed (4) hide show
  1. .env.example +3 -3
  2. README.md +1 -1
  3. openclaw.json +5 -5
  4. scripts/sync_hf.py +3 -3
.env.example CHANGED
@@ -43,11 +43,11 @@ HF_TOKEN=hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
43
  # Target Dataset repository for data backup.
44
  # Format: your-username/repo-name
45
  # If the repo doesn't exist, HuggingClaw auto-creates it as PRIVATE.
46
- # Example: tao-shen/openclaw-data
47
  #
48
  # [REQUIRED]
49
  #
50
- OPENCLAW_DATASET_REPO=your-username/openclaw-data
51
 
52
  # Whether to auto-create the Dataset repo if it doesn't exist.
53
  # Set to false if you prefer to create the repo manually on HuggingFace.
@@ -171,7 +171,7 @@ OPENROUTER_API_KEY=sk-or-v1-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
171
  #
172
  # ─── 持久化 (HuggingFace Dataset) ───────────────────────────────────────
173
  # HF_TOKEN [必填] HF 访问令牌,需具备写入权限
174
- # OPENCLAW_DATASET_REPO [必填] 备份用 Dataset 仓库,如 your-name/openclaw-data
175
  # AUTO_CREATE_DATASET [可选] 是否自动创建仓库,默认 true
176
  # SYNC_INTERVAL [可选] 备份间隔(秒),默认 120
177
  # HF_HUB_DOWNLOAD_TIMEOUT [可选] 下载超时(秒),默认 300
 
43
  # Target Dataset repository for data backup.
44
  # Format: your-username/repo-name
45
  # If the repo doesn't exist, HuggingClaw auto-creates it as PRIVATE.
46
+ # Example: tao-shen/HuggingClaw-data
47
  #
48
  # [REQUIRED]
49
  #
50
+ OPENCLAW_DATASET_REPO=your-username/HuggingClaw-data
51
 
52
  # Whether to auto-create the Dataset repo if it doesn't exist.
53
  # Set to false if you prefer to create the repo manually on HuggingFace.
 
171
  #
172
  # ─── 持久化 (HuggingFace Dataset) ───────────────────────────────────────
173
  # HF_TOKEN [必填] HF 访问令牌,需具备写入权限
174
+ # OPENCLAW_DATASET_REPO [必填] 备份用 Dataset 仓库,如 your-name/HuggingClaw-data
175
  # AUTO_CREATE_DATASET [可选] 是否自动创建仓库,默认 true
176
  # SYNC_INTERVAL [可选] 备份间隔(秒),默认 120
177
  # HF_HUB_DOWNLOAD_TIMEOUT [可选] 下载超时(秒),默认 300
README.md CHANGED
@@ -80,7 +80,7 @@ Go to **Settings → Repository secrets** and configure:
80
  |--------|:------:|-------------|
81
  | `OPENCLAW_PASSWORD` | Recommended | Password for the Control UI (default: `huggingclaw`) |
82
  | `HF_TOKEN` | **Required** | HF Access Token with write permission ([create one](https://huggingface.co/settings/tokens)) |
83
- | `OPENCLAW_DATASET_REPO` | **Required** | Dataset repo for backup, e.g. `your-name/openclaw-data` |
84
  | `OPENAI_API_KEY` | Recommended | OpenAI (or any [OpenAI-compatible](https://openclawdoc.com/docs/reference/environment-variables)) API key for LLM |
85
  | `OPENROUTER_API_KEY` | Optional | [OpenRouter](https://openrouter.ai) API key (200+ models, free tier) |
86
  | `ANTHROPIC_API_KEY` | Optional | Anthropic Claude API key |
 
80
  |--------|:------:|-------------|
81
  | `OPENCLAW_PASSWORD` | Recommended | Password for the Control UI (default: `huggingclaw`) |
82
  | `HF_TOKEN` | **Required** | HF Access Token with write permission ([create one](https://huggingface.co/settings/tokens)) |
83
+ | `OPENCLAW_DATASET_REPO` | **Required** | Dataset repo for backup, e.g. `your-name/HuggingClaw-data` |
84
  | `OPENAI_API_KEY` | Recommended | OpenAI (or any [OpenAI-compatible](https://openclawdoc.com/docs/reference/environment-variables)) API key for LLM |
85
  | `OPENROUTER_API_KEY` | Optional | [OpenRouter](https://openrouter.ai) API key (200+ models, free tier) |
86
  | `ANTHROPIC_API_KEY` | Optional | Anthropic Claude API key |
openclaw.json CHANGED
@@ -25,13 +25,13 @@
25
  "apiKey": "__OPENROUTER_API_KEY__",
26
  "api": "openai-completions",
27
  "models": [
28
- {
29
- "id": "stepfun/step-3.5-flash:free",
30
- "name": "Step-3.5-Flash (Free)"
31
- },
32
  {
33
  "id": "deepseek/deepseek-chat:free",
34
  "name": "DeepSeek V3 (Free)"
 
 
 
 
35
  }
36
  ]
37
  }
@@ -52,7 +52,7 @@
52
  "defaults": {
53
  "workspace": "~/.openclaw/workspace",
54
  "model": {
55
- "primary": "openrouter/stepfun/step-3.5-flash:free"
56
  }
57
  }
58
  }
 
25
  "apiKey": "__OPENROUTER_API_KEY__",
26
  "api": "openai-completions",
27
  "models": [
 
 
 
 
28
  {
29
  "id": "deepseek/deepseek-chat:free",
30
  "name": "DeepSeek V3 (Free)"
31
+ },
32
+ {
33
+ "id": "stepfun/step-3.5-flash:free",
34
+ "name": "Step-3.5-Flash (Free)"
35
  }
36
  ]
37
  }
 
52
  "defaults": {
53
  "workspace": "~/.openclaw/workspace",
54
  "model": {
55
+ "primary": "openrouter/deepseek/deepseek-chat:free"
56
  }
57
  }
58
  }
scripts/sync_hf.py CHANGED
@@ -69,7 +69,7 @@ OPENCLAW_PASSWORD = os.environ.get("OPENCLAW_PASSWORD", "huggingclaw")
69
 
70
  # Default model for new conversations (infer from provider if not set)
71
  OPENCLAW_DEFAULT_MODEL = os.environ.get("OPENCLAW_DEFAULT_MODEL") or (
72
- "openai/gpt-4o-mini" if OPENAI_API_KEY else "openrouter/stepfun/step-3.5-flash:free"
73
  )
74
 
75
  # HF Spaces built-in env vars (auto-set by HF runtime)
@@ -393,8 +393,8 @@ class OpenClawFullSync:
393
  "apiKey": OPENROUTER_API_KEY,
394
  "api": "openai-completions",
395
  "models": [
396
- {"id": "stepfun/step-3.5-flash:free", "name": "Step-3.5-Flash (Free)"},
397
- {"id": "deepseek/deepseek-chat:free", "name": "DeepSeek V3 (Free)"}
398
  ]
399
  }
400
  print("[SYNC] Set OpenRouter provider")
 
69
 
70
  # Default model for new conversations (infer from provider if not set)
71
  OPENCLAW_DEFAULT_MODEL = os.environ.get("OPENCLAW_DEFAULT_MODEL") or (
72
+ "openai/gpt-4o-mini" if OPENAI_API_KEY else "openrouter/deepseek/deepseek-chat:free"
73
  )
74
 
75
  # HF Spaces built-in env vars (auto-set by HF runtime)
 
393
  "apiKey": OPENROUTER_API_KEY,
394
  "api": "openai-completions",
395
  "models": [
396
+ {"id": "deepseek/deepseek-chat:free", "name": "DeepSeek V3 (Free)"},
397
+ {"id": "stepfun/step-3.5-flash:free", "name": "Step-3.5-Flash (Free)"}
398
  ]
399
  }
400
  print("[SYNC] Set OpenRouter provider")