Install
openclaw skills install @hirorylabo/xai-oauth-usageRead-only Hermes Agent skill for checking xAI OAuth usage, remaining quota, and reset time with Japanese/English output.
openclaw skills install @hirorylabo/xai-oauth-usageUse Hermes' canonical OAuth credential to check xAI weekly usage and reset time in read-only mode. Do not modify credentials, reauthenticate, perform billing actions, or claim that the reported quota is model-specific.
xai-oauth/grok-4.6 reports billing or quota exhaustionx_search can be retested after the quota resetsxai-oauth credential in Hermes' canonical auth storepython3 and HTTPS access to https://cli-chat-proxy.grok.comRun the script through Hermes' terminal tool with sanitized JSON output:
terminal(command='python3 "${HERMES_SKILL_DIR}/scripts/check_xai_usage.py" --json', timeout=30)
For human-readable output, use the same terminal call without --json.
Human-readable output and stderr follow HERMES_LANGUAGE, then Hermes' display.language. Japanese settings produce Japanese output; every other value and configuration lookup failure produce English output. JSON keys and JSON error strings always remain in English.
Entry point: scripts/check_xai_usage.py
| Field | Meaning |
|---|---|
used_percent | Current weekly usage percentage |
remaining_percent | 100 - used_percent, clamped at zero |
period_end_jst | Billing API period end converted to JST |
remaining_seconds | Seconds from execution time until the period ends |
product_usage | Per-product usage returned by the Billing API |
source_host | cli-chat-proxy.grok.com on success |
terminal call in How to Run once. Do not redirect, log in, log out, refresh, reset, or top up.status: ok, report only usage, remaining quota, period_end_jst, approximate time remaining, and product_usage, using Hermes' display language.remaining_percent is zero and remaining_seconds is positive, treat the quota as not yet recovered.status: error, report only error and http_status. Do not automatically reauthenticate after a 401 or 403 response.auth.json contents, or the raw API response in an answer.Example report:
xAI OAuth weekly quota is 100% used.
Reset: 2026-08-29 23:04 JST, approximately 29 hours 3 minutes remaining.
Breakdown: GrokBuild 100%.
billing period may represent a shared weekly quota. Do not claim it is a Grok 4.6-specific limit.period_end_jst as authoritative and label remaining time as approximate.billing after the reset time, query once more instead of performing a blind reset.In a source checkout, run the network-free regression tests from the skill directory:
python3 -m unittest discover -s tests -v
For a skill installed through Hermes, run this network-free smoke test:
terminal(command='python3 "${HERMES_SKILL_DIR}/scripts/check_xai_usage.py" --help', timeout=30)
Only with user approval, run the live request from How to Run and verify status: ok, the expected source_host, and the absence of token fields.
HermesのxAI OAuth週間利用率・残量・リセット時刻を、認証情報を変更せず読み取り専用で確認するskillです。 通常表示とstderrはHermesが日本語設定なら日本語、それ以外は英語になります。JSONのキーとエラー文は英語固定です。 実行前にユーザーの承認を確認し、tokenや生のAPIレスポンスは表示・保存しません。