تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

gateway-guard

بواسطة runeweaverstudios

Coding Agents & IDEs
670التنزيلات وفق ما يذكره clawskills.sh
2النجوم
1المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Ensures OpenClaw gateway auth consistency and can auto-prompt "continue" when a run error (Unhandled stop reason.

الوصف

ما الذي تفعله هذه المهارة

Keeps OpenClaw gateway authentication in sync with openclaw.json by detecting token and password mismatches. Can automatically send "continue" to a stalled agent when "Unhandled stop reason: error" appears in gateway logs. Invoke it before delegating to sub-agents or after updating OpenClaw.

Automates the check-and-restart cycle that would otherwise require manually inspecting logs, editing openclaw.json, and restarting the gateway each time auth drifts.

متى تستخدمها

  • Diagnosing device_token_mismatch errors before spawning sub-agents
  • Verifying gateway auth is correct after an OpenClaw update
  • Auto-resuming stalled agent runs when a run error appears in gateway logs
  • Restarting the gateway with the correct credentials when the TUI disconnects
  • Checking gateway status at the start of an orchestrator flow

مثال على سير العمل

الإدخال

User asks: The TUI won't connect and logs show device_token_mismatch

الوكيل
  1. 1

    Run gateway_guard.py status --json to get current auth state

  2. 2

    Detect mismatch between running gateway credentials and openclaw.json

  3. 3

    Run gateway_guard.py ensure --apply --wait to restart gateway with correct credentials

  4. 4

    Confirm gateway port is open and status returns ok

الإخراج

Gateway restarted with credentials matching openclaw.json, TUI can reconnect

التثبيت

clawhub install runeweaverstudios/gateway-guard

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط