Connect or replace a subscription credential (write-only) [write]
Changed onanthropic: 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.
Request
- Base URLhttps://api.agentsky.dev/v1
- URLhttps://api.agentsky.dev/v1/model-subscriptions/{provider}
- AuthHTTP bearer
Path parameters
anthropic = Claude subscription · openai = ChatGPT plan · cursor = Cursor plan · xai = Grok subscription · meta = Muse subscription
Query parameters
Target an additional account; omitted targets the legacy provider account
Request body
Response
OK
Changes
- warning
added the new
metaenum value to the/response property for the response status - warning
added the new
org_disabledenum value to the/response property for the response status - warning
added the new
xaienum value to the/response property for the response status - info
added the new enum value
metato thepathrequest parameterprovider - info
added the new enum value
xaito thepathrequest parameterprovider - 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
- warning