provider-adapters

provider-adapters is a skill for Claude Code, Codex from kunchenguid/quota-axi. It costs 41 tokens per session (4,282 once invoked), scanned A, original, MIT.

Reference documentation for the provider-specific authentication, quota limits, API responses, error handling, and unusual behaviours supported by quota-axi. A provider is an external service that supplies usage information.

In plain words
What is it for?
Use it when implementing or debugging an existing provider adapter, including credential lookup, quota-window parsing, endpoint handling, and recovery from errors.
Why use it?
Different services expose credentials, limits, and errors in different ways. These notes help changes match each provider instead of assuming one common format.

Skill for Claude CodeCodex

Written for Claude Code and Codex: user-invocable in frontmatter, but also reads $CODEX_HOME. Also seen: mentions Claude Code; reads ~/.codex paths; mentions Codex.

Good fit Use it when implementing or debugging an existing provider adapter, including credential lookup, quota-window parsing, endpoint handling, and recovery from errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kunchenguid/quota-axi/provider-adapters
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kunchenguid/quota-axi --skill provider-adapters
Clone the repo
git clone --depth 1 https://github.com/kunchenguid/quota-axi

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for provider-adapters

README.md
[![agentmods](https://agentmods.dev/badge/skills/kunchenguid/quota-axi/provider-adapters/github.svg)](https://agentmods.dev/skills/kunchenguid/quota-axi/provider-adapters)
Your own site
<a href="https://agentmods.dev/skills/kunchenguid/quota-axi/provider-adapters"><img src="https://agentmods.dev/badge/skills/kunchenguid/quota-axi/provider-adapters/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for provider-adapters

Your own site · 80×15
<a href="https://agentmods.dev/skills/kunchenguid/quota-axi/provider-adapters"><img src="https://agentmods.dev/badge/skills/kunchenguid/quota-axi/provider-adapters.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,282 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.04282
Opus 5.5 $0.00016 $0.01713
Sonnet 5.5 $0.00008 $0.00856
Haiku 4.5 $0.00004 $0.00428

Measured 7d ago against content hash c637447576ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

provider-adapters scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/provider-adapters/SKILL.md · 192 lines

How it starts

The opening of the file, as written. The whole thing — 192 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Provider Adapters & Quirks

This reference details the credential sources, endpoint contracts, quota window structures, error handling, and vendor-specific quirks for the providers with dedicated sections below. Muse has no section here; its specification lives in the README provider notes.


1. Anthropic Claude (claude)

  • Credential Sources (evaluated in order):
    1. env (CLAUDE_CODE_OAUTH_TOKEN): Takes top precedence because Claude Code resolves environment tokens before opening local stores. It has no expiresAt or refresh token; never invent either and never route it through delegated refresh. claudeEnvOauthToken in src/lib/claude-profile.ts is the single reader. claudeCredentialContextId includes an env marker to prevent serving stored-credential cache snapshots for environment sessions.
    2. oauth-file: Reads the local profile credentials file.
    3. keychain: macOS Keychain item matching Claude Code's validated user account selector. Ambiguous service-only queries are forbidden. Value reads require an existing non-secret access marker (0600) or --allow-keychain-prompt. Keychain failures (including exit 44) must never retire the cache.
  • Quota Windows:
    • Windows can include five_hour, seven_day, seven_day_opus, and extra_usage.
    • When the OAuth usage payload includes a limits array, that array is authoritative over top-level fields. It exposes active limits, including model-scoped limits (e.g. Fable) via scope.model.display_name, assigned window ID model:<slug>.
  • Soft Expiry: A stored-expired, refreshable Claude token definitively rejected by the endpoint produces authStatus: expired_refreshable (a soft failure retaining cache), never auth_required.
  • Native Quota Probe: Bounded opt-in native inference quota probe lives in src/providers/claude-native-quota.ts. Keep it distinct from delegated refresh.
  • Delegated Refresh: Permitted via claude doctor only when no Claude Code process is running (src/lib/running-processes.ts).

Read the full file on GitHub · 192 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago Changed c637447576ec
  2. 1mo ago Changed 6e32d8bba2a0
  3. 1mo ago Changed f217b2271ceb
  4. 1mo ago Changed · +1 lines e6acb900763e
  5. 1mo ago Changed 78bb954bc824
  6. 1mo ago First seen · 191 lines · 41 tokens per session scan A 9f6538d46dbb

Subscribe to this mod's changes

provider-adapters is a skill published in the GitHub repository kunchenguid/quota-axi (182 stars, last pushed 5d ago), licensed MIT. It adds 41 tokens to every session and 4,282 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-05.

Related

provider-adapters compared with skills from other repositories

provider-adapters next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
provider-adapterskunchenguid/quota-axiSkill1825d agoMITA41Claude Code, Codex
data-manager-api-troubleshootinggoogle/skillsSkill25kyesterdayApache-2.0A179Claude Code, Codex
api-integration-architectsickn33/agentic-awesome-skillsSkill51kyesterdayMITA33Claude Code
openai-api-troubleshootingasgeirtj/system_prompts_leaksSkill74k3d agoCC0-1.0A91Claude Code, Codex
printing-press-amendmvanhorn/cli-printing-pressSkill5.1kyesterdayMITA222Claude Code
mirrord-replaymetalbear-co/mirrordSkill5.4ktodayMITA98Claude Code
ssl-proxy-troubleshootHKUDS/OpenSpaceSkill8.1k20d agoMITA20Claude Code, Codex