tao-shen commited on
Commit
f10fd84
·
1 Parent(s): 90ba944

fix: disable gateway auth (HF provides access control), remove token inject hack

Browse files
Files changed (2) hide show
  1. openclaw.json +1 -3
  2. scripts/sync_hf.py +3 -6
openclaw.json CHANGED
@@ -3,9 +3,7 @@
3
  "mode": "local",
4
  "bind": "lan",
5
  "port": 7860,
6
- "auth": {
7
- "token": "openclaw-space-default"
8
- },
9
  "trustedProxies": [
10
  "0.0.0.0/0"
11
  ],
 
3
  "mode": "local",
4
  "bind": "lan",
5
  "port": 7860,
6
+ "auth": false,
 
 
7
  "trustedProxies": [
8
  "0.0.0.0/0"
9
  ],
scripts/sync_hf.py CHANGED
@@ -327,7 +327,7 @@ class OpenClawFullSync:
327
  "mode": "local",
328
  "bind": "lan",
329
  "port": 7860,
330
- "auth": {"token": "openclaw-space-default"},
331
  "trustedProxies": ["0.0.0.0/0"],
332
  "controlUi": {
333
  "allowInsecureAuth": True,
@@ -475,14 +475,11 @@ class OpenClawFullSync:
475
  print(f"[SYNC] Setting OPENROUTER_API_KEY environment variable")
476
  else:
477
  print(f"[SYNC] WARNING: OPENROUTER_API_KEY not set, LLM features may not work")
478
- env["OPENCLAW_GATEWAY_TOKEN"] = "openclaw-space-default"
479
- print(f"[SYNC] Setting OPENCLAW_GATEWAY_TOKEN environment variable")
480
-
481
  try:
482
  # Use Popen without shell to avoid pipe issues
483
- # Pass --token to bypass the auth token check
484
  process = subprocess.Popen(
485
- ["node", "dist/entry.js", "gateway", "--token", "openclaw-space-default"],
486
  cwd=str(APP_DIR),
487
  stdout=subprocess.PIPE, # Capture so we can log it
488
  stderr=subprocess.STDOUT,
 
327
  "mode": "local",
328
  "bind": "lan",
329
  "port": 7860,
330
+ "auth": False,
331
  "trustedProxies": ["0.0.0.0/0"],
332
  "controlUi": {
333
  "allowInsecureAuth": True,
 
475
  print(f"[SYNC] Setting OPENROUTER_API_KEY environment variable")
476
  else:
477
  print(f"[SYNC] WARNING: OPENROUTER_API_KEY not set, LLM features may not work")
 
 
 
478
  try:
479
  # Use Popen without shell to avoid pipe issues
480
+ # auth disabled in config no token needed
481
  process = subprocess.Popen(
482
+ ["node", "dist/entry.js", "gateway"],
483
  cwd=str(APP_DIR),
484
  stdout=subprocess.PIPE, # Capture so we can log it
485
  stderr=subprocess.STDOUT,