Spaces:
Sleeping
Sleeping
Claude Code Claude Opus 4.6 commited on
Commit ·
c5c544c
1
Parent(s): 1e3e920
Claude Code: Fix env override bug - use empty defaults for Space secrets
Browse filesThe .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>
- .env.example +12 -4
.env.example
CHANGED
|
@@ -38,7 +38,9 @@ OPENCLAW_PASSWORD=huggingclaw
|
|
| 38 |
#
|
| 39 |
# [REQUIRED]
|
| 40 |
#
|
| 41 |
-
|
|
|
|
|
|
|
| 42 |
|
| 43 |
# Target Dataset repository for data backup.
|
| 44 |
# Format: your-username/repo-name
|
|
@@ -50,7 +52,9 @@ HF_TOKEN=hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
| 50 |
#
|
| 51 |
# [REQUIRED in manual mode, OPTIONAL in auto mode]
|
| 52 |
#
|
| 53 |
-
|
|
|
|
|
|
|
| 54 |
|
| 55 |
# Whether to auto-create the Dataset repo if it doesn't exist.
|
| 56 |
# When true: HuggingClaw creates a PRIVATE dataset repo on first startup.
|
|
@@ -82,7 +86,9 @@ OPENCLAW_DATASET_REPO=your-username/HuggingClaw-data
|
|
| 82 |
#
|
| 83 |
# [RECOMMENDED] At least one of the following for AI conversations
|
| 84 |
#
|
| 85 |
-
|
|
|
|
|
|
|
| 86 |
|
| 87 |
# Optional: base URL for OpenAI-compatible API (default: https://api.openai.com/v1)
|
| 88 |
# Examples: https://openrouter.ai/api/v1, http://localhost:11434/v1 (Ollama), etc.
|
|
@@ -91,7 +97,9 @@ OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
| 91 |
|
| 92 |
# OpenRouter — one key, 200+ models, free tier: https://openrouter.ai/keys
|
| 93 |
#
|
| 94 |
-
|
|
|
|
|
|
|
| 95 |
|
| 96 |
# Other providers (OpenClaw reads these from the environment)
|
| 97 |
#
|
|
|
|
| 38 |
#
|
| 39 |
# [REQUIRED]
|
| 40 |
#
|
| 41 |
+
# [REQUIRED] - Must be set as Space Repository Secret
|
| 42 |
+
# Leave empty here - value comes from HF Space secrets
|
| 43 |
+
HF_TOKEN=
|
| 44 |
|
| 45 |
# Target Dataset repository for data backup.
|
| 46 |
# Format: your-username/repo-name
|
|
|
|
| 52 |
#
|
| 53 |
# [REQUIRED in manual mode, OPTIONAL in auto mode]
|
| 54 |
#
|
| 55 |
+
# [REQUIRED] - Must be set as Space Repository Secret
|
| 56 |
+
# Leave empty here - value comes from HF Space settings
|
| 57 |
+
OPENCLAW_DATASET_REPO=
|
| 58 |
|
| 59 |
# Whether to auto-create the Dataset repo if it doesn't exist.
|
| 60 |
# When true: HuggingClaw creates a PRIVATE dataset repo on first startup.
|
|
|
|
| 86 |
#
|
| 87 |
# [RECOMMENDED] At least one of the following for AI conversations
|
| 88 |
#
|
| 89 |
+
# [RECOMMENDED] - Must be set as Space Repository Secret
|
| 90 |
+
# Leave empty here - value comes from HF Space secrets
|
| 91 |
+
OPENAI_API_KEY=
|
| 92 |
|
| 93 |
# Optional: base URL for OpenAI-compatible API (default: https://api.openai.com/v1)
|
| 94 |
# Examples: https://openrouter.ai/api/v1, http://localhost:11434/v1 (Ollama), etc.
|
|
|
|
| 97 |
|
| 98 |
# OpenRouter — one key, 200+ models, free tier: https://openrouter.ai/keys
|
| 99 |
#
|
| 100 |
+
# [RECOMMENDED] - Must be set as Space Repository Secret
|
| 101 |
+
# Leave empty here - value comes from HF Space secrets
|
| 102 |
+
OPENROUTER_API_KEY=
|
| 103 |
|
| 104 |
# Other providers (OpenClaw reads these from the environment)
|
| 105 |
#
|