Spaces:
Sleeping
Sleeping
Commit History
-
Claude Code: Fix worker env injection - add ANTHROPIC_API_KEY and CLAUDE_API_KEY to env config
Claude Code +1: Claude Opus 4.6- Added CLAUDE_API_KEY to .env.example (was completely missing) - Uncommented ANTHROPIC_API_KEY in .env.example (was commented out) - Added both keys to utils/env_init.py _CRITICAL_DEFAULTS - Added both keys to optional critical variables verification This fixes worker initialization failures where API keys were not properly propagated to the worker subprocess environment. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>740ba92 -
Claude Code: Fix silent worker loop initialization failure
Claude Code +1: Claude Opus 4.6- Add SLEEP_INTERVAL=5 to .env.example and env_init.py defaults - Add runtime environment debugging dump to brain_minimal.py startup - Explicitly export key env vars in entrypoint.sh (WORKER_MODE, AGENT_MODE, SLEEP_INTERVAL, WORKER_START_TIMEOUT) - Update asyncio polling loop to respect SLEEP_INTERVAL from environment This fixes the issue where brain_pid exists but worker state stays stuck at 'idle' because the polling loop was missing the SLEEP_INTERVAL configuration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>0252d6e -
Claude Code: Add missing AGENT_MODE and WORKER_START_TIMEOUT to .env
Claude Code +1: Claude Code- Add AGENT_MODE=active to .env.example (prevents brain from defaulting to sleep) - Add WORKER_START_TIMEOUT=30 to .env.example (prevents crash loop) - Update env_init.py critical defaults to include new variables These variables were missing and causing the Brain to stay in IDLE state instead of transitioning to RUNNING/active processing. Co-Authored-By: Claude Code <noreply@anthropic.com>66342bb -
Claude Code: Add WORKER_MODE=auto to .env.example for guaranteed agent startup
Claude Code +1: Claude Opus 4.6The entrypoint.sh regenerates .env from .env.example on container startup. Previously, WORKER_MODE was not set, causing the worker to potentially not start. Now explicitly setting WORKER_MODE=auto ensures the agent loop is enabled. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>446051b -
Claude Code: Fix env override bug - use empty defaults for Space secrets
Claude Code +1: Claude Opus 4.6The .env.example had placeholder values (hf_xxx...) that overrode real HF_TOKEN from Space secrets when entrypoint.sh sourced the .env file. Changed to empty values so Space environment variables take precedence. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>c5c544c
-
Revert "docs: add Zhipu AI (GLM-4) as a supported LLM provider"
This reverts commit 14172b2c3d447b83feeb3571ec07069613f30a8b.0b89684 -
docs: add Zhipu AI (GLM-4) as a supported LLM provider
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>14172b2
-
fix: remove tao-shen/HuggingClaw-data refs to prevent unwanted linked spaces
tao-shen +1: Claude Opus 4.6HF scans README content to detect dataset references, causing duplicated Spaces to appear as "linked" to the original dataset. Replace all specific dataset repo names with generic examples and remove huggingface-dataset tag. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>750878a -
feat: auto-derive dataset repo name from HF_TOKEN when AUTO_CREATE_DATASET=true
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>3ff709d -
security: change AUTO_CREATE_DATASET default to false
Default is now false for security — users must create the Dataset repo manually or explicitly set AUTO_CREATE_DATASET=true. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>66d172d -
docs: add detailed env var table with examples, change sync interval to 60s
- Add Example column to secrets table with sample values - Add Environment Variables section with AUTO_CREATE_DATASET, SYNC_INTERVAL, NODE_MEMORY_LIMIT, TZ — detailed descriptions and defaults - Expand Configuration section with categorized OpenClaw env var list - Change SYNC_INTERVAL default from 120 to 60 seconds Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>082f8f4 -
chore: replace gpt-4o-mini with gpt-5-nano everywhere
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>7b37cc0 -
chore: default repo → HuggingClaw-data, default model → DeepSeek V3 (free)
- 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>981cddc -
Remove Telegram env vars, clean up README and .env.example
- Remove TELEGRAM_BOT_TOKEN/BOT_NAME/ALLOW_USER from sync_hf.py (can be configured in Control UI instead) - Remove duplicate Configuration table and Local Development section - Add OpenClaw full env var support statement in README and .env.example - Remove CSP headers claim from Security section Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>4a2cb8a
-
feat: add AUTO_CREATE_DATASET env var to control dataset auto-creation
tao-shen +1: Claude Opus 4.6When set to false, HuggingClaw will not auto-create the dataset repo and will prompt the user to create it manually on HuggingFace. Default: true (existing behavior preserved). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>0b594d1 -
feat: professional README, .env.example, architecture diagram
tao-shen +1: Claude Opus 4.6- New .env.example with documented environment variables (required/recommended/optional, with descriptions) - Architecture SVG diagram as project logo - Professional README with quick start, config reference, data flow - Dynamic SPACE_HOST for allowedOrigins (auto-detected by HF runtime) - OPENCLAW_DEFAULT_MODEL env var for configurable default model - NODE_MEMORY_LIMIT env var for tuning Node.js heap size - Remove hardcoded tao-shen-huggingclaw.hf.space from config - Clean up Telegram env vars (prefer Control UI configuration) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>7cd8723 -
deploy: HuggingClaw with original Dockerfile
tao-shenb19d31a