Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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):
    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).

2. OpenAI Codex (codex)

  • Credential Sources (evaluated in order):
    1. Native $CODEX_HOME/auth.json or ~/.codex/auth.json OAuth.
    2. Pi openai-codex and any sibling openai-codex-* entries in the same Pi auth.json.
    3. CLI fallback via the app-server JSON-RPC probe.
  • Multi-Account Lanes:
    • src/providers/accounts.ts collects distinct Pi entries and the native codex-home lane; opt-in QUOTA_AXI_CODEX_HOMES adds 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-home cache 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_token alone must never mark auth-json expired or skip the bearer probe. Never send OPENAI_API_KEY to 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 publishes effectiveAvailability[].boundConflict and reports scope unknown rather than asserting exhaustion.
  • Delegated Refresh: Codex app-server JSON-RPC probe acts as both CLI fallback and delegated refresh.

3. Cursor (cursor)

  • Credential Sources:
    1. Editor state-vscdb: Reads $CURSOR_STATE_DB or local Cursor state database via sqlite3 -readonly for cursorAuth values. If sqlite3 is missing, report sqlite3_unavailable without attempting package installation.
    2. Cursor CLI (cursor-agent in src/providers/cursor-cli-credential.ts): macOS uses cli-keychain; Linux uses cli-authfile reading accessToken from $CURSOR_CLI_CONFIG or XDG cursor/auth.json.
    • Both sources operate independently; Cursor Desktop is not required.
    • Never read refreshToken or cursor-refresh-token. No delegated refresh exists for Cursor.
  • Quota Windows:
    • Windows from GetCurrentPeriodUsage: included_usage, auto_usage, api_usage, spend_limit.
    • Grok Bot from GetSandUsageStatus: Metered separately under scope grok_bot. Kept off the IDE all_models bound. Do not invoke trial, banked-reset, or machine registration RPCs.
  • Monthly Billing Cycle Calculation:
    • Resets on subscription renewal date. startsAt is calculated from billingCycleStart or by stepping billingCycleEnd back one calendar month (clamped to the shorter month).
    • Never substitute a fixed 30-day duration.

4. GitHub Copilot (copilot)

  • **Credent
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить provider-adapters с