provider-adapters
БесплатноБез исполняемых скриптовНе проверенProvider-specific auth sources, quota windows, endpoint shapes, error recovery, and quirks for the quota-axi providers with dedicated sections below; Muse is…
от kunchenguid★ 182 звезды на 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):
env(CLAUDE_CODE_OAUTH_TOKEN): Takes top precedence because Claude Code resolves environment tokens before opening local stores. It has noexpiresAtor refresh token; never invent either and never route it through delegated refresh.claudeEnvOauthTokeninsrc/lib/claude-profile.tsis the single reader.claudeCredentialContextIdincludes an env marker to prevent serving stored-credential cache snapshots for environment sessions.oauth-file: Reads the local profile credentials file.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, andextra_usage. - When the OAuth usage payload includes a
limitsarray, that array is authoritative over top-level fields. It exposes active limits, including model-scoped limits (e.g. Fable) viascope.model.display_name, assigned window IDmodel:<slug>.
- Windows can include
- Soft Expiry: A stored-expired, refreshable Claude token definitively rejected by the endpoint produces
authStatus: expired_refreshable(a soft failure retaining cache), neverauth_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 doctoronly when no Claude Code process is running (src/lib/running-processes.ts).
2. OpenAI Codex (codex)
- Credential Sources (evaluated in order):
- Native
$CODEX_HOME/auth.jsonor~/.codex/auth.jsonOAuth. - Pi
openai-codexand any siblingopenai-codex-*entries in the same Piauth.json. - CLI fallback via the
app-serverJSON-RPC probe.
- Native
- Multi-Account Lanes:
src/providers/accounts.tscollects distinct Pi entries and the nativecodex-homelane; opt-inQUOTA_AXI_CODEX_HOMESadds isolated listed-home lanes. User-facing semantics are documented in README Codex homes.- Accounts are matched and deduplicated on the ChatGPT account ID reported by the probe/store, never on email or token strings.
- If a native reading matches an existing Pi lane account ID, it collapses into that lane, publishing whichever reading is fresher; coalescing never removes the shared
codex-homecache slot by name, so another account's snapshot cannot be discarded. Contract: README Multiple accounts.
- Authorization Rules: OAuth access token is authoritative. An expired
id_tokenalone must never markauth-jsonexpired or skip the bearer probe. Never sendOPENAI_API_KEYto ChatGPT quota endpoints. - Bound Conflict: Codex model windows are metered separately as
additional_rate_limits/rateLimitsByLimitId. If an inherited base weekly window reads zero while a model window retains allowance, quota-axi publisheseffectiveAvailability[].boundConflictand reports scopeunknownrather than asserting exhaustion. - Delegated Refresh: Codex
app-serverJSON-RPC probe acts as both CLI fallback and delegated refresh.
3. Cursor (cursor)
- Credential Sources:
- Editor
state-vscdb: Reads$CURSOR_STATE_DBor local Cursor state database viasqlite3 -readonlyforcursorAuthvalues. Ifsqlite3is missing, reportsqlite3_unavailablewithout attempting package installation. - Cursor CLI (
cursor-agentinsrc/providers/cursor-cli-credential.ts): macOS usescli-keychain; Linux usescli-authfilereadingaccessTokenfrom$CURSOR_CLI_CONFIGor XDGcursor/auth.json.
- Both sources operate independently; Cursor Desktop is not required.
- Never read
refreshTokenorcursor-refresh-token. No delegated refresh exists for Cursor.
- Editor
- Quota Windows:
- Windows from
GetCurrentPeriodUsage:included_usage,auto_usage,api_usage,spend_limit. - Grok Bot from
GetSandUsageStatus: Metered separately under scopegrok_bot. Kept off the IDEall_modelsbound. Do not invoke trial, banked-reset, or machine registration RPCs.
- Windows from
- Monthly Billing Cycle Calculation:
- Resets on subscription renewal date.
startsAtis calculated frombillingCycleStartor by steppingbillingCycleEndback one calendar month (clamped to the shorter month). - Never substitute a fixed 30-day duration.
- Resets on subscription renewal date.
4. GitHub Copilot (copilot)
- **Credent
Установить provider-adapters в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл provider-adapters?
Provider-specific auth sources, quota windows, endpoint shapes, error recovery, and quirks for the quota-axi providers with dedicated sections below; Muse is covered in the README provider notes.
Как установить скилл provider-adapters?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл provider-adapters запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic