8900 commited on
Commit
984597c
·
verified ·
1 Parent(s): 112a802

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +23 -37
README.md CHANGED
@@ -1,50 +1,36 @@
1
- -----
2
-
3
- ## title: OpenClaw Gateway
4
- emoji: 🤨
5
  colorFrom: blue
6
- colorTo: indigo
7
  sdk: docker
8
  app_port: 7860
9
- pinned: false
10
-
11
- # OpenClaw Gateway on Hugging Face Spaces
12
-
13
- ## Required Secrets (Settings -> Secrets)
14
 
15
- |Secret |Description |
16
- |----------------------|--------------------------------------------|
17
- |OPENCLAW_GATEWAY_TOKEN|
18
- |HF_TOKEN |HF token with Inference Providers permission|
19
 
20
- ## Provider API Keys (Settings -> Secrets)
 
21
 
22
- |Secret |Provider |
23
- |------------------|----------------|
24
- |GEMINI_API_KEY |Google Gemini |
25
- |GROQ_API_KEY |Groq |
26
- |TELEGRAM_BOT_TOKEN|Telegram |
27
- |ANTHROPIC_API_KEY |Anthropic Claude|
28
- |OPENAI_API_KEY |OpenAI |
29
 
30
- ## Optional Secrets
31
 
32
- |Secret |Description |
33
- |--------------------------------|--------------------------------------------|
34
- |OPENCLAW_HF_DEFAULT_MODEL |Default model e.g. huggingface/Qwen/Qwen3-8B|
35
- |OPENCLAW_GATEWAY_PASSWORD |Password auth (token wins if both set) |
36
- |OPENCLAW_GATEWAY_TRUSTED_PROXIES|Comma-separated proxy IPs from logs |
37
 
38
- ## Connect
39
 
40
- After Space starts and logs show “listening on ws://0.0.0.0:7860”:
 
 
 
41
 
42
- ```
43
- https://YOUR-USERNAME-openclaw-gateway.hf.space/#token=YOUR_TOKEN
44
- ```
45
 
46
- ## Troubleshooting
47
 
48
- If you see “Proxy headers detected from untrusted address” in logs,
49
- find the remote=X.X.X.X IP and add it to OPENCLAW_GATEWAY_TRUSTED_PROXIES,
50
- then restart the Space.
 
1
+ ---
2
+ title: OpenClaw HF
3
+ emoji: 🤖
 
4
  colorFrom: blue
5
+ colorTo: purple
6
  sdk: docker
7
  app_port: 7860
8
+ ---
 
 
 
 
9
 
10
+ # OpenClaw on HuggingFace
 
 
 
11
 
12
+ 无需 Cloudflare Worker
13
+ 已修复:
14
 
15
+ ✅ WebSocket 1005
16
+ ✅ WebSocket 1008
17
+ ✅ 无法登录后台
18
+ ✅ 环境变量读取失败
19
+ ✅ Gemini / Groq / Telegram 不生效
 
 
20
 
21
+ ---
22
 
23
+ ## 必填 Secrets
 
 
 
 
24
 
25
+ 在 HF 设置里填:
26
 
27
+ - OPENCLAW_GATEWAY_TOKEN
28
+ - GEMINI_API_KEY(可选)
29
+ - GROQ_API_KEY(可选)
30
+ - TELEGRAM_BOT_TOKEN(可选)
31
 
32
+ ---
 
 
33
 
34
+ ## 登录方式
35
 
36
+ 打开 Space → 输入 token 即可登录