Connect or replace a subscription credential (write-only) [write]

Changed on

anthropic: the sk-ant-oat… token from claude setup-token. openai: the contents of ~/.codex/auth.json from codex login. cursor: a Cursor API key, or the sign-in file ~/.config/cursor/auth.json from cursor-agent login. xai: the sign-in file ~/.grok/auth.json from grok login. meta: the sign-in file ~/.config/muse/auth.json from muse login. Eligible agents can then run at $0 model usage; with useForNewAgents (default on), new eligible Claude, ChatGPT, Grok and Muse agents use it automatically. Cursor agents use it only when created or switched with modelBilling account.

put/model-subscriptions/{provider}

Request

  • Base URL
    https://api.agentsky.dev/v1
  • URL
    https://api.agentsky.dev/v1/model-subscriptions/{provider}
  • Auth
    HTTP bearer

Path parameters

provider'anthropic' | 'openai' | 'cursor' | 'xai' | 'meta' required

anthropic = Claude subscription · openai = ChatGPT plan · cursor = Cursor plan · xai = Grok subscription · meta = Muse subscription

Query parameters

accountIdstring

Target an additional account; omitted targets the legacy provider account

Request body

credentialstring required
labelstring

Response

OK

Changes

    • warning

      added the new meta enum value to the / response property for the response status

    • warning

      added the new org_disabled enum value to the / response property for the response status

    • warning

      added the new xai enum value to the / response property for the response status

    • info

      added the new enum value meta to the path request parameter provider

    • info

      added the new enum value xai to the path request parameter provider

    • info

      added the optional property / to the response with the status

    • info

      the response property became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status