Skip to content

More resilient token lookup for quotas - #121

Merged
nnutter merged 3 commits into
masterfrom
grok
Nov 17, 2026
Merged

nnutter merged 3 commits into
masterfrom
grok

Conversation

@nnutter

@nnutter nnutter commented Nov 16, 2026

Copy link
Copy Markdown
Owner

No description provided.

Allow quotas to use an existing Grok CLI or Pi subscription sign-in
without requiring a separate Hermes sign-in. Prefer Grok's OIDC key,
then Pi's OAuth access token, retaining Hermes as the final fallback.
Skip missing or malformed stores and entries without an access token;
API-key entries do not qualify as subscription sign-ins.

Change-Id: If1349bd21f127c405eaa60b398b0388481dc7b87
Share Pi's typed credential lookup before adding its Copilot, Ollama
Cloud, and OpenCode Go credentials to quotas. Keep Grok's lookup order
and accepted credential format unchanged.

Change-Id: I654845edaba2069af193340cb3f48093cba386dd
Use existing Pi sign-ins to read these providers' quotas without
requiring Hermes credentials or a GitHub CLI sign-in. Explicit
environment variables remain overrides; Pi takes priority over Hermes
for API keys and over the GitHub CLI for Copilot.

Accept only API-key entries for Ollama Cloud and OpenCode Go and OAuth
access tokens for Copilot. Missing or unusable entries retain the
existing fallbacks. Codex and Muse continue to use their own CLIs.

Change-Id: I0948c0cbb2938a75e2ccc76ec610fcbfb552b5b2
@nnutter
nnutter enabled auto-merge November 16, 2026 23:53
@nnutter
nnutter merged commit d937164 into master Nov 17, 2026
3 checks passed
@nnutter
nnutter deleted the grok branch November 17, 2026 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant