Skillpedia
الوكلاء7.4k · #13229

codexbar

ما الذي تفعله

تستخدم هذه المهارة أداة سطر الأوامر CodexBar لقراءة حدود الاستخدام والأرصدة المتبقية من حسابات خدمات الذكاء الاصطناعي. وهي لمن يريد أن يعرف كم بقي من خطة الذكاء الاصطناعي لديه.

متى تستخدمها

  • ✓عندما تسأل كم بقي لك من Codex أو Claude أو خدمة ذكاء اصطناعي أخرى.
  • ✓عندما تريد التحقق من حدود المعدل أو الأرصدة المتبقية.
  • ✓عندما تريد معرفة موعد تجديد حد الاستخدام.

رابط المهارة

https://github.com/steipete/agent-scripts/blob/main/skills/codexbar/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/steipete/agent-scripts/blob/main/skills/codexbar/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“كم بقي لي من استخدام Claude، ومتى يتجدد الحد؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يشغّل الوكيل أداة CodexBar، وهي تقرأ جلسات تسجيل الدخول الموجودة أو تسجيلات سطر الأوامر، ثم يعرض الحدود وأوقات التجديد. ولا تُكتب أي أسرار في الأمر.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

CodexBar

Use this when asked about AI subscription usage, rate limits, remaining credits, or "how much Codex/Claude/Kimi do I have left".

CLI

  • Binary: codexbar (Homebrew)
  • Default invocation honors the in-app provider toggles:
codexbar usage
codexbar usage --format json
  • Specific provider (--provider accepts codex, claude, kimi, gemini, copilot, cursor, openrouter, and many more — see codexbar --help):
codexbar usage --provider codex --json
codexbar usage --provider claude --json
  • Multiple accounts: --account <label>, --account-index <n>, or --all-accounts (single provider only).

Auth model

Provider fetches ride existing sessions — OAuth caches, CLI credentials, or browser cookies. No secrets are passed on the command line.

  • Codex: OpenAI web dashboard via oauth; falls back to Codex CLI.
  • Claude: claude.ai API via browser session cookie; falls back to Claude CLI. "No Claude session key found in browser cookies" means log in to claude.ai in a supported browser (or rely on the CLI fallback).
  • Token-based providers read the CodexBar config file.

Dashboard endpoints

The menu bar app serves its dashboard on loopback. The page pulls /dashboard/v1/snapshot and /cost; there is no /api/* namespace, so those paths 404 rather than telling you that you guessed. The snapshot endpoint requires auth, so when the CLI is unavailable the quickest honest check is to open the dashboard in a browser.

usage --all-accounts polls every account serially and takes well over ninety seconds. If it produces zero bytes on both stdout and stderr, it is not slow, it is blocked: the CLI is a helper inside CodexBar.app, and a pending macOS Gatekeeper prompt stops it dead with no output. Screenshot the screen before debugging the command.

Interpreting output

  • Errors for providers that were never configured are noise, not failures — only report providers the user actually uses.
  • Report percentage left, pace vs. expected, and reset time; the pace line ("in deficit"/"in reserve") is the actionable bit.
  • Claude rows read claude-swap stored backups, which produces two confusing readings. The currently active slot shows as having no stored credentials, because the live login is an active profile and its backup only materialises when you switch away. And claude-swap keeps a last seen percentage that keeps rendering for accounts whose credentials are gone, so a dead account can read as healthy for days. A plausible percentage is not proof of a working credential; only refresh token yes in claude-swap list --token-status is.
الأسئلة الشائعة

هل تحتاج إلى كلمات المرور الخاصة بي؟

لا. تستخدم عمليات البحث عن المزوّد جلسات تسجيل الدخول الموجودة، ولا توضع أسرار في سطر الأمر.

ماذا لو أبلغ Claude بأنه لم يُعثر على مفتاح جلسة؟

تنص المهارة على تسجيل الدخول إلى claude.ai في متصفح مدعوم، أو الاعتماد على البديل عبر سطر الأوامر.

هل تستطيع فحص عدة حسابات؟

نعم. يمكن اختيار حساب بالاسم أو بالرقم، أو فحص كل الحسابات لمزوّد واحد.

التفاصيل

الوصف الأصلي من المؤلف

AI service usage/quota via CodexBar CLI: Codex/OpenAI, Claude, Kimi and other provider limits, credits, reset times.

repo: steipete/agent-scripts

الشعبية

نجوم GitHub
7.4k
الترتيب
#13229
الترخيص
MIT
آخر تحديث
30‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة