Spaces:
Runtime error

tao-shen Claude Opus 4.6 commited on
Commit
092c6d8
Β·
1 Parent(s): 11d18c7

feat: auto-derive dataset repo name from HF_TOKEN when AUTO_CREATE_DATASET=true

Browse files

When AUTO_CREATE_DATASET=true and OPENCLAW_DATASET_REPO is not set,
HuggingClaw now uses HfApi.whoami() to get the username from HF_TOKEN
and derives the repo name as "username/HuggingClaw-data".

- Add auto-derive logic in sync_hf.py
- Update README with Data Persistence section (Manual vs Auto mode)
- Update .env.example with detailed documentation for both modes

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

3 files changed +54 -14
Files changed (3)
.env.example+10-4
README.md+28-8
scripts/sync_hf.py+16-2