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

codex-multi-subscription-auth-fallbacks

بواسطة markeljan

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

موجز

Set up OpenClaw multi-provider auth with OpenAI Codex OAuth fallback profiles and automatic model switching.

الوصف

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

Configures multiple OpenAI Codex OAuth profiles in OpenClaw and sets up automatic failover between them when a provider hits a rate limit. Includes a script for device-flow login that imports tokens into OpenClaw's auth-profiles store without exposing them externally. An optional cron job can auto-switch the active model when a provider enters cooldown.

Eliminates manual account switching by letting OpenClaw fail over to a backup Codex profile automatically when one account is rate-limited.

متى تستخدمها

  • Adding a second OpenAI Codex account to avoid rate limit interruptions
  • Rotating between Codex profiles during heavy coding sessions
  • Setting failover priority order across multiple OpenAI accounts
  • Automating model switching when a Codex session hits cooldown
  • Importing fresh OAuth tokens into OpenClaw without manual JSON editing

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

الإدخال

User asks: add my second OpenAI account as a fallback Codex profile named 'work'

الوكيل
  1. 1

    Runs codex-add-profile.sh work to start the import process

  2. 2

    Creates timestamped backups of ~/.codex/auth.json and auth-profiles.json

  3. 3

    Clears Codex CLI auth and triggers device-flow login via browser

  4. 4

    Extracts access token, refresh token, and expiry from the new session

  5. 5

    Writes the new 'work' profile into auth-profiles.json and restores original Codex auth

الإخراج

OpenClaw auth-profiles.json updated with a second Codex OAuth profile named 'work', ready for failover

المتطلبات

  • OpenAI account with Codex access
  • OpenAI Codex CLI installed (npm i -g @openai/codex)

التثبيت

clawhub install markeljan/codex-multi-subscription-auth-fallbacks

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

الروابط