Stores a new opencode_auth_file connection under its name, leaving every other connection in place.
Use this tool when you need to:
- Connect the providers OpenCode is signed in to on the caller's machine, from its auth.json, so the caller's OpenCode tasks can run on them
- Add another OpenCode auth file beside one the caller already holds, under its own name
Examples:
- POST /connections/opencode-auth-file {"name": "Laptop OpenCode", "contents": "{\"anthropic\": {\"type\": \"api\", \"key\": \"sk-ant-api03-abcdefghij\"}}"}
Hints:
- name is required: 1 to 100 characters on one line, with no space, tab, form feed or carriage return at either end; the schema answers 422 otherwise, and a name it admits is stored as sent.
- contents is required: the caller's ~/.local/share/opencode/auth.json verbatim, a JSON object of unique provider ids, each entry of type api (with key), oauth (with access, refresh and expires) or wellknown (with key and token) as OpenCode writes it. The schema answers 422 for empty contents and the handler's vendor-format check 422 for any other file it refuses, neither with a code.
- Answers 201 with the connection: option opencode_auth_file, id, name, providers (the file's provider ids, sorted) and reauth null, never the file. It becomes the OpenCode default when the caller has none; a default the caller has stays.
- Use addOpenrouterApiKeyConnection instead for an OpenRouter API key alone, reconnectConnection to replace the file of a connection the caller holds and keep its id, and setDefaultConnection to make it the default.
- Any signed-in user may call it for themselves; through a platform API key pinned to an org where the caller is a viewer or billing member it is refused with 403 org_role_insufficient, and an agent host's grant with 403 agent_host_route_not_allowed.
- Refused with 409 connection_name_taken when the caller already uses the name for an OpenCode auth file.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Aether","colors":{"primary":"#9184ff","light":"#b3a9ff","dark":"#9184ff"},"logo":{"light":"https://mintcdn.com/aether-c4587800/hrC9bOYLpJ53VNbo/logo/light.svg?fit=max\u0026auto=format\u0026n=hrC9bOYLpJ53VNbo\u0026q=85\u0026s=cdf40b8647da8a5d82a91e289a1958f7","dark":"https://mintcdn.com/aether-c4587800/hrC9bOYLpJ53VNbo/logo/dark.svg?fit=max\u0026auto=format\u0026n=hrC9bOYLpJ53VNbo\u0026q=85\u0026s=ff1a5d20e563918957a5f0eba367dee4","href":"https://www.runaether.dev"},"favicon":"https://mintcdn.com/aether-c4587800/hrC9bOYLpJ53VNbo/favicon.svg?fit=max\u0026auto=format\u0026n=hrC9bOYLpJ53VNbo\u0026q=85\u0026s=26bfe1ec698456a716b64fb50a5848be","api":{"openapi":"api-reference/openapi.json"},"appearance":{"default":"dark","strict":true},"background":{"color":{"light":"#f4f3ef","dark":"#08080b"}},"navbar":{"links":[{"href":"https://www.runaether.dev/changelog","label":"Changelog"}],"primary":{"type":"button","label":"Open Aether","href":"https://app.runaether.dev"}},"footer":{"socials":{"x":"https://x.com/pranavctl","github":"https://github.com/Aether-Runtime"}},"fonts":{"family":"Geist"},"styling":{"codeblocks":"dark","latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"aether-c4587800","hasAudioNarration":false,"actualSubdomain":"aether-c4587800","customDomains":["docs.runaether.dev"],"gitSource":{"type":"github","owner":"aether-runtime","repo":"aether","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6af26ce7f1d8ff0c24b93b53","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"API Reference","count":340},{"language":"default","tag":"Tasks","count":55},{"language":"default","tag":"CLI Reference","count":41},{"language":"default","tag":"Pull Requests","count":35},{"language":"default","tag":"Guides","count":29},{"language":"default","tag":"Computers","count":27},{"language":"default","tag":"Using Aether","count":25},{"language":"default","tag":"MCP Servers","count":23},{"language":"default","tag":"Concepts","count":22},{"language":"default","tag":"Agent","count":17}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":":root{color-scheme:dark}::selection{background:rgba(145, 132, 255, 0.25)}"}],"page":{"pagePath":"api-reference/endpoints/connections/post-connections-opencode-auth-file","slug":"/api-reference/endpoints/connections/post-connections-opencode-auth-file","pageMetadata":{"title":"Add a connection: OpenCode auth file","openapi":"api-reference/openapi.json POST /connections/opencode-auth-file","description":"Stores a new opencode_auth_file connection under its name, leaving every other connection in place.\n\nUse this tool when you need to:\n- Connect the providers OpenCode is signed in to on the caller's machine, from its auth.json, so the caller's OpenCode tasks can run on them\n- Add another OpenCode auth file beside one the caller already holds, under its own name\n\nExamples:\n- POST /connections/opencode-auth-file {\"name\": \"Laptop OpenCode\", \"contents\": \"{\\\"anthropic\\\": {\\\"type\\\": \\\"api\\\", \\\"key\\\": \\\"sk-ant-api03-abcdefghij\\\"}}\"}\n\nHints:\n- name is required: 1 to 100 characters on one line, with no space, tab, form feed or carriage return at either end; the schema answers 422 otherwise, and a name it admits is stored as sent.\n- contents is required: the caller's ~/.local/share/opencode/auth.json verbatim, a JSON object of unique provider ids, each entry of type api (with key), oauth (with access, refresh and expires) or wellknown (with key and token) as OpenCode writes it. The schema answers 422 for empty contents and the handler's vendor-format check 422 for any other file it refuses, neither with a code.\n- Answers 201 with the connection: option opencode_auth_file, id, name, providers (the file's provider ids, sorted) and reauth null, never the file. It becomes the OpenCode default when the caller has none; a default the caller has stays.\n- Use addOpenrouterApiKeyConnection instead for an OpenRouter API key alone, reconnectConnection to replace the file of a connection the caller holds and keep its id, and setDefaultConnection to make it the default.\n- Any signed-in user may call it for themselves; through a platform API key pinned to an org where the caller is a viewer or billing member it is refused with 403 org_role_insufficient, and an agent host's grant with 403 agent_host_route_not_allowed.\n- Refused with 409 connection_name_taken when the caller already uses the name for an OpenCode auth file.","href":"/api-reference/endpoints/connections/post-connections-opencode-auth-file"},"description":"Stores a new opencode_auth_file connection under its name, leaving every other connection in place.\n\nUse this tool when you need to:\n- Connect the providers OpenCode is signed in to on the caller's machine, from its auth.json, so the caller's OpenCode tasks can run on them\n- Add another OpenCode auth file beside one the caller already holds, under its own name\n\nExamples:\n- POST /connections/opencode-auth-file {\"name\": \"Laptop OpenCode\", \"contents\": \"{\\\"anthropic\\\": {\\\"type\\\": \\\"api\\\", \\\"key\\\": \\\"sk-ant-api03-abcdefghij\\\"}}\"}\n\nHints:\n- name is required: 1 to 100 characters on one line, with no space, tab, form feed or carriage return at either end; the schema answers 422 otherwise, and a name it admits is stored as sent.\n- contents is required: the caller's ~/.local/share/opencode/auth.json verbatim, a JSON object of unique provider ids, each entry of type api (with key), oauth (with access, refresh and expires) or wellknown (with key and token) as OpenCode writes it. The schema answers 422 for empty contents and the handler's vendor-format check 422 for any other file it refuses, neither with a code.\n- Answers 201 with the connection: option opencode_auth_file, id, name, providers (the file's provider ids, sorted) and reauth null, never the file. It becomes the OpenCode default when the caller has none; a default the caller has stays.\n- Use addOpenrouterApiKeyConnection instead for an OpenRouter API key alone, reconnectConnection to replace the file of a connection the caller holds and keep its id, and setDefaultConnection to make it the default.\n- Any signed-in user may call it for themselves; through a platform API key pinned to an org where the caller is a viewer or billing member it is refused with 403 org_role_insufficient, and an agent host's grant with 403 agent_host_route_not_allowed.\n- Refused with 409 connection_name_taken when the caller already uses the name for an OpenCode auth file.","pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Add a connection: OpenCode auth file","openapi":"api-reference/openapi.json POST /connections/opencode-auth-file","description":"Stores a new opencode_auth_file connection under its name, leaving every other connection in place.\n\nUse this tool when you need to:\n- Connect the providers OpenCode is signed in to on the caller's machine, from its auth.json, so the caller's OpenCode tasks can run on them\n- Add another OpenCode auth file beside one the caller already holds, under its own name\n\nExamples:\n- POST /connections/opencode-auth-file {\"name\": \"Laptop OpenCode\", \"contents\": \"{\\\"anthropic\\\": {\\\"type\\\": \\\"api\\\", \\\"key\\\": \\\"sk-ant-api03-abcdefghij\\\"}}\"}\n\nHints:\n- name is required: 1 to 100 characters on one line, with no space, tab, form feed or carriage return at either end; the schema answers 422 otherwise, and a name it admits is stored as sent.\n- contents is required: the caller's ~/.local/share/opencode/auth.json verbatim, a JSON object of unique provider ids, each entry of type api (with key), oauth (with access, refresh and expires) or wellknown (with key and token) as OpenCode writes it. The schema answers 422 for empty contents and the handler's vendor-format check 422 for any other file it refuses, neither with a code.\n- Answers 201 with the connection: option opencode_auth_file, id, name, providers (the file's provider ids, sorted) and reauth null, never the file. It becomes the OpenCode default when the caller has none; a default the caller has stays.\n- Use addOpenrouterApiKeyConnection instead for an OpenRouter API key alone, reconnectConnection to replace the file of a connection the caller holds and keep its id, and setDefaultConnection to make it the default.\n- Any signed-in user may call it for themselves; through a platform API key pinned to an org where the caller is a viewer or billing member it is refused with 403 org_role_insufficient, and an agent host's grant with 403 agent_host_route_not_allowed.\n- Refused with 409 connection_name_taken when the caller already uses the name for an OpenCode auth file.","href":"/api-reference/endpoints/connections/post-connections-opencode-auth-file"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Stores a new opencode_auth_file connection under its name, leaving every other connection in place.\n\nUse this tool when you need to:\n- Connect the providers OpenCode is signed in to on the caller's machine, from its auth.json, so the caller's OpenCode tasks can run on them\n- Add another OpenCode auth file beside one the caller already holds, under its own name\n\nExamples:\n- POST /connections/opencode-auth-file {\"name\": \"Laptop OpenCode\", \"contents\": \"{\\\"anthropic\\\": {\\\"type\\\": \\\"api\\\", \\\"key\\\": \\\"sk-ant-api03-abcdefghij\\\"}}\"}\n\nHints:\n- name is required: 1 to 100 characters on one line, with no space, tab, form feed or carriage return at either end; the schema answers 422 otherwise, and a name it admits is stored as sent.\n- contents is required: the caller's ~/.local/share/opencode/auth.json verbatim, a JSON object of unique provider ids, each entry of type api (with key), oauth (with access, refresh and expires) or wellknown (with key and token) as OpenCode writes it. The schema answers 422 for empty contents and the handler's vendor-format check 422 for any other file it refuses, neither with a code.\n- Answers 201 with the connection: option opencode_auth_file, id, name, providers (the file's provider ids, sorted) and reauth null, never the file. It becomes the OpenCode default when the caller has none; a default the caller has stays.\n- Use addOpenrouterApiKeyConnection instead for an OpenRouter API key alone, reconnectConnection to replace the file of a connection the caller holds and keep its id, and setDefaultConnection to make it the default.\n- Any signed-in user may call it for themselves; through a platform API key pinned to an org where the caller is a viewer or billing member it is refused with 403 org_role_insufficient, and an agent host's grant with 403 agent_host_route_not_allowed.\n- Refused with 409 connection_name_taken when the caller already uses the name for an OpenCode auth file.","operationId":"addOpencodeAuthFileConnection","requestBody":"4fed1914-879a-4a6b-9c93-85a487d95d33","responses":{"201":"4513c6e7-b000-4e2d-a6eb-6a59efa1c9a4","400":"b1779f21-b6fb-42e1-8aa2-e25a5b8561fb","401":"fc13c68b-1c9d-43b9-bbc6-e1f55e21db28","403":"aaec3f80-4741-4684-8cc4-62805bcb6e79","409":"52f4fa82-628f-4a5a-89be-12aeddda5247","422":"f170a773-79be-4c42-ac68-e76c1999f8e1","500":"2f99d615-2f14-448f-ad87-ff1983a8d189"},"summary":"Add a connection: OpenCode auth file","tags":["connections"],"x-aether-access":{"principal":"user","kinds":["jwt","api_key"],"scope":"write","org":"person"},"x-aether-label":"connections.opencodeAuthFile.add","method":"post","type":"path","servers":["66ab535b-c4ec-41e3-98da-d80687cb1fb1"],"security":["9afdaa3a-ab5d-440b-98ad-31a38432c246"],"path":"/connections/opencode-auth-file","baseUrlOptions":["https://api.runaether.dev"],"title":"Add a connection: OpenCode auth file","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"contents":{"description":"Your ~/.local/share/opencode/auth.json, verbatim.","minLength":1,"type":"string","isRequired":true,"uniqueKey":"contents","typeLabel":"string"},"name":{"description":"The connection's name: unique among your connections of its option, without leading or trailing spaces.","maxLength":100,"minLength":1,"pattern":"^\\S(.*\\S)?$","type":"string","isRequired":true,"uniqueKey":"name","typeLabel":"string"}},"required":["name","contents"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"contents":"\u003cstring>","name":"\u003cstring>"}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"4513c6e7-b000-4e2d-a6eb-6a59efa1c9a4":{"content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"One connection you hold, a variant per option: which credential it holds, qualified by its vendor. reauth is null while the stored credential works.","required":["option","id","name","reauth"],"properties":{"id":{"format":"uuid","type":"string","isRequired":true,"uniqueKey":"oneOf.0.id","typeLabel":"string\u003cuuid>"},"name":{"description":"The name you gave the connection, unique among your connections of its option.","minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.0.name","typeLabel":"string"},"option":{"enum":["claude_plan"],"type":"string","isRequired":true,"uniqueKey":"oneOf.0.option","typeLabel":"enum\u003cstring>"},"reauth":{"oneOf":[{"type":"object","required":["reason"],"properties":{"reason":{"description":"Why the stored credential failed, as the vendor said.","minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.0.reauth.oneOf.0.reason","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.reauth.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.0.reauth.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.reauth","typeLabel":"object | null"},"limits":{"description":"The vendor limits this connection has spent, excluding markers whose reset time has passed.","items":{"oneOf":[{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.0.reason","typeLabel":"string"},"scope":{"enum":["session"],"type":"string","isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.0.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.0.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.0.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.0.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.1.reason","typeLabel":"string"},"scope":{"enum":["weekly"],"type":"string","isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.1.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.1.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.1.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.1.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["scope","until","reason","model"],"properties":{"model":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.2.model","typeLabel":"string"},"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.2.reason","typeLabel":"string"},"scope":{"enum":["model"],"type":"string","isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.2.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.2.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.2.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.2.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.3.reason","typeLabel":"string"},"scope":{"enum":["credits"],"type":"string","isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.3.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.3.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.3.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.3.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.4.reason","typeLabel":"string"},"scope":{"enum":["usage"],"type":"string","isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.4.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.4.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.4.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.4.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.0.limits.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"oneOf.0.limits.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.0.limits","typeLabel":"object[]"},"profiles":{"description":"The agent profiles that run on the connection.","items":{"additionalProperties":false,"properties":{"id":{"format":"uuid","type":"string","isRequired":true,"uniqueKey":"oneOf.0.profiles.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"name":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.0.profiles.items.[INDEX].name","typeLabel":"string"},"org":{"description":"The name of the organization the profile belongs to.","minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.0.profiles.items.[INDEX].org","typeLabel":"string"}},"required":["id","name","org"],"type":"object","uniqueKey":"oneOf.0.profiles.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.0.profiles","typeLabel":"object[]"}},"additionalProperties":false,"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"One connection you hold, a variant per option: which credential it holds, qualified by its vendor. reauth is null while the stored credential works.","required":["option","id","name","reauth"],"properties":{"id":{"format":"uuid","type":"string","isRequired":true,"uniqueKey":"oneOf.1.id","typeLabel":"string\u003cuuid>"},"name":{"description":"The name you gave the connection, unique among your connections of its option.","minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.1.name","typeLabel":"string"},"option":{"enum":["anthropic_api_key"],"type":"string","isRequired":true,"uniqueKey":"oneOf.1.option","typeLabel":"enum\u003cstring>"},"reauth":{"oneOf":[{"type":"object","required":["reason"],"properties":{"reason":{"description":"Why the stored credential failed, as the vendor said.","minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.1.reauth.oneOf.0.reason","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.1.reauth.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.1.reauth.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.reauth","typeLabel":"object | null"},"key_suffix":{"description":"The key's last four characters, for a key of at least eight.","minLength":1,"type":"string","uniqueKey":"oneOf.1.key_suffix","typeLabel":"string"},"limits":{"description":"The vendor limits this connection has spent, excluding markers whose reset time has passed.","items":{"oneOf":[{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.0.reason","typeLabel":"string"},"scope":{"enum":["session"],"type":"string","isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.0.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.0.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.0.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.0.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.1.reason","typeLabel":"string"},"scope":{"enum":["weekly"],"type":"string","isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.1.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.1.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.1.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.1.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["scope","until","reason","model"],"properties":{"model":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.2.model","typeLabel":"string"},"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.2.reason","typeLabel":"string"},"scope":{"enum":["model"],"type":"string","isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.2.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.2.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.2.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.2.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.3.reason","typeLabel":"string"},"scope":{"enum":["credits"],"type":"string","isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.3.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.3.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.3.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.3.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.4.reason","typeLabel":"string"},"scope":{"enum":["usage"],"type":"string","isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.4.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.4.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.4.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.4.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.1.limits.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"oneOf.1.limits.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.1.limits","typeLabel":"object[]"},"profiles":{"description":"The agent profiles that run on the connection.","items":{"additionalProperties":false,"properties":{"id":{"format":"uuid","type":"string","isRequired":true,"uniqueKey":"oneOf.1.profiles.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"name":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.1.profiles.items.[INDEX].name","typeLabel":"string"},"org":{"description":"The name of the organization the profile belongs to.","minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.1.profiles.items.[INDEX].org","typeLabel":"string"}},"required":["id","name","org"],"type":"object","uniqueKey":"oneOf.1.profiles.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.1.profiles","typeLabel":"object[]"}},"additionalProperties":false,"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","description":"One connection you hold, a variant per option: which credential it holds, qualified by its vendor. reauth is null while the stored credential works.","required":["option","id","name","reauth"],"properties":{"id":{"format":"uuid","type":"string","isRequired":true,"uniqueKey":"oneOf.2.id","typeLabel":"string\u003cuuid>"},"name":{"description":"The name you gave the connection, unique among your connections of its option.","minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.2.name","typeLabel":"string"},"option":{"enum":["chatgpt_plan"],"type":"string","isRequired":true,"uniqueKey":"oneOf.2.option","typeLabel":"enum\u003cstring>"},"reauth":{"oneOf":[{"type":"object","required":["reason"],"properties":{"reason":{"description":"Why the stored credential failed, as the vendor said.","minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.2.reauth.oneOf.0.reason","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.2.reauth.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.2.reauth.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.2.reauth","typeLabel":"object | null"},"email":{"description":"The ChatGPT account's email, when its token names one.","minLength":1,"type":"string","uniqueKey":"oneOf.2.email","typeLabel":"string"},"limits":{"description":"The vendor limits this connection has spent, excluding markers whose reset time has passed.","items":{"oneOf":[{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.0.reason","typeLabel":"string"},"scope":{"enum":["session"],"type":"string","isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.0.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.0.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.0.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.0.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.1.reason","typeLabel":"string"},"scope":{"enum":["weekly"],"type":"string","isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.1.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.1.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.1.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.1.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["scope","until","reason","model"],"properties":{"model":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.2.model","typeLabel":"string"},"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.2.reason","typeLabel":"string"},"scope":{"enum":["model"],"type":"string","isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.2.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.2.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.2.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.2.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.3.reason","typeLabel":"string"},"scope":{"enum":["credits"],"type":"string","isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.3.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.3.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.3.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.3.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.4.reason","typeLabel":"string"},"scope":{"enum":["usage"],"type":"string","isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.4.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.4.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.4.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.4.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.2.limits.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"oneOf.2.limits.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.2.limits","typeLabel":"object[]"},"profiles":{"description":"The agent profiles that run on the connection.","items":{"additionalProperties":false,"properties":{"id":{"format":"uuid","type":"string","isRequired":true,"uniqueKey":"oneOf.2.profiles.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"name":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.2.profiles.items.[INDEX].name","typeLabel":"string"},"org":{"description":"The name of the organization the profile belongs to.","minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.2.profiles.items.[INDEX].org","typeLabel":"string"}},"required":["id","name","org"],"type":"object","uniqueKey":"oneOf.2.profiles.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.2.profiles","typeLabel":"object[]"}},"additionalProperties":false,"uniqueKey":"oneOf.2","typeLabel":"object"},{"type":"object","description":"One connection you hold, a variant per option: which credential it holds, qualified by its vendor. reauth is null while the stored credential works.","required":["option","id","name","reauth"],"properties":{"id":{"format":"uuid","type":"string","isRequired":true,"uniqueKey":"oneOf.3.id","typeLabel":"string\u003cuuid>"},"name":{"description":"The name you gave the connection, unique among your connections of its option.","minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.3.name","typeLabel":"string"},"option":{"enum":["chatgpt_host_plan"],"type":"string","isRequired":true,"uniqueKey":"oneOf.3.option","typeLabel":"enum\u003cstring>"},"reauth":{"oneOf":[{"type":"object","required":["reason"],"properties":{"reason":{"description":"Why the stored credential failed, as the vendor said.","minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.3.reauth.oneOf.0.reason","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.3.reauth.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.3.reauth.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.3.reauth","typeLabel":"object | null"},"email":{"description":"The ChatGPT account's email, when its token names one.","minLength":1,"type":"string","uniqueKey":"oneOf.3.email","typeLabel":"string"},"limits":{"description":"The vendor limits this connection has spent, excluding markers whose reset time has passed.","items":{"oneOf":[{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.0.reason","typeLabel":"string"},"scope":{"enum":["session"],"type":"string","isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.0.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.0.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.0.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.0.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.1.reason","typeLabel":"string"},"scope":{"enum":["weekly"],"type":"string","isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.1.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.1.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.1.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.1.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["scope","until","reason","model"],"properties":{"model":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.2.model","typeLabel":"string"},"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.2.reason","typeLabel":"string"},"scope":{"enum":["model"],"type":"string","isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.2.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.2.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.2.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.2.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.3.reason","typeLabel":"string"},"scope":{"enum":["credits"],"type":"string","isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.3.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.3.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.3.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.3.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.4.reason","typeLabel":"string"},"scope":{"enum":["usage"],"type":"string","isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.4.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.4.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.4.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.4.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.3.limits.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"oneOf.3.limits.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.3.limits","typeLabel":"object[]"},"profiles":{"description":"The agent profiles that run on the connection.","items":{"additionalProperties":false,"properties":{"id":{"format":"uuid","type":"string","isRequired":true,"uniqueKey":"oneOf.3.profiles.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"name":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.3.profiles.items.[INDEX].name","typeLabel":"string"},"org":{"description":"The name of the organization the profile belongs to.","minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.3.profiles.items.[INDEX].org","typeLabel":"string"}},"required":["id","name","org"],"type":"object","uniqueKey":"oneOf.3.profiles.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.3.profiles","typeLabel":"object[]"}},"additionalProperties":false,"uniqueKey":"oneOf.3","typeLabel":"object"},{"type":"object","description":"One connection you hold, a variant per option: which credential it holds, qualified by its vendor. reauth is null while the stored credential works.","required":["option","id","name","reauth"],"properties":{"id":{"format":"uuid","type":"string","isRequired":true,"uniqueKey":"oneOf.4.id","typeLabel":"string\u003cuuid>"},"name":{"description":"The name you gave the connection, unique among your connections of its option.","minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.4.name","typeLabel":"string"},"option":{"enum":["openai_api_key"],"type":"string","isRequired":true,"uniqueKey":"oneOf.4.option","typeLabel":"enum\u003cstring>"},"reauth":{"oneOf":[{"type":"object","required":["reason"],"properties":{"reason":{"description":"Why the stored credential failed, as the vendor said.","minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.4.reauth.oneOf.0.reason","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.4.reauth.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.4.reauth.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.4.reauth","typeLabel":"object | null"},"key_suffix":{"description":"The key's last four characters, for a key of at least eight.","minLength":1,"type":"string","uniqueKey":"oneOf.4.key_suffix","typeLabel":"string"},"limits":{"description":"The vendor limits this connection has spent, excluding markers whose reset time has passed.","items":{"oneOf":[{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.0.reason","typeLabel":"string"},"scope":{"enum":["session"],"type":"string","isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.0.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.0.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.0.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.0.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.1.reason","typeLabel":"string"},"scope":{"enum":["weekly"],"type":"string","isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.1.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.1.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.1.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.1.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["scope","until","reason","model"],"properties":{"model":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.2.model","typeLabel":"string"},"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.2.reason","typeLabel":"string"},"scope":{"enum":["model"],"type":"string","isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.2.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.2.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.2.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.2.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.3.reason","typeLabel":"string"},"scope":{"enum":["credits"],"type":"string","isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.3.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.3.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.3.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.3.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.4.reason","typeLabel":"string"},"scope":{"enum":["usage"],"type":"string","isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.4.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.4.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.4.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.4.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.4.limits.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"oneOf.4.limits.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.4.limits","typeLabel":"object[]"},"profiles":{"description":"The agent profiles that run on the connection.","items":{"additionalProperties":false,"properties":{"id":{"format":"uuid","type":"string","isRequired":true,"uniqueKey":"oneOf.4.profiles.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"name":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.4.profiles.items.[INDEX].name","typeLabel":"string"},"org":{"description":"The name of the organization the profile belongs to.","minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.4.profiles.items.[INDEX].org","typeLabel":"string"}},"required":["id","name","org"],"type":"object","uniqueKey":"oneOf.4.profiles.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.4.profiles","typeLabel":"object[]"}},"additionalProperties":false,"uniqueKey":"oneOf.4","typeLabel":"object"},{"type":"object","description":"One connection you hold, a variant per option: which credential it holds, qualified by its vendor. reauth is null while the stored credential works.","required":["option","id","name","reauth"],"properties":{"id":{"format":"uuid","type":"string","isRequired":true,"uniqueKey":"oneOf.5.id","typeLabel":"string\u003cuuid>"},"name":{"description":"The name you gave the connection, unique among your connections of its option.","minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.5.name","typeLabel":"string"},"option":{"enum":["openrouter_api_key"],"type":"string","isRequired":true,"uniqueKey":"oneOf.5.option","typeLabel":"enum\u003cstring>"},"reauth":{"oneOf":[{"type":"object","required":["reason"],"properties":{"reason":{"description":"Why the stored credential failed, as the vendor said.","minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.5.reauth.oneOf.0.reason","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.5.reauth.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.5.reauth.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.5.reauth","typeLabel":"object | null"},"key_suffix":{"description":"The key's last four characters, for a key of at least eight.","minLength":1,"type":"string","uniqueKey":"oneOf.5.key_suffix","typeLabel":"string"},"limits":{"description":"The vendor limits this connection has spent, excluding markers whose reset time has passed.","items":{"oneOf":[{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.0.reason","typeLabel":"string"},"scope":{"enum":["session"],"type":"string","isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.0.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.0.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.0.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.0.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.1.reason","typeLabel":"string"},"scope":{"enum":["weekly"],"type":"string","isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.1.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.1.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.1.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.1.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["scope","until","reason","model"],"properties":{"model":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.2.model","typeLabel":"string"},"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.2.reason","typeLabel":"string"},"scope":{"enum":["model"],"type":"string","isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.2.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.2.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.2.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.2.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.3.reason","typeLabel":"string"},"scope":{"enum":["credits"],"type":"string","isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.3.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.3.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.3.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.3.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.4.reason","typeLabel":"string"},"scope":{"enum":["usage"],"type":"string","isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.4.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.4.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.4.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.4.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.5.limits.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"oneOf.5.limits.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.5.limits","typeLabel":"object[]"},"profiles":{"description":"The agent profiles that run on the connection.","items":{"additionalProperties":false,"properties":{"id":{"format":"uuid","type":"string","isRequired":true,"uniqueKey":"oneOf.5.profiles.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"name":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.5.profiles.items.[INDEX].name","typeLabel":"string"},"org":{"description":"The name of the organization the profile belongs to.","minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.5.profiles.items.[INDEX].org","typeLabel":"string"}},"required":["id","name","org"],"type":"object","uniqueKey":"oneOf.5.profiles.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.5.profiles","typeLabel":"object[]"}},"additionalProperties":false,"uniqueKey":"oneOf.5","typeLabel":"object"},{"type":"object","description":"One connection you hold, a variant per option: which credential it holds, qualified by its vendor. reauth is null while the stored credential works.","required":["option","id","name","reauth","providers"],"properties":{"id":{"format":"uuid","type":"string","isRequired":true,"uniqueKey":"oneOf.6.id","typeLabel":"string\u003cuuid>"},"name":{"description":"The name you gave the connection, unique among your connections of its option.","minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.6.name","typeLabel":"string"},"option":{"enum":["opencode_auth_file"],"type":"string","isRequired":true,"uniqueKey":"oneOf.6.option","typeLabel":"enum\u003cstring>"},"providers":{"description":"The model providers the auth file signs in to.","items":{"minLength":1,"type":"string","uniqueKey":"oneOf.6.providers.items.[INDEX]","typeLabel":"string"},"type":"array","isRequired":true,"uniqueKey":"oneOf.6.providers","typeLabel":"string[]"},"reauth":{"oneOf":[{"type":"object","required":["reason"],"properties":{"reason":{"description":"Why the stored credential failed, as the vendor said.","minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.6.reauth.oneOf.0.reason","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.6.reauth.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.6.reauth.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.6.reauth","typeLabel":"object | null"},"limits":{"description":"The vendor limits this connection has spent, excluding markers whose reset time has passed.","items":{"oneOf":[{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.0.reason","typeLabel":"string"},"scope":{"enum":["session"],"type":"string","isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.0.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.0.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.0.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.0.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.1.reason","typeLabel":"string"},"scope":{"enum":["weekly"],"type":"string","isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.1.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.1.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.1.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.1.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["scope","until","reason","model"],"properties":{"model":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.2.model","typeLabel":"string"},"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.2.reason","typeLabel":"string"},"scope":{"enum":["model"],"type":"string","isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.2.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.2.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.2.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.2.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.3.reason","typeLabel":"string"},"scope":{"enum":["credits"],"type":"string","isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.3.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.3.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.3.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.3.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["scope","until","reason"],"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.4.reason","typeLabel":"string"},"scope":{"enum":["usage"],"type":"string","isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.4.scope","typeLabel":"enum\u003cstring>"},"until":{"oneOf":[{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.4.until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.4.until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.4.until","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.6.limits.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"oneOf.6.limits.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.6.limits","typeLabel":"object[]"},"profiles":{"description":"The agent profiles that run on the connection.","items":{"additionalProperties":false,"properties":{"id":{"format":"uuid","type":"string","isRequired":true,"uniqueKey":"oneOf.6.profiles.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"name":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.6.profiles.items.[INDEX].name","typeLabel":"string"},"org":{"description":"The name of the organization the profile belongs to.","minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.6.profiles.items.[INDEX].org","typeLabel":"string"}},"required":["id","name","org"],"type":"object","uniqueKey":"oneOf.6.profiles.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.6.profiles","typeLabel":"object[]"}},"additionalProperties":false,"uniqueKey":"oneOf.6","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","option":"claude_plan","reauth":{"reason":"\u003cstring>"},"limits":[{"reason":"\u003cstring>","scope":"session","until":"2023-11-07T05:31:56Z"}],"profiles":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","org":"\u003cstring>"}]}}},"exampleType":"generated"}},"description":"Created","exampleType":"generated"},"b1779f21-b6fb-42e1-8aa2-e25a5b8561fb":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"code":{"enum":["aether_inference_unavailable","aether_inference_unserved","agent_credential_unreadable","agent_host_account_deleting","agent_host_command_not_found","agent_host_creation_disabled","agent_host_exists","agent_host_illegal_transition","agent_host_not_allowlisted","agent_host_not_found","agent_host_other_provider_app","agent_host_project_not_eligible","agent_host_provisioning_failed","agent_host_state_changed","agent_host_wake_failed","agent_line_unavailable","bad_gateway","bad_request","conflict","connection_account_held","connection_agent_only","connection_harness_mismatch","connection_is_default","connection_name_taken","connection_not_found","connection_option_mismatch","connection_runs_agent","connection_runs_profiles","device_auth_not_found","fallback_is_own_connection","forbidden","gateway_timeout","gone","internal_error","line_exists","line_not_found","line_not_imessage","method_not_allowed","no_default_connection","not_acceptable","not_found","not_implemented","payment_required","precondition_failed","rate_limited","request_canceled","request_timeout","request_too_large","service_unavailable","unauthenticated","unsupported_media_type","validation_failed","whatsapp_not_enabled"],"minLength":1,"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"error":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"errors":{"items":{"additionalProperties":false,"properties":{"location":{"description":"Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'","type":"string","uniqueKey":"errors.items.[INDEX].location","typeLabel":"string"},"message":{"description":"Error message text","type":"string","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"value":{"description":"The value at the given location","uniqueKey":"errors.items.[INDEX].value","typeLabel":"any"}},"type":"object","uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"errors","typeLabel":"object[]"}},"required":["error","code"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"aether_inference_unavailable","error":"\u003cstring>","errors":[{"location":"\u003cstring>","message":"\u003cstring>","value":"\u003cunknown>"}]}}},"exampleType":"generated"}},"description":"Bad Request","exampleType":"generated"},"fc13c68b-1c9d-43b9-bbc6-e1f55e21db28":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"code":{"enum":["aether_inference_unavailable","aether_inference_unserved","agent_credential_unreadable","agent_host_account_deleting","agent_host_command_not_found","agent_host_creation_disabled","agent_host_exists","agent_host_illegal_transition","agent_host_not_allowlisted","agent_host_not_found","agent_host_other_provider_app","agent_host_project_not_eligible","agent_host_provisioning_failed","agent_host_state_changed","agent_host_wake_failed","agent_line_unavailable","bad_gateway","bad_request","conflict","connection_account_held","connection_agent_only","connection_harness_mismatch","connection_is_default","connection_name_taken","connection_not_found","connection_option_mismatch","connection_runs_agent","connection_runs_profiles","device_auth_not_found","fallback_is_own_connection","forbidden","gateway_timeout","gone","internal_error","line_exists","line_not_found","line_not_imessage","method_not_allowed","no_default_connection","not_acceptable","not_found","not_implemented","payment_required","precondition_failed","rate_limited","request_canceled","request_timeout","request_too_large","service_unavailable","unauthenticated","unsupported_media_type","validation_failed","whatsapp_not_enabled"],"minLength":1,"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"error":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"errors":{"items":{"additionalProperties":false,"properties":{"location":{"description":"Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'","type":"string","uniqueKey":"errors.items.[INDEX].location","typeLabel":"string"},"message":{"description":"Error message text","type":"string","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"value":{"description":"The value at the given location","uniqueKey":"errors.items.[INDEX].value","typeLabel":"any"}},"type":"object","uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"errors","typeLabel":"object[]"}},"required":["error","code"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"aether_inference_unavailable","error":"\u003cstring>","errors":[{"location":"\u003cstring>","message":"\u003cstring>","value":"\u003cunknown>"}]}}},"exampleType":"generated"}},"description":"Unauthorized","exampleType":"generated"},"aaec3f80-4741-4684-8cc4-62805bcb6e79":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"code":{"enum":["org_membership_required","org_role_insufficient","org_suspended","account_deleting","agent_host_route_not_allowed","credential_kind_not_admitted","grant_scope_insufficient"],"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"error":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"required":["error","code"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"org_membership_required","error":"\u003cstring>"}}},"exampleType":"generated"}},"description":"Forbidden","exampleType":"generated"},"52f4fa82-628f-4a5a-89be-12aeddda5247":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"code":{"enum":["aether_inference_unavailable","aether_inference_unserved","agent_credential_unreadable","agent_host_account_deleting","agent_host_command_not_found","agent_host_creation_disabled","agent_host_exists","agent_host_illegal_transition","agent_host_not_allowlisted","agent_host_not_found","agent_host_other_provider_app","agent_host_project_not_eligible","agent_host_provisioning_failed","agent_host_state_changed","agent_host_wake_failed","agent_line_unavailable","bad_gateway","bad_request","conflict","connection_account_held","connection_agent_only","connection_harness_mismatch","connection_is_default","connection_name_taken","connection_not_found","connection_option_mismatch","connection_runs_agent","connection_runs_profiles","device_auth_not_found","fallback_is_own_connection","forbidden","gateway_timeout","gone","internal_error","line_exists","line_not_found","line_not_imessage","method_not_allowed","no_default_connection","not_acceptable","not_found","not_implemented","payment_required","precondition_failed","rate_limited","request_canceled","request_timeout","request_too_large","service_unavailable","unauthenticated","unsupported_media_type","validation_failed","whatsapp_not_enabled"],"minLength":1,"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"error":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"errors":{"items":{"additionalProperties":false,"properties":{"location":{"description":"Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'","type":"string","uniqueKey":"errors.items.[INDEX].location","typeLabel":"string"},"message":{"description":"Error message text","type":"string","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"value":{"description":"The value at the given location","uniqueKey":"errors.items.[INDEX].value","typeLabel":"any"}},"type":"object","uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"errors","typeLabel":"object[]"}},"required":["error","code"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"aether_inference_unavailable","error":"\u003cstring>","errors":[{"location":"\u003cstring>","message":"\u003cstring>","value":"\u003cunknown>"}]}}},"exampleType":"generated"}},"description":"Conflict","exampleType":"generated"},"f170a773-79be-4c42-ac68-e76c1999f8e1":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"code":{"enum":["aether_inference_unavailable","aether_inference_unserved","agent_credential_unreadable","agent_host_account_deleting","agent_host_command_not_found","agent_host_creation_disabled","agent_host_exists","agent_host_illegal_transition","agent_host_not_allowlisted","agent_host_not_found","agent_host_other_provider_app","agent_host_project_not_eligible","agent_host_provisioning_failed","agent_host_state_changed","agent_host_wake_failed","agent_line_unavailable","bad_gateway","bad_request","conflict","connection_account_held","connection_agent_only","connection_harness_mismatch","connection_is_default","connection_name_taken","connection_not_found","connection_option_mismatch","connection_runs_agent","connection_runs_profiles","device_auth_not_found","fallback_is_own_connection","forbidden","gateway_timeout","gone","internal_error","line_exists","line_not_found","line_not_imessage","method_not_allowed","no_default_connection","not_acceptable","not_found","not_implemented","payment_required","precondition_failed","rate_limited","request_canceled","request_timeout","request_too_large","service_unavailable","unauthenticated","unsupported_media_type","validation_failed","whatsapp_not_enabled"],"minLength":1,"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"error":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"errors":{"items":{"additionalProperties":false,"properties":{"location":{"description":"Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'","type":"string","uniqueKey":"errors.items.[INDEX].location","typeLabel":"string"},"message":{"description":"Error message text","type":"string","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"value":{"description":"The value at the given location","uniqueKey":"errors.items.[INDEX].value","typeLabel":"any"}},"type":"object","uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"errors","typeLabel":"object[]"}},"required":["error","code"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"aether_inference_unavailable","error":"\u003cstring>","errors":[{"location":"\u003cstring>","message":"\u003cstring>","value":"\u003cunknown>"}]}}},"exampleType":"generated"}},"description":"Unprocessable Entity","exampleType":"generated"},"2f99d615-2f14-448f-ad87-ff1983a8d189":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"code":{"enum":["aether_inference_unavailable","aether_inference_unserved","agent_credential_unreadable","agent_host_account_deleting","agent_host_command_not_found","agent_host_creation_disabled","agent_host_exists","agent_host_illegal_transition","agent_host_not_allowlisted","agent_host_not_found","agent_host_other_provider_app","agent_host_project_not_eligible","agent_host_provisioning_failed","agent_host_state_changed","agent_host_wake_failed","agent_line_unavailable","bad_gateway","bad_request","conflict","connection_account_held","connection_agent_only","connection_harness_mismatch","connection_is_default","connection_name_taken","connection_not_found","connection_option_mismatch","connection_runs_agent","connection_runs_profiles","device_auth_not_found","fallback_is_own_connection","forbidden","gateway_timeout","gone","internal_error","line_exists","line_not_found","line_not_imessage","method_not_allowed","no_default_connection","not_acceptable","not_found","not_implemented","payment_required","precondition_failed","rate_limited","request_canceled","request_timeout","request_too_large","service_unavailable","unauthenticated","unsupported_media_type","validation_failed","whatsapp_not_enabled"],"minLength":1,"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"error":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"errors":{"items":{"additionalProperties":false,"properties":{"location":{"description":"Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'","type":"string","uniqueKey":"errors.items.[INDEX].location","typeLabel":"string"},"message":{"description":"Error message text","type":"string","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"value":{"description":"The value at the given location","uniqueKey":"errors.items.[INDEX].value","typeLabel":"any"}},"type":"object","uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"errors","typeLabel":"object[]"}},"required":["error","code"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"aether_inference_unavailable","error":"\u003cstring>","errors":[{"location":"\u003cstring>","message":"\u003cstring>","value":"\u003cunknown>"}]}}},"exampleType":"generated"}},"description":"Internal Server Error","exampleType":"generated"}},"security":{"9afdaa3a-ab5d-440b-98ad-31a38432c246":{"bearerAuth":{"bearerFormat":"JWT","scheme":"bearer","type":"http","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"66ab535b-c4ec-41e3-98da-d80687cb1fb1":{"url":"https://api.runaether.dev"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"bearerFormat":"JWT","scheme":"bearer","type":"http","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"aether-c4587800","siteName":"Aether","title":"Add a connection: OpenCode auth file - Aether","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-26T12:24:43.129Z","originalFileLocation":"api-reference/endpoints/connections/post-connections-opencode-auth-file.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Stores a new opencode_auth_file connection under its name, leaving every other connection in place. Use this tool when you need to: - Connect the providers OpenCode is signed in to on the caller\u0026#x27;s machine, from its auth.json, so the caller\u0026#x27;s OpenCode tasks can run on them - Add another OpenCode auth file beside one the caller already holds, under its own name Examples: - POST /connections/opencode-auth-file {\u0026quot;name\u0026quot;: \u0026quot;Laptop OpenCode\u0026quot;, \u0026quot;contents\u0026quot;: \u0026quot;{\\\u0026quot;anthropic\\\u0026quot;: {\\\u0026quot;type\\\u0026quot;: \\\u0026quot;api\\\u0026quot;, \\\u0026quot;key\\\u0026quot;: \\\u0026quot;sk-ant-api03-abcdefghij\\\u0026quot;}}\u0026quot;} Hints: - name is required: 1 to 100 characters on one line, with no space, tab, form feed or carriage return at either end; the schema answers 422 otherwise, and a name it admits is stored as sent. - contents is required: the caller\u0026#x27;s ~/.local/share/opencode/auth.json verbatim, a JSON object of unique provider ids, each entry of type api (with key), oauth (with access, refresh and expires) or wellknown (with key and token) as OpenCode writes it. The schema answers 422 for empty contents and the handler\u0026#x27;s vendor-format check 422 for any other file it refuses, neither with a code. - Answers 201 with the connection: option opencode_auth_file, id, name, providers (the file\u0026#x27;s provider ids, sorted) and reauth null, never the file. It becomes the OpenCode default when the caller has none; a default the caller has stays. - Use addOpenrouterApiKeyConnection instead for an OpenRouter API key alone, reconnectConnection to replace the file of a connection the caller holds and keep its id, and setDefaultConnection to make it the default. - Any signed-in user may call it for themselves; through a platform API key pinned to an org where the caller is a viewer or billing member it is refused with 403 org_role_insufficient, and an agent host\u0026#x27;s grant with 403 agent_host_route_not_allowed. - Refused with 409 connection_name_taken when the caller already uses the name for an OpenCode auth file.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Aether\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aether-c4587800/RjJo40w5LK5jrZHD/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/aether-c4587800/RjJo40w5LK5jrZHD/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aether-c4587800/RjJo40w5LK5jrZHD/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/aether-c4587800/RjJo40w5LK5jrZHD/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/aether-c4587800/RjJo40w5LK5jrZHD/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aether-c4587800/RjJo40w5LK5jrZHD/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aether-c4587800/RjJo40w5LK5jrZHD/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/aether-c4587800/RjJo40w5LK5jrZHD/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/aether-c4587800/RjJo40w5LK5jrZHD/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Add a connection: OpenCode auth file - Aether\">\u003cmeta data-mint-head property=\"og:description\" content=\"Stores a new opencode_auth_file connection under its name, leaving every other connection in place. Use this tool when you need to: - Connect the providers OpenCode is signed in to on the caller\u0026#x27;s machine, from its auth.json, so the caller\u0026#x27;s OpenCode tasks can run on them - Add another OpenCode auth file beside one the caller already holds, under its own name Examples: - POST /connections/opencode-auth-file {\u0026quot;name\u0026quot;: \u0026quot;Laptop OpenCode\u0026quot;, \u0026quot;contents\u0026quot;: \u0026quot;{\\\u0026quot;anthropic\\\u0026quot;: {\\\u0026quot;type\\\u0026quot;: \\\u0026quot;api\\\u0026quot;, \\\u0026quot;key\\\u0026quot;: \\\u0026quot;sk-ant-api03-abcdefghij\\\u0026quot;}}\u0026quot;} Hints: - name is required: 1 to 100 characters on one line, with no space, tab, form feed or carriage return at either end; the schema answers 422 otherwise, and a name it admits is stored as sent. - contents is required: the caller\u0026#x27;s ~/.local/share/opencode/auth.json verbatim, a JSON object of unique provider ids, each entry of type api (with key), oauth (with access, refresh and expires) or wellknown (with key and token) as OpenCode writes it. The schema answers 422 for empty contents and the handler\u0026#x27;s vendor-format check 422 for any other file it refuses, neither with a code. - Answers 201 with the connection: option opencode_auth_file, id, name, providers (the file\u0026#x27;s provider ids, sorted) and reauth null, never the file. It becomes the OpenCode default when the caller has none; a default the caller has stays. - Use addOpenrouterApiKeyConnection instead for an OpenRouter API key alone, reconnectConnection to replace the file of a connection the caller holds and keep its id, and setDefaultConnection to make it the default. - Any signed-in user may call it for themselves; through a platform API key pinned to an org where the caller is a viewer or billing member it is refused with 403 org_role_insufficient, and an agent host\u0026#x27;s grant with 403 agent_host_route_not_allowed. - Refused with 409 connection_name_taken when the caller already uses the name for an OpenCode auth file.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Aether\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.runaether.dev/api-reference/endpoints/connections/post-connections-opencode-auth-file\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://aether-c4587800.mintlify.site/_mintlify/api/og/v2?division=Connections\u0026amp;title=Add+a+connection%3A+OpenCode+auth+file\u0026amp;description=Stores+a+new+opencode_auth_file+connection+under+its+name%2C+leaving+every+other+connection+in+place.%0A%0AUse+this+tool+when+you+need+to%3A%0A-+Connect+the+providers+Ope\u0026amp;theme=4d7da90d8d97040f7873a8b8\u0026amp;signature=5d4d486d26bc4656bae839468d5f93219b64584619834b231f81db89534c2e61\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Add a connection: OpenCode auth file - Aether\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Stores a new opencode_auth_file connection under its name, leaving every other connection in place. Use this tool when you need to: - Connect the providers OpenCode is signed in to on the caller\u0026#x27;s machine, from its auth.json, so the caller\u0026#x27;s OpenCode tasks can run on them - Add another OpenCode auth file beside one the caller already holds, under its own name Examples: - POST /connections/opencode-auth-file {\u0026quot;name\u0026quot;: \u0026quot;Laptop OpenCode\u0026quot;, \u0026quot;contents\u0026quot;: \u0026quot;{\\\u0026quot;anthropic\\\u0026quot;: {\\\u0026quot;type\\\u0026quot;: \\\u0026quot;api\\\u0026quot;, \\\u0026quot;key\\\u0026quot;: \\\u0026quot;sk-ant-api03-abcdefghij\\\u0026quot;}}\u0026quot;} Hints: - name is required: 1 to 100 characters on one line, with no space, tab, form feed or carriage return at either end; the schema answers 422 otherwise, and a name it admits is stored as sent. - contents is required: the caller\u0026#x27;s ~/.local/share/opencode/auth.json verbatim, a JSON object of unique provider ids, each entry of type api (with key), oauth (with access, refresh and expires) or wellknown (with key and token) as OpenCode writes it. The schema answers 422 for empty contents and the handler\u0026#x27;s vendor-format check 422 for any other file it refuses, neither with a code. - Answers 201 with the connection: option opencode_auth_file, id, name, providers (the file\u0026#x27;s provider ids, sorted) and reauth null, never the file. It becomes the OpenCode default when the caller has none; a default the caller has stays. - Use addOpenrouterApiKeyConnection instead for an OpenRouter API key alone, reconnectConnection to replace the file of a connection the caller holds and keep its id, and setDefaultConnection to make it the default. - Any signed-in user may call it for themselves; through a platform API key pinned to an org where the caller is a viewer or billing member it is refused with 403 org_role_insufficient, and an agent host\u0026#x27;s grant with 403 agent_host_route_not_allowed. - Refused with 409 connection_name_taken when the caller already uses the name for an OpenCode auth file.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://aether-c4587800.mintlify.site/_mintlify/api/og/v2?division=Connections\u0026amp;title=Add+a+connection%3A+OpenCode+auth+file\u0026amp;description=Stores+a+new+opencode_auth_file+connection+under+its+name%2C+leaving+every+other+connection+in+place.%0A%0AUse+this+tool+when+you+need+to%3A%0A-+Connect+the+providers+Ope\u0026amp;theme=4d7da90d8d97040f7873a8b8\u0026amp;signature=5d4d486d26bc4656bae839468d5f93219b64584619834b231f81db89534c2e61\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/aether-c4587800/RjJo40w5LK5jrZHD/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Aether\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#9184ff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.runaether.dev/api-reference/endpoints/connections/post-connections-opencode-auth-file\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoints/connections/post-connections-opencode-auth-file.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.runaether.dev/#organization\",\"name\":\"Aether\",\"url\":\"https://docs.runaether.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/aether-c4587800/hrC9bOYLpJ53VNbo/logo/light.svg?fit=max\u0026auto=format\u0026n=hrC9bOYLpJ53VNbo\u0026q=85\u0026s=cdf40b8647da8a5d82a91e289a1958f7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.runaether.dev#website\",\"name\":\"Aether\",\"url\":\"https://docs.runaether.dev\",\"publisher\":{\"@id\":\"https://docs.runaether.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.runaether.dev/api-reference/endpoints/connections/post-connections-opencode-auth-file#webpage\",\"url\":\"https://docs.runaether.dev/api-reference/endpoints/connections/post-connections-opencode-auth-file\",\"name\":\"Add a connection: OpenCode auth file\",\"description\":\"Stores a new opencode_auth_file connection under its name, leaving every other connection in place. Use this tool when you need to: - Connect the providers OpenCode is signed in to on the caller's machine, from its auth.json, so the caller's OpenCode tasks can run on them - Add another OpenCode auth file beside one the caller already holds, under its own name Examples: - POST /connections/opencode-auth-file {\\\"name\\\": \\\"Laptop OpenCode\\\", \\\"contents\\\": \\\"{\\\\\\\"anthropic\\\\\\\": {\\\\\\\"type\\\\\\\": \\\\\\\"api\\\\\\\", \\\\\\\"key\\\\\\\": \\\\\\\"sk-ant-api03-abcdefghij\\\\\\\"}}\\\"} Hints: - name is required: 1 to 100 characters on one line, with no space, tab, form feed or carriage return at either end; the schema answers 422 otherwise, and a name it admits is stored as sent. - contents is required: the caller's ~/.local/share/opencode/auth.json verbatim, a JSON object of unique provider ids, each entry of type api (with key), oauth (with access, refresh and expires) or wellknown (with key and token) as OpenCode writes it. The schema answers 422 for empty contents and the handler's vendor-format check 422 for any other file it refuses, neither with a code. - Answers 201 with the connection: option opencode_auth_file, id, name, providers (the file's provider ids, sorted) and reauth null, never the file. It becomes the OpenCode default when the caller has none; a default the caller has stays. - Use addOpenrouterApiKeyConnection instead for an OpenRouter API key alone, reconnectConnection to replace the file of a connection the caller holds and keep its id, and setDefaultConnection to make it the default. - Any signed-in user may call it for themselves; through a platform API key pinned to an org where the caller is a viewer or billing member it is refused with 403 org_role_insufficient, and an agent host's grant with 403 agent_host_route_not_allowed. - Refused with 409 connection_name_taken when the caller already uses the name for an OpenCode auth file.\",\"dateModified\":\"2026-10-26T12:24:43.129Z\",\"isPartOf\":{\"@id\":\"https://docs.runaether.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.runaether.dev/api-reference/endpoints/connections/post-connections-opencode-auth-file#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.runaether.dev/api-reference/endpoints/connections/post-connections-opencode-auth-file#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Connections\",\"item\":\"https://docs.runaether.dev/api-reference/endpoints/connections/get-connections\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add a connection: OpenCode auth file\",\"item\":\"https://docs.runaether.dev/api-reference/endpoints/connections/post-connections-opencode-auth-file\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.runaether.dev/api-reference/endpoints/connections/post-connections-opencode-auth-file#apireference\",\"headline\":\"Add a connection: OpenCode auth file\",\"name\":\"Add a connection: OpenCode auth file\",\"description\":\"Stores a new opencode_auth_file connection under its name, leaving every other connection in place. Use this tool when you need to: - Connect the providers OpenCode is signed in to on the caller's machine, from its auth.json, so the caller's OpenCode tasks can run on them - Add another OpenCode auth file beside one the caller already holds, under its own name Examples: - POST /connections/opencode-auth-file {\\\"name\\\": \\\"Laptop OpenCode\\\", \\\"contents\\\": \\\"{\\\\\\\"anthropic\\\\\\\": {\\\\\\\"type\\\\\\\": \\\\\\\"api\\\\\\\", \\\\\\\"key\\\\\\\": \\\\\\\"sk-ant-api03-abcdefghij\\\\\\\"}}\\\"} Hints: - name is required: 1 to 100 characters on one line, with no space, tab, form feed or carriage return at either end; the schema answers 422 otherwise, and a name it admits is stored as sent. - contents is required: the caller's ~/.local/share/opencode/auth.json verbatim, a JSON object of unique provider ids, each entry of type api (with key), oauth (with access, refresh and expires) or wellknown (with key and token) as OpenCode writes it. The schema answers 422 for empty contents and the handler's vendor-format check 422 for any other file it refuses, neither with a code. - Answers 201 with the connection: option opencode_auth_file, id, name, providers (the file's provider ids, sorted) and reauth null, never the file. It becomes the OpenCode default when the caller has none; a default the caller has stays. - Use addOpenrouterApiKeyConnection instead for an OpenRouter API key alone, reconnectConnection to replace the file of a connection the caller holds and keep its id, and setDefaultConnection to make it the default. - Any signed-in user may call it for themselves; through a platform API key pinned to an org where the caller is a viewer or billing member it is refused with 403 org_role_insufficient, and an agent host's grant with 403 agent_host_route_not_allowed. - Refused with 409 connection_name_taken when the caller already uses the name for an OpenCode auth file.\",\"url\":\"https://docs.runaether.dev/api-reference/endpoints/connections/post-connections-opencode-auth-file\",\"mainEntityOfPage\":{\"@id\":\"https://docs.runaether.dev/api-reference/endpoints/connections/post-connections-opencode-auth-file#webpage\"},\"dateModified\":\"2026-10-26T12:24:43.129Z\",\"publisher\":{\"@id\":\"https://docs.runaether.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.runaether.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Aether\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Aether","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"Concepts","pages":[{"title":"Concepts","href":"/concepts/overview"}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"API Overview","href":"/api-reference/overview"},{"title":"Authentication","href":"/api-reference/authentication"},{"title":"Release Notes","href":"/api-reference/release-notes"}]},{"group":"Projects","pages":[{"title":"List projects","openapi":"api-reference/openapi.json GET /orgs/{orgID}/projects","href":"/api-reference/endpoints/projects/get-orgs-by-orgid-projects"},{"title":"Create project","openapi":"api-reference/openapi.json POST /orgs/{orgID}/projects","href":"/api-reference/endpoints/projects/post-orgs-by-orgid-projects"},{"title":"Get project","openapi":"api-reference/openapi.json GET /projects/{projectID}","href":"/api-reference/endpoints/projects/get-projects-by-projectid"},{"title":"Get project runtime options","openapi":"api-reference/openapi.json GET /projects/{projectID}/runtime-options","href":"/api-reference/endpoints/projects/get-projects-by-projectid-runtime-options"},{"title":"Get project seed failure","openapi":"api-reference/openapi.json GET /projects/{projectID}/seed-failure","href":"/api-reference/endpoints/projects/get-projects-by-projectid-seed-failure"},{"title":"Update project","openapi":"api-reference/openapi.json PATCH /projects/{projectID}","href":"/api-reference/endpoints/projects/patch-projects-by-projectid"}]},{"group":"Workspaces","pages":[{"title":"List workspaces for a project","openapi":"api-reference/openapi.json GET /projects/{projectID}/workspaces","href":"/api-reference/endpoints/workspaces/get-projects-by-projectid-workspaces"},{"title":"List workspaces across all projects","openapi":"api-reference/openapi.json GET /orgs/{orgID}/workspaces","href":"/api-reference/endpoints/workspaces/get-orgs-by-orgid-workspaces"},{"title":"Get a workspace","openapi":"api-reference/openapi.json GET /workspaces/{workspaceID}","href":"/api-reference/endpoints/workspaces/get-workspaces-by-workspaceid"},{"title":"Get a workspace's disk hydration","openapi":"api-reference/openapi.json GET /workspaces/{workspaceID}/hydration","href":"/api-reference/endpoints/workspaces/get-workspaces-by-workspaceid-hydration"},{"title":"Update workspace settings","openapi":"api-reference/openapi.json PATCH /workspaces/{workspaceID}","href":"/api-reference/endpoints/workspaces/patch-workspaces-by-workspaceid"},{"title":"Delete a workspace","openapi":"api-reference/openapi.json DELETE /workspaces/{workspaceID}","href":"/api-reference/endpoints/workspaces/delete-workspaces-by-workspaceid"},{"title":"Connect to a workspace","openapi":"api-reference/openapi.json POST /workspaces/{workspaceID}/connect","href":"/api-reference/endpoints/workspaces/post-workspaces-by-workspaceid-connect"},{"title":"Create an authenticated preview","openapi":"api-reference/openapi.json POST /workspaces/{workspaceID}/preview-auth","href":"/api-reference/endpoints/workspaces/post-workspaces-by-workspaceid-preview-auth"},{"title":"Stop a workspace","openapi":"api-reference/openapi.json POST /workspaces/{workspaceID}/stop","href":"/api-reference/endpoints/workspaces/post-workspaces-by-workspaceid-stop"}]},{"group":"Tasks","pages":[{"title":"List tasks","openapi":"api-reference/openapi.json GET /orgs/{orgID}/tasks","href":"/api-reference/endpoints/tasks/get-orgs-by-orgid-tasks"},{"title":"Search conversations","openapi":"api-reference/openapi.json GET /orgs/{orgID}/tasks/search","href":"/api-reference/endpoints/tasks/get-orgs-by-orgid-tasks-search"},{"title":"Create a task","openapi":"api-reference/openapi.json POST /orgs/{orgID}/tasks","href":"/api-reference/endpoints/tasks/post-orgs-by-orgid-tasks"},{"title":"Save a task to GitHub","openapi":"api-reference/openapi.json POST /tasks/{taskID}/repository","href":"/api-reference/endpoints/tasks/post-tasks-by-taskid-repository"},{"title":"Download a task's work as a zip","openapi":"api-reference/openapi.json GET /tasks/{taskID}/download","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-download"},{"title":"Get a task","openapi":"api-reference/openapi.json GET /tasks/{taskID}","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid"},{"title":"Get the tree containing a task","openapi":"api-reference/openapi.json GET /tasks/{taskID}/tree","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-tree"},{"title":"Get what a task was forked from and what was forked from it","openapi":"api-reference/openapi.json GET /tasks/{taskID}/lineage","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-lineage"},{"title":"Get a task's plan","openapi":"api-reference/openapi.json GET /tasks/{taskID}/plan","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-plan"},{"title":"Get how a task runs","openapi":"api-reference/openapi.json GET /tasks/{taskID}/runtime","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-runtime"},{"title":"List a task's activity","openapi":"api-reference/openapi.json GET /tasks/{taskID}/activity","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-activity"},{"title":"List media captured for a task","openapi":"api-reference/openapi.json GET /tasks/{taskID}/media","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-media"},{"title":"Hide a capture from the proof page and the Verify panel, or return it to them","openapi":"api-reference/openapi.json PATCH /tasks/{taskID}/media/{mediaID}","href":"/api-reference/endpoints/tasks/patch-tasks-by-taskid-media-by-mediaid"},{"title":"Get one HTML render of a task","openapi":"api-reference/openapi.json GET /tasks/{taskID}/html-renders/{renderID}","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-html-renders-by-renderid"},{"title":"List the cloud devices a task is currently holding","openapi":"api-reference/openapi.json GET /tasks/{taskID}/device-sessions","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-device-sessions"},{"title":"List the provider-native subagents a task owns","openapi":"api-reference/openapi.json GET /tasks/{taskID}/subagents","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-subagents"},{"title":"Read one subagent's transcript","openapi":"api-reference/openapi.json GET /tasks/{taskID}/subagents/{toolCallID}/events","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-subagents-by-toolcallid-events"},{"title":"Get the content of one referenced conversation attachment","openapi":"api-reference/openapi.json GET /tasks/{taskID}/messages/{messageID}/attachments/{index}","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-messages-by-messageid-attachments-by-index"},{"title":"Get the image one of a task's screen captures returned","openapi":"api-reference/openapi.json GET /tasks/{taskID}/captures/{toolCallID}","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-captures-by-toolcallid"},{"title":"Change a task","openapi":"api-reference/openapi.json PATCH /tasks/{taskID}","href":"/api-reference/endpoints/tasks/patch-tasks-by-taskid"},{"title":"Read accepted open messages and their canonical replacements","openapi":"api-reference/openapi.json GET /tasks/{taskID}/conversation/live","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-conversation-live"},{"title":"Read one task's model spend by what paid for it","openapi":"api-reference/openapi.json GET /tasks/{taskID}/spend","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-spend"},{"title":"Read what one task's metered runs have used so far","openapi":"api-reference/openapi.json GET /tasks/{taskID}/runtime-usage","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-runtime-usage"},{"title":"List a task's conversation turns","openapi":"api-reference/openapi.json GET /tasks/{taskID}/turns","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-turns"},{"title":"Get a task conversation turn","openapi":"api-reference/openapi.json GET /tasks/{taskID}/turns/{turnID}","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-turns-by-turnid"},{"title":"List the messages a task conversation turn owns","openapi":"api-reference/openapi.json GET /tasks/{taskID}/turns/{turnID}/messages","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-turns-by-turnid-messages"},{"title":"List a task's chats","openapi":"api-reference/openapi.json GET /tasks/{taskID}/chats","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-chats"},{"title":"List a checkout's terminal chats","openapi":"api-reference/openapi.json GET /tasks/{taskID}/terminal-chats","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-terminal-chats"},{"title":"Stop a terminal chat's turn at its next tool call","openapi":"api-reference/openapi.json POST /tasks/{taskID}/terminal-chats/{chatID}/stop","href":"/api-reference/endpoints/tasks/post-tasks-by-taskid-terminal-chats-by-chatid-stop"},{"title":"Archive or restore a terminal chat","openapi":"api-reference/openapi.json PATCH /tasks/{taskID}/terminal-chats/{chatID}","href":"/api-reference/endpoints/tasks/patch-tasks-by-taskid-terminal-chats-by-chatid"},{"title":"Answer a terminal chat's permission prompt","openapi":"api-reference/openapi.json POST /tasks/{taskID}/terminal-chats/{chatID}/answer","href":"/api-reference/endpoints/tasks/post-tasks-by-taskid-terminal-chats-by-chatid-answer"},{"title":"Continue a terminal chat in the cloud","openapi":"api-reference/openapi.json POST /tasks/{taskID}/terminal-chats/{chatID}/continue-in-cloud","href":"/api-reference/endpoints/tasks/post-tasks-by-taskid-terminal-chats-by-chatid-continue-in-cloud"},{"title":"Continue a terminal chat on one of your computers","openapi":"api-reference/openapi.json POST /tasks/{taskID}/terminal-chats/{chatID}/continue-on-computer","href":"/api-reference/endpoints/tasks/post-tasks-by-taskid-terminal-chats-by-chatid-continue-on-computer"},{"title":"Remove a terminal chat from Aether","openapi":"api-reference/openapi.json DELETE /tasks/{taskID}/terminal-chats/{chatID}","href":"/api-reference/endpoints/tasks/delete-tasks-by-taskid-terminal-chats-by-chatid"},{"title":"Send a terminal chat a message","openapi":"api-reference/openapi.json POST /tasks/{taskID}/terminal-chats/{chatID}/messages","href":"/api-reference/endpoints/tasks/post-tasks-by-taskid-terminal-chats-by-chatid-messages"},{"title":"Read a message sent to a terminal chat","openapi":"api-reference/openapi.json GET /tasks/{taskID}/terminal-chats/{chatID}/messages/{messageID}","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-terminal-chats-by-chatid-messages-by-messageid"},{"title":"Start a chat in a task's workspace","openapi":"api-reference/openapi.json POST /tasks/{taskID}/chats","href":"/api-reference/endpoints/tasks/post-tasks-by-taskid-chats"},{"title":"Fork a chat inside its task's workspace","openapi":"api-reference/openapi.json POST /tasks/{taskID}/chats/{chatID}/fork","href":"/api-reference/endpoints/tasks/post-tasks-by-taskid-chats-by-chatid-fork"},{"title":"Read one chat of a task","openapi":"api-reference/openapi.json GET /tasks/{taskID}/chats/{chatID}","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-chats-by-chatid"},{"title":"Archive or restore a chat of a task","openapi":"api-reference/openapi.json PATCH /tasks/{taskID}/chats/{chatID}","href":"/api-reference/endpoints/tasks/patch-tasks-by-taskid-chats-by-chatid"},{"title":"Send a chat a message","openapi":"api-reference/openapi.json POST /tasks/{taskID}/chats/{chatID}/messages","href":"/api-reference/endpoints/tasks/post-tasks-by-taskid-chats-by-chatid-messages"},{"title":"Stop a chat's running turn","openapi":"api-reference/openapi.json POST /tasks/{taskID}/chats/{chatID}/stop","href":"/api-reference/endpoints/tasks/post-tasks-by-taskid-chats-by-chatid-stop"},{"title":"List a chat's conversation turns","openapi":"api-reference/openapi.json GET /tasks/{taskID}/chats/{chatID}/turns","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-chats-by-chatid-turns"},{"title":"Read one of a chat's conversation turns","openapi":"api-reference/openapi.json GET /tasks/{taskID}/chats/{chatID}/turns/{turnID}","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-chats-by-chatid-turns-by-turnid"},{"title":"List the messages one of a chat's turns owns","openapi":"api-reference/openapi.json GET /tasks/{taskID}/chats/{chatID}/turns/{turnID}/messages","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-chats-by-chatid-turns-by-turnid-messages"},{"title":"Read a chat's open messages and their canonical replacements","openapi":"api-reference/openapi.json GET /tasks/{taskID}/chats/{chatID}/conversation/live","href":"/api-reference/endpoints/tasks/get-tasks-by-taskid-chats-by-chatid-conversation-live"},{"title":"Remove a queued message from a task","openapi":"api-reference/openapi.json DELETE /tasks/{taskID}/messages/{messageID}","href":"/api-reference/endpoints/tasks/delete-tasks-by-taskid-messages-by-messageid"},{"title":"Send a task a message","openapi":"api-reference/openapi.json POST /tasks/{taskID}/messages","href":"/api-reference/endpoints/tasks/post-tasks-by-taskid-messages"},{"title":"Stop a running task","openapi":"api-reference/openapi.json POST /tasks/{taskID}/stop","href":"/api-reference/endpoints/tasks/post-tasks-by-taskid-stop"},{"title":"Keep a task's full context","openapi":"api-reference/openapi.json POST /tasks/{taskID}/idle-compaction/keep","href":"/api-reference/endpoints/tasks/post-tasks-by-taskid-idle-compaction-keep"},{"title":"Compact a task's conversation now","openapi":"api-reference/openapi.json POST /tasks/{taskID}/idle-compaction/compact","href":"/api-reference/endpoints/tasks/post-tasks-by-taskid-idle-compaction-compact"},{"title":"Fork a task's chat into a new task","openapi":"api-reference/openapi.json POST /tasks/{taskID}/fork","href":"/api-reference/endpoints/tasks/post-tasks-by-taskid-fork"},{"title":"Fork a task's chat to one of your computers","openapi":"api-reference/openapi.json POST /tasks/{taskID}/fork-to-computer","href":"/api-reference/endpoints/tasks/post-tasks-by-taskid-fork-to-computer"},{"title":"Create a task from an imported Codex session","openapi":"api-reference/openapi.json POST /orgs/{orgID}/tasks/teleport","href":"/api-reference/endpoints/tasks/post-orgs-by-orgid-tasks-teleport"},{"title":"Start a task on one of your computers","openapi":"api-reference/openapi.json POST /orgs/{orgID}/tasks/on-computer","href":"/api-reference/endpoints/tasks/post-orgs-by-orgid-tasks-on-computer"}]},{"group":"Environment Variables","pages":[{"title":"List project environment variables","openapi":"api-reference/openapi.json GET /projects/{projectID}/env-vars","href":"/api-reference/endpoints/env-vars/get-projects-by-projectid-env-vars"},{"title":"Import project environment variables","openapi":"api-reference/openapi.json POST /projects/{projectID}/env-vars/import","href":"/api-reference/endpoints/env-vars/post-projects-by-projectid-env-vars-import"},{"title":"Get project environment variable","openapi":"api-reference/openapi.json GET /projects/{projectID}/env-vars/{key}","href":"/api-reference/endpoints/env-vars/get-projects-by-projectid-env-vars-by-key"},{"title":"Set project environment variable","openapi":"api-reference/openapi.json PUT /projects/{projectID}/env-vars/{key}","href":"/api-reference/endpoints/env-vars/put-projects-by-projectid-env-vars-by-key"},{"title":"Delete project environment variable","openapi":"api-reference/openapi.json DELETE /projects/{projectID}/env-vars/{key}","href":"/api-reference/endpoints/env-vars/delete-projects-by-projectid-env-vars-by-key"}]},{"group":"Secret Files","pages":[{"title":"List project secret files","openapi":"api-reference/openapi.json GET /projects/{projectID}/secret-files","href":"/api-reference/endpoints/secret-files/get-projects-by-projectid-secret-files"},{"title":"Bulk upload project secret files","openapi":"api-reference/openapi.json POST /projects/{projectID}/secret-files/bulk","href":"/api-reference/endpoints/secret-files/post-projects-by-projectid-secret-files-bulk"},{"title":"Get project secret file","openapi":"api-reference/openapi.json GET /projects/{projectID}/secret-files/{fileKey}","href":"/api-reference/endpoints/secret-files/get-projects-by-projectid-secret-files-by-filekey"},{"title":"Get project secret file content","openapi":"api-reference/openapi.json GET /projects/{projectID}/secret-files/{fileKey}/content","href":"/api-reference/endpoints/secret-files/get-projects-by-projectid-secret-files-by-filekey-content"},{"title":"Set project secret file","openapi":"api-reference/openapi.json PUT /projects/{projectID}/secret-files/{fileKey}","href":"/api-reference/endpoints/secret-files/put-projects-by-projectid-secret-files-by-filekey"},{"title":"Delete project secret file","openapi":"api-reference/openapi.json DELETE /projects/{projectID}/secret-files/{fileKey}","href":"/api-reference/endpoints/secret-files/delete-projects-by-projectid-secret-files-by-filekey"}]},{"group":"Skills","pages":[{"title":"List project skills","openapi":"api-reference/openapi.json GET /projects/{projectID}/skills","href":"/api-reference/endpoints/skills/get-projects-by-projectid-skills"},{"title":"List user skills","openapi":"api-reference/openapi.json GET /skills","href":"/api-reference/endpoints/skills/get-skills"},{"title":"Upload user skill","openapi":"api-reference/openapi.json POST /skills","href":"/api-reference/endpoints/skills/post-skills"},{"title":"Get user skill","openapi":"api-reference/openapi.json GET /skills/{slug}","href":"/api-reference/endpoints/skills/get-skills-by-slug"},{"title":"List user skill files","openapi":"api-reference/openapi.json GET /skills/{slug}/files","href":"/api-reference/endpoints/skills/get-skills-by-slug-files"},{"title":"Delete user skill","openapi":"api-reference/openapi.json DELETE /skills/{slug}","href":"/api-reference/endpoints/skills/delete-skills-by-slug"},{"title":"List a project's default skills","openapi":"api-reference/openapi.json GET /projects/{projectID}/default-skills","href":"/api-reference/endpoints/skills/get-projects-by-projectid-default-skills"},{"title":"Enable a default skill on a project","openapi":"api-reference/openapi.json PUT /projects/{projectID}/default-skills/{slug}","href":"/api-reference/endpoints/skills/put-projects-by-projectid-default-skills-by-slug"},{"title":"Disable a default skill on a project","openapi":"api-reference/openapi.json DELETE /projects/{projectID}/default-skills/{slug}","href":"/api-reference/endpoints/skills/delete-projects-by-projectid-default-skills-by-slug"}]},{"group":"Automations","pages":[{"title":"List automations","openapi":"api-reference/openapi.json GET /orgs/{orgID}/automations","href":"/api-reference/endpoints/automations/get-orgs-by-orgid-automations"},{"title":"List project automations","openapi":"api-reference/openapi.json GET /projects/{projectID}/automations","href":"/api-reference/endpoints/automations/get-projects-by-projectid-automations"},{"title":"Get automation","openapi":"api-reference/openapi.json GET /automations/{automationID}","href":"/api-reference/endpoints/automations/get-automations-by-automationid"},{"title":"Delete automation","openapi":"api-reference/openapi.json DELETE /automations/{automationID}","href":"/api-reference/endpoints/automations/delete-automations-by-automationid"},{"title":"Update automation","openapi":"api-reference/openapi.json PATCH /automations/{automationID}","href":"/api-reference/endpoints/automations/patch-automations-by-automationid"},{"title":"List automation runs","openapi":"api-reference/openapi.json GET /automations/{automationID}/runs","href":"/api-reference/endpoints/automations/get-automations-by-automationid-runs"},{"title":"Create project automation","openapi":"api-reference/openapi.json POST /projects/{projectID}/automations","href":"/api-reference/endpoints/automations/post-projects-by-projectid-automations"}]},{"group":"Agent Profiles","pages":[{"title":"List agent profiles","openapi":"api-reference/openapi.json GET /orgs/{orgID}/agent-profiles","href":"/api-reference/endpoints/agent-profiles/get-orgs-by-orgid-agent-profiles"},{"title":"Create agent profile","openapi":"api-reference/openapi.json POST /orgs/{orgID}/agent-profiles","href":"/api-reference/endpoints/agent-profiles/post-orgs-by-orgid-agent-profiles"},{"title":"Get agent profile","openapi":"api-reference/openapi.json GET /agent-profiles/{profileID}","href":"/api-reference/endpoints/agent-profiles/get-agent-profiles-by-profileid"},{"title":"Update agent profile","openapi":"api-reference/openapi.json PATCH /agent-profiles/{profileID}","href":"/api-reference/endpoints/agent-profiles/patch-agent-profiles-by-profileid"},{"title":"Delete agent profile","openapi":"api-reference/openapi.json DELETE /agent-profiles/{profileID}","href":"/api-reference/endpoints/agent-profiles/delete-agent-profiles-by-profileid"}]},{"group":"MCP Servers","pages":[{"title":"List the organization's MCP servers","openapi":"api-reference/openapi.json GET /orgs/{orgID}/mcp-servers","href":"/api-reference/endpoints/mcp-servers/get-orgs-by-orgid-mcp-servers"},{"title":"Probe how a remote MCP server authenticates","openapi":"api-reference/openapi.json POST /orgs/{orgID}/mcp-servers/probe","href":"/api-reference/endpoints/mcp-servers/post-orgs-by-orgid-mcp-servers-probe"},{"title":"Add an MCP server to the organization's catalog","openapi":"api-reference/openapi.json POST /orgs/{orgID}/mcp-servers","href":"/api-reference/endpoints/mcp-servers/post-orgs-by-orgid-mcp-servers"},{"title":"Update an MCP server","openapi":"api-reference/openapi.json PATCH /mcp-servers/{mcpServerID}","href":"/api-reference/endpoints/mcp-servers/patch-mcp-servers-by-mcpserverid"},{"title":"Delete an MCP server","openapi":"api-reference/openapi.json DELETE /mcp-servers/{mcpServerID}","href":"/api-reference/endpoints/mcp-servers/delete-mcp-servers-by-mcpserverid"},{"title":"Preview updating a directory server from its entry","openapi":"api-reference/openapi.json POST /mcp-servers/{mcpServerID}/directory-update-preview","href":"/api-reference/endpoints/mcp-servers/post-mcp-servers-by-mcpserverid-directory-update-preview"},{"title":"Update a directory server to the revision its preview showed","openapi":"api-reference/openapi.json POST /mcp-servers/{mcpServerID}/directory-update","href":"/api-reference/endpoints/mcp-servers/post-mcp-servers-by-mcpserverid-directory-update"},{"title":"List the MCP servers a project enables","openapi":"api-reference/openapi.json GET /projects/{projectID}/mcp-servers","href":"/api-reference/endpoints/mcp-servers/get-projects-by-projectid-mcp-servers"},{"title":"Check whether your tasks in a project can start","openapi":"api-reference/openapi.json GET /projects/{projectID}/mcp-server-readiness","href":"/api-reference/endpoints/mcp-servers/get-projects-by-projectid-mcp-server-readiness"},{"title":"Enable an MCP server on a project","openapi":"api-reference/openapi.json PUT /projects/{projectID}/mcp-servers/{mcpServerID}","href":"/api-reference/endpoints/mcp-servers/put-projects-by-projectid-mcp-servers-by-mcpserverid"},{"title":"Disable an MCP server on a project","openapi":"api-reference/openapi.json DELETE /projects/{projectID}/mcp-servers/{mcpServerID}","href":"/api-reference/endpoints/mcp-servers/delete-projects-by-projectid-mcp-servers-by-mcpserverid"},{"title":"List your MCP server connections and the organization's","openapi":"api-reference/openapi.json GET /orgs/{orgID}/mcp-server-connections","href":"/api-reference/endpoints/mcp-servers/get-orgs-by-orgid-mcp-server-connections"},{"title":"Connect an MCP server with your API key","openapi":"api-reference/openapi.json PUT /mcp-servers/{mcpServerID}/connection","href":"/api-reference/endpoints/mcp-servers/put-mcp-servers-by-mcpserverid-connection"},{"title":"Disconnect your MCP server connection","openapi":"api-reference/openapi.json DELETE /mcp-servers/{mcpServerID}/connection","href":"/api-reference/endpoints/mcp-servers/delete-mcp-servers-by-mcpserverid-connection"},{"title":"Connect an MCP server for the organization","openapi":"api-reference/openapi.json PUT /mcp-servers/{mcpServerID}/org-connection","href":"/api-reference/endpoints/mcp-servers/put-mcp-servers-by-mcpserverid-org-connection"},{"title":"Disconnect the organization's MCP server connection","openapi":"api-reference/openapi.json DELETE /mcp-servers/{mcpServerID}/org-connection","href":"/api-reference/endpoints/mcp-servers/delete-mcp-servers-by-mcpserverid-org-connection"},{"title":"Connect an MCP server with OAuth","openapi":"api-reference/openapi.json POST /mcp-servers/{mcpServerID}/connection/oauth","href":"/api-reference/endpoints/mcp-servers/post-mcp-servers-by-mcpserverid-connection-oauth"},{"title":"Connect an MCP server with OAuth for the organization","openapi":"api-reference/openapi.json POST /mcp-servers/{mcpServerID}/org-connection/oauth","href":"/api-reference/endpoints/mcp-servers/post-mcp-servers-by-mcpserverid-org-connection-oauth"},{"title":"Finish connecting an MCP server with OAuth","openapi":"api-reference/openapi.json POST /mcp-servers/oauth/callback","href":"/api-reference/endpoints/mcp-servers/post-mcp-servers-oauth-callback"},{"title":"List the organization's OAuth apps","openapi":"api-reference/openapi.json GET /orgs/{orgID}/mcp-oauth-apps","href":"/api-reference/endpoints/mcp-servers/get-orgs-by-orgid-mcp-oauth-apps"},{"title":"Read the redirect URI an OAuth app registers","openapi":"api-reference/openapi.json GET /orgs/{orgID}/mcp-oauth-apps/redirect-uri","href":"/api-reference/endpoints/mcp-servers/get-orgs-by-orgid-mcp-oauth-apps-redirect-uri"},{"title":"Save the organization's OAuth app for an issuer","openapi":"api-reference/openapi.json PUT /orgs/{orgID}/mcp-oauth-apps","href":"/api-reference/endpoints/mcp-servers/put-orgs-by-orgid-mcp-oauth-apps"},{"title":"Delete the organization's OAuth app for an issuer","openapi":"api-reference/openapi.json DELETE /orgs/{orgID}/mcp-oauth-apps","href":"/api-reference/endpoints/mcp-servers/delete-orgs-by-orgid-mcp-oauth-apps"}]},{"group":"Plugins","pages":[{"title":"List the official plugin marketplaces","openapi":"api-reference/openapi.json GET /orgs/{orgID}/plugin-marketplaces","href":"/api-reference/endpoints/plugins/get-orgs-by-orgid-plugin-marketplaces"},{"title":"List the plugins a marketplace offers","openapi":"api-reference/openapi.json POST /orgs/{orgID}/plugin-marketplaces/browse","href":"/api-reference/endpoints/plugins/post-orgs-by-orgid-plugin-marketplaces-browse"},{"title":"List the organization's plugins","openapi":"api-reference/openapi.json GET /orgs/{orgID}/plugins","href":"/api-reference/endpoints/plugins/get-orgs-by-orgid-plugins"},{"title":"Install a plugin in the organization","openapi":"api-reference/openapi.json POST /orgs/{orgID}/plugins","href":"/api-reference/endpoints/plugins/post-orgs-by-orgid-plugins"},{"title":"Preview updating a plugin","openapi":"api-reference/openapi.json POST /plugins/{pluginID}/update-preview","href":"/api-reference/endpoints/plugins/post-plugins-by-pluginid-update-preview"},{"title":"Update a plugin to the revision its preview showed","openapi":"api-reference/openapi.json POST /plugins/{pluginID}/update","href":"/api-reference/endpoints/plugins/post-plugins-by-pluginid-update"},{"title":"Change a plugin's organization-wide defaults","openapi":"api-reference/openapi.json PATCH /plugins/{pluginID}","href":"/api-reference/endpoints/plugins/patch-plugins-by-pluginid"},{"title":"Uninstall a plugin","openapi":"api-reference/openapi.json DELETE /plugins/{pluginID}","href":"/api-reference/endpoints/plugins/delete-plugins-by-pluginid"},{"title":"List the plugins a project enables","openapi":"api-reference/openapi.json GET /projects/{projectID}/plugins","href":"/api-reference/endpoints/plugins/get-projects-by-projectid-plugins"},{"title":"Enable a plugin on a project","openapi":"api-reference/openapi.json PUT /projects/{projectID}/plugins/{pluginID}","href":"/api-reference/endpoints/plugins/put-projects-by-projectid-plugins-by-pluginid"},{"title":"Disable a plugin on a project","openapi":"api-reference/openapi.json DELETE /projects/{projectID}/plugins/{pluginID}","href":"/api-reference/endpoints/plugins/delete-projects-by-projectid-plugins-by-pluginid"},{"title":"List Aether's integration directory","openapi":"api-reference/openapi.json GET /orgs/{orgID}/integration-directory","href":"/api-reference/endpoints/plugins/get-orgs-by-orgid-integration-directory"},{"title":"Search integrations by name","openapi":"api-reference/openapi.json GET /orgs/{orgID}/integration-search","href":"/api-reference/endpoints/plugins/get-orgs-by-orgid-integration-search"},{"title":"Search the MCP registry","openapi":"api-reference/openapi.json GET /orgs/{orgID}/integration-search/registry","href":"/api-reference/endpoints/plugins/get-orgs-by-orgid-integration-search-registry"},{"title":"Install an integration of Aether's integration directory","openapi":"api-reference/openapi.json POST /orgs/{orgID}/integration-directory/{key}/install","href":"/api-reference/endpoints/plugins/post-orgs-by-orgid-integration-directory-by-key-install"}]},{"group":"Usage","pages":[{"title":"Get usage summary","openapi":"api-reference/openapi.json GET /orgs/{orgID}/usage/summary","href":"/api-reference/endpoints/usage/get-orgs-by-orgid-usage-summary"},{"title":"List the tasks that used anything in a range","openapi":"api-reference/openapi.json GET /orgs/{orgID}/usage/tasks","href":"/api-reference/endpoints/usage/get-orgs-by-orgid-usage-tasks"}]},{"group":"Profile","pages":[{"title":"Get profile","openapi":"api-reference/openapi.json GET /profile","href":"/api-reference/endpoints/profile/get-profile"},{"title":"Delete your account","openapi":"api-reference/openapi.json DELETE /profile","href":"/api-reference/endpoints/profile/delete-profile"},{"title":"Complete onboarding","openapi":"api-reference/openapi.json POST /profile/onboarding/complete","href":"/api-reference/endpoints/profile/post-profile-onboarding-complete"},{"title":"Launch the onboarding task","openapi":"api-reference/openapi.json POST /profile/onboarding/launch","href":"/api-reference/endpoints/profile/post-profile-onboarding-launch"},{"title":"Set up the onboarding repository","openapi":"api-reference/openapi.json POST /profile/onboarding/repo","href":"/api-reference/endpoints/profile/post-profile-onboarding-repo"}]},{"group":"Organizations","pages":[{"title":"List my organizations","openapi":"api-reference/openapi.json GET /orgs","href":"/api-reference/endpoints/orgs/get-orgs"},{"title":"Create a team organization","openapi":"api-reference/openapi.json POST /orgs","href":"/api-reference/endpoints/orgs/post-orgs"},{"title":"Change organization settings","openapi":"api-reference/openapi.json PATCH /orgs/{orgID}","href":"/api-reference/endpoints/orgs/patch-orgs-by-orgid"},{"title":"Delete a team organization","openapi":"api-reference/openapi.json DELETE /orgs/{orgID}","href":"/api-reference/endpoints/orgs/delete-orgs-by-orgid"},{"title":"Get an organization's teardown","openapi":"api-reference/openapi.json GET /orgs/{orgID}/teardown","href":"/api-reference/endpoints/orgs/get-orgs-by-orgid-teardown"},{"title":"List organization members","openapi":"api-reference/openapi.json GET /orgs/{orgID}/members","href":"/api-reference/endpoints/orgs/get-orgs-by-orgid-members"},{"title":"Change an organization member's role","openapi":"api-reference/openapi.json PATCH /orgs/{orgID}/members/{userID}","href":"/api-reference/endpoints/orgs/patch-orgs-by-orgid-members-by-userid"},{"title":"Remove an organization member","openapi":"api-reference/openapi.json DELETE /orgs/{orgID}/members/{userID}","href":"/api-reference/endpoints/orgs/delete-orgs-by-orgid-members-by-userid"},{"title":"Leave an organization","openapi":"api-reference/openapi.json DELETE /orgs/{orgID}/members/me","href":"/api-reference/endpoints/orgs/delete-orgs-by-orgid-members-me"},{"title":"Ask the organization's admins for a seat","openapi":"api-reference/openapi.json POST /orgs/{orgID}/seat-requests","href":"/api-reference/endpoints/orgs/post-orgs-by-orgid-seat-requests"},{"title":"List the organization's seat requests","openapi":"api-reference/openapi.json GET /orgs/{orgID}/seat-requests","href":"/api-reference/endpoints/orgs/get-orgs-by-orgid-seat-requests"},{"title":"List the organization's invitations","openapi":"api-reference/openapi.json GET /orgs/{orgID}/invites","href":"/api-reference/endpoints/orgs/get-orgs-by-orgid-invites"},{"title":"Invite a user to an organization","openapi":"api-reference/openapi.json POST /orgs/{orgID}/invites","href":"/api-reference/endpoints/orgs/post-orgs-by-orgid-invites"},{"title":"Revoke an organization invitation","openapi":"api-reference/openapi.json DELETE /orgs/{orgID}/invites/{inviteID}","href":"/api-reference/endpoints/orgs/delete-orgs-by-orgid-invites-by-inviteid"},{"title":"Resend an organization invitation","openapi":"api-reference/openapi.json POST /orgs/{orgID}/invites/{inviteID}/resend","href":"/api-reference/endpoints/orgs/post-orgs-by-orgid-invites-by-inviteid-resend"},{"title":"List my open organization invitations (pending or expired)","openapi":"api-reference/openapi.json GET /invites","href":"/api-reference/endpoints/orgs/get-invites"},{"title":"Accept an organization invitation","openapi":"api-reference/openapi.json POST /invites/{inviteID}/accept","href":"/api-reference/endpoints/orgs/post-invites-by-inviteid-accept"}]},{"group":"User Discovery","pages":[{"title":"Get dismissed discovery keys","openapi":"api-reference/openapi.json GET /user/discovery","href":"/api-reference/endpoints/user-discovery/get-user-discovery"},{"title":"Dismiss a discovery key","openapi":"api-reference/openapi.json PUT /user/discovery/dismissed-keys/{discoveryKey}","href":"/api-reference/endpoints/user-discovery/put-user-discovery-dismissed-keys-by-discoverykey"}]},{"group":"User Flags","pages":[{"title":"Get your feature flags","openapi":"api-reference/openapi.json GET /user/flags","href":"/api-reference/endpoints/user-flags/get-user-flags"}]},{"group":"Pull Requests","pages":[{"title":"List the organization's pull requests","openapi":"api-reference/openapi.json GET /orgs/{orgID}/pull-requests","href":"/api-reference/endpoints/pull-requests/get-orgs-by-orgid-pull-requests"},{"title":"Count the organization's pull requests per section","openapi":"api-reference/openapi.json GET /orgs/{orgID}/pull-requests/sections","href":"/api-reference/endpoints/pull-requests/get-orgs-by-orgid-pull-requests-sections"},{"title":"Get one pull request","openapi":"api-reference/openapi.json GET /pull-requests/{pullRequestID}","href":"/api-reference/endpoints/pull-requests/get-pull-requests-by-pullrequestid"},{"title":"Get one pull request's review","openapi":"api-reference/openapi.json GET /pull-requests/{pullRequestID}/review","href":"/api-reference/endpoints/pull-requests/get-pull-requests-by-pullrequestid-review"},{"title":"Get one file's content at a reviewed commit of a pull request","openapi":"api-reference/openapi.json GET /pull-requests/{pullRequestID}/review/file","href":"/api-reference/endpoints/pull-requests/get-pull-requests-by-pullrequestid-review-file"},{"title":"Get the snapshot of a pull request head: its changed files against the base tip, their patches and their contents at the head","openapi":"api-reference/openapi.json GET /pull-requests/{pullRequestID}/review/head-snapshot","href":"/api-reference/endpoints/pull-requests/get-pull-requests-by-pullrequestid-review-head-snapshot"},{"title":"Retry the capture of a pull request head's snapshot that gave up","openapi":"api-reference/openapi.json POST /pull-requests/{pullRequestID}/review/head-snapshot/capture","href":"/api-reference/endpoints/pull-requests/post-pull-requests-by-pullrequestid-review-head-snapshot-capture"},{"title":"Get the whole stack a reviewed pull request belongs to","openapi":"api-reference/openapi.json GET /pull-requests/{pullRequestID}/review/stack","href":"/api-reference/endpoints/pull-requests/get-pull-requests-by-pullrequestid-review-stack"},{"title":"Request an Aether review of a pull request","openapi":"api-reference/openapi.json POST /pull-requests/{pullRequestID}/review/runs","href":"/api-reference/endpoints/pull-requests/post-pull-requests-by-pullrequestid-review-runs"},{"title":"Dispatch pull request feedback to Aether","openapi":"api-reference/openapi.json POST /pull-requests/{pullRequestID}/github/dispatch","href":"/api-reference/endpoints/pull-requests/post-pull-requests-by-pullrequestid-github-dispatch"},{"title":"List Aether feedback dispatches for a pull request","openapi":"api-reference/openapi.json GET /pull-requests/{pullRequestID}/github/dispatches","href":"/api-reference/endpoints/pull-requests/get-pull-requests-by-pullrequestid-github-dispatches"},{"title":"Get a pull request's merge box and checks","openapi":"api-reference/openapi.json GET /pull-requests/{pullRequestID}/github","href":"/api-reference/endpoints/pull-requests/get-pull-requests-by-pullrequestid-github"},{"title":"Post a top-level comment on a pull request","openapi":"api-reference/openapi.json POST /pull-requests/{pullRequestID}/github/comments","href":"/api-reference/endpoints/pull-requests/post-pull-requests-by-pullrequestid-github-comments"},{"title":"Reply to a review comment on a pull request","openapi":"api-reference/openapi.json POST /pull-requests/{pullRequestID}/github/comments/{githubCommentID}/replies","href":"/api-reference/endpoints/pull-requests/post-pull-requests-by-pullrequestid-github-comments-by-githubcommentid-replies"},{"title":"Resolve the review thread containing a comment on a pull request","openapi":"api-reference/openapi.json POST /pull-requests/{pullRequestID}/github/comments/{githubCommentID}/resolve","href":"/api-reference/endpoints/pull-requests/post-pull-requests-by-pullrequestid-github-comments-by-githubcommentid-resolve"},{"title":"Unresolve the review thread containing a comment on a pull request","openapi":"api-reference/openapi.json POST /pull-requests/{pullRequestID}/github/comments/{githubCommentID}/unresolve","href":"/api-reference/endpoints/pull-requests/post-pull-requests-by-pullrequestid-github-comments-by-githubcommentid-unresolve"},{"title":"Get a pull request's changed files with unified-diff patches","openapi":"api-reference/openapi.json GET /pull-requests/{pullRequestID}/github/diff","href":"/api-reference/endpoints/pull-requests/get-pull-requests-by-pullrequestid-github-diff"},{"title":"Merge a pull request","openapi":"api-reference/openapi.json POST /pull-requests/{pullRequestID}/github/merge","href":"/api-reference/endpoints/pull-requests/post-pull-requests-by-pullrequestid-github-merge"},{"title":"Convert a pull request to a draft","openapi":"api-reference/openapi.json POST /pull-requests/{pullRequestID}/github/draft","href":"/api-reference/endpoints/pull-requests/post-pull-requests-by-pullrequestid-github-draft"},{"title":"Mark a draft pull request ready for review","openapi":"api-reference/openapi.json POST /pull-requests/{pullRequestID}/github/ready","href":"/api-reference/endpoints/pull-requests/post-pull-requests-by-pullrequestid-github-ready"},{"title":"Close a pull request","openapi":"api-reference/openapi.json POST /pull-requests/{pullRequestID}/github/close","href":"/api-reference/endpoints/pull-requests/post-pull-requests-by-pullrequestid-github-close"},{"title":"Reopen a closed pull request","openapi":"api-reference/openapi.json POST /pull-requests/{pullRequestID}/github/reopen","href":"/api-reference/endpoints/pull-requests/post-pull-requests-by-pullrequestid-github-reopen"},{"title":"Request a reviewer on a pull request","openapi":"api-reference/openapi.json PUT /pull-requests/{pullRequestID}/github/reviewers/{kind}/{name}","href":"/api-reference/endpoints/pull-requests/put-pull-requests-by-pullrequestid-github-reviewers-by-kind-by-name"},{"title":"Withdraw a reviewer's request on a pull request","openapi":"api-reference/openapi.json DELETE /pull-requests/{pullRequestID}/github/reviewers/{kind}/{name}","href":"/api-reference/endpoints/pull-requests/delete-pull-requests-by-pullrequestid-github-reviewers-by-kind-by-name"},{"title":"Submit a human pull request review","openapi":"api-reference/openapi.json POST /pull-requests/{pullRequestID}/github/reviews","href":"/api-reference/endpoints/pull-requests/post-pull-requests-by-pullrequestid-github-reviews"},{"title":"List a pull request's review threads","openapi":"api-reference/openapi.json GET /pull-requests/{pullRequestID}/github/threads","href":"/api-reference/endpoints/pull-requests/get-pull-requests-by-pullrequestid-github-threads"},{"title":"List a pull request's activity","openapi":"api-reference/openapi.json GET /pull-requests/{pullRequestID}/activity","href":"/api-reference/endpoints/pull-requests/get-pull-requests-by-pullrequestid-activity"},{"title":"List a pull request's recorded verification events","openapi":"api-reference/openapi.json GET /pull-requests/{pullRequestID}/verification-events","href":"/api-reference/endpoints/pull-requests/get-pull-requests-by-pullrequestid-verification-events"},{"title":"Get everything recorded as proof of a pull request","openapi":"api-reference/openapi.json GET /pull-requests/{pullRequestID}/proof","href":"/api-reference/endpoints/pull-requests/get-pull-requests-by-pullrequestid-proof"},{"title":"Change who may watch a pull request's proof","openapi":"api-reference/openapi.json PATCH /pull-requests/{pullRequestID}/proof","href":"/api-reference/endpoints/pull-requests/patch-pull-requests-by-pullrequestid-proof"},{"title":"Resolve a pull request by repository and number","openapi":"api-reference/openapi.json GET /repos/{owner}/{repo}/pulls/{number}","href":"/api-reference/endpoints/pull-requests/get-repos-by-owner-by-repo-pulls-by-number"},{"title":"Resolve a pull request's proof by repository and number","openapi":"api-reference/openapi.json GET /repos/{owner}/{repo}/pulls/{number}/proof","href":"/api-reference/endpoints/pull-requests/get-repos-by-owner-by-repo-pulls-by-number-proof"},{"title":"Get a public pull request's proof","openapi":"api-reference/openapi.json GET /public/pull-requests/{pullRequestID}/proof","href":"/api-reference/endpoints/pull-requests/get-public-pull-requests-by-pullrequestid-proof"},{"title":"Resolve where a task's public proof is watched","openapi":"api-reference/openapi.json GET /public/tasks/{taskID}/proof","href":"/api-reference/endpoints/pull-requests/get-public-tasks-by-taskid-proof"},{"title":"Resolve a public pull request's proof by repository and number","openapi":"api-reference/openapi.json GET /public/repos/{owner}/{repo}/pulls/{number}/proof","href":"/api-reference/endpoints/pull-requests/get-public-repos-by-owner-by-repo-pulls-by-number-proof"}]},{"group":"Push Tokens","pages":[{"title":"Register an Expo push token for the current user","openapi":"api-reference/openapi.json POST /user/push-tokens","href":"/api-reference/endpoints/push-tokens/post-user-push-tokens"},{"title":"Unregister an Expo push token for the current user","openapi":"api-reference/openapi.json DELETE /user/push-tokens/{pushToken}","href":"/api-reference/endpoints/push-tokens/delete-user-push-tokens-by-pushtoken"}]},{"group":"Computers","pages":[{"title":"List your computers","openapi":"api-reference/openapi.json GET /computers","href":"/api-reference/endpoints/computers/get-computers"},{"title":"Register a computer","openapi":"api-reference/openapi.json PUT /computers/{computerID}","href":"/api-reference/endpoints/computers/put-computers-by-computerid"},{"title":"Update a computer","openapi":"api-reference/openapi.json PATCH /computers/{computerID}","href":"/api-reference/endpoints/computers/patch-computers-by-computerid"},{"title":"Remove a computer","openapi":"api-reference/openapi.json DELETE /computers/{computerID}","href":"/api-reference/endpoints/computers/delete-computers-by-computerid"},{"title":"Find or create the task of a checkout","openapi":"api-reference/openapi.json POST /computers/{computerID}/work-tree-tasks","href":"/api-reference/endpoints/computers/post-computers-by-computerid-work-tree-tasks"},{"title":"List the repositories mirrored from a computer","openapi":"api-reference/openapi.json GET /computers/{computerID}/repositories","href":"/api-reference/endpoints/computers/get-computers-by-computerid-repositories"},{"title":"Find or create the chat of a terminal session","openapi":"api-reference/openapi.json PUT /computers/{computerID}/terminal-chats/{sessionID}","href":"/api-reference/endpoints/computers/put-computers-by-computerid-terminal-chats-by-sessionid"},{"title":"Report a terminal chat's status","openapi":"api-reference/openapi.json PATCH /computers/{computerID}/terminal-chats/{sessionID}","href":"/api-reference/endpoints/computers/patch-computers-by-computerid-terminal-chats-by-sessionid"},{"title":"Read what Aether holds of a terminal chat's session file","openapi":"api-reference/openapi.json GET /computers/{computerID}/terminal-chats/{sessionID}/session-files/{file}","href":"/api-reference/endpoints/computers/get-computers-by-computerid-terminal-chats-by-sessionid-session-files-by-file"},{"title":"Ship a range of a terminal chat's session file","openapi":"api-reference/openapi.json PUT /computers/{computerID}/terminal-chats/{sessionID}/session-files/{file}","href":"/api-reference/endpoints/computers/put-computers-by-computerid-terminal-chats-by-sessionid-session-files-by-file"},{"title":"Read a stop sent to a computer","openapi":"api-reference/openapi.json GET /computers/{computerID}/terminal-chat-stops/{stopID}","href":"/api-reference/endpoints/computers/get-computers-by-computerid-terminal-chat-stops-by-stopid"},{"title":"Report how a stop sent to a computer settled","openapi":"api-reference/openapi.json PUT /computers/{computerID}/terminal-chat-stops/{stopID}","href":"/api-reference/endpoints/computers/put-computers-by-computerid-terminal-chat-stops-by-stopid"},{"title":"Report a terminal chat's prompt","openapi":"api-reference/openapi.json PUT /computers/{computerID}/terminal-chats/{sessionID}/prompts/{promptID}","href":"/api-reference/endpoints/computers/put-computers-by-computerid-terminal-chats-by-sessionid-prompts-by-promptid"},{"title":"Wait for a terminal chat prompt's answer","openapi":"api-reference/openapi.json GET /computers/{computerID}/terminal-chats/{sessionID}/prompts/{promptID}","href":"/api-reference/endpoints/computers/get-computers-by-computerid-terminal-chats-by-sessionid-prompts-by-promptid"},{"title":"Close a terminal chat's prompt","openapi":"api-reference/openapi.json PATCH /computers/{computerID}/terminal-chats/{sessionID}/prompts/{promptID}","href":"/api-reference/endpoints/computers/patch-computers-by-computerid-terminal-chats-by-sessionid-prompts-by-promptid"},{"title":"Read a continuation sent to a computer","openapi":"api-reference/openapi.json GET /computers/{computerID}/terminal-chat-continuations/{continuationID}","href":"/api-reference/endpoints/computers/get-computers-by-computerid-terminal-chat-continuations-by-continuationid"},{"title":"Report a continuation a computer carried out","openapi":"api-reference/openapi.json PUT /computers/{computerID}/terminal-chat-continuations/{continuationID}","href":"/api-reference/endpoints/computers/put-computers-by-computerid-terminal-chat-continuations-by-continuationid"},{"title":"Read a message sent to a computer","openapi":"api-reference/openapi.json GET /computers/{computerID}/terminal-chat-deliveries/{deliveryID}","href":"/api-reference/endpoints/computers/get-computers-by-computerid-terminal-chat-deliveries-by-deliveryid"},{"title":"Report what became of a message sent to a computer","openapi":"api-reference/openapi.json PUT /computers/{computerID}/terminal-chat-deliveries/{deliveryID}","href":"/api-reference/endpoints/computers/put-computers-by-computerid-terminal-chat-deliveries-by-deliveryid"},{"title":"Report a turn a computer runs with a message","openapi":"api-reference/openapi.json PUT /computers/{computerID}/terminal-chat-runs/{deliveryID}","href":"/api-reference/endpoints/computers/put-computers-by-computerid-terminal-chat-runs-by-deliveryid"},{"title":"List the turns a computer runs or holds","openapi":"api-reference/openapi.json GET /computers/{computerID}/terminal-chat-runs","href":"/api-reference/endpoints/computers/get-computers-by-computerid-terminal-chat-runs"},{"title":"Export a chat's Claude Code session file to a computer","openapi":"api-reference/openapi.json GET /computers/{computerID}/tasks/{taskID}/chats/{chatID}/session-file","href":"/api-reference/endpoints/computers/get-computers-by-computerid-tasks-by-taskid-chats-by-chatid-session-file"},{"title":"Record that a folder's next terminal chat is a fork of a chat","openapi":"api-reference/openapi.json POST /computers/{computerID}/pending-terminal-forks","href":"/api-reference/endpoints/computers/post-computers-by-computerid-pending-terminal-forks"},{"title":"List the tasks a computer is to start","openapi":"api-reference/openapi.json GET /computers/{computerID}/task-starts","href":"/api-reference/endpoints/computers/get-computers-by-computerid-task-starts"},{"title":"Read a task a computer is to start","openapi":"api-reference/openapi.json GET /computers/{computerID}/task-starts/{startID}","href":"/api-reference/endpoints/computers/get-computers-by-computerid-task-starts-by-startid"},{"title":"Report a task a computer started","openapi":"api-reference/openapi.json PUT /computers/{computerID}/task-starts/{startID}","href":"/api-reference/endpoints/computers/put-computers-by-computerid-task-starts-by-startid"},{"title":"Read a file a fork started on a computer places","openapi":"api-reference/openapi.json GET /computers/{computerID}/task-starts/{startID}/files/{file}","href":"/api-reference/endpoints/computers/get-computers-by-computerid-task-starts-by-startid-files-by-file"}]},{"group":"Agent","pages":[{"title":"Get your agent","openapi":"api-reference/openapi.json GET /agent","href":"/api-reference/endpoints/agent/get-agent"},{"title":"List your agent's events","openapi":"api-reference/openapi.json GET /agent/events","href":"/api-reference/endpoints/agent/get-agent-events"},{"title":"List your conversation with your agent","openapi":"api-reference/openapi.json GET /agent/messages","href":"/api-reference/endpoints/agent/get-agent-messages"},{"title":"Send your agent a message","openapi":"api-reference/openapi.json POST /agent/messages","href":"/api-reference/endpoints/agent/post-agent-messages"},{"title":"Get your agent's memory","openapi":"api-reference/openapi.json GET /agent/memory","href":"/api-reference/endpoints/agent/get-agent-memory"},{"title":"Edit your agent's memory","openapi":"api-reference/openapi.json POST /agent/memory/edits","href":"/api-reference/endpoints/agent/post-agent-memory-edits"},{"title":"Get an edit of your agent's memory","openapi":"api-reference/openapi.json GET /agent/memory/edits/{editID}","href":"/api-reference/endpoints/agent/get-agent-memory-edits-by-editid"},{"title":"List your agent's tool calls this month","openapi":"api-reference/openapi.json GET /agent/tool-usage","href":"/api-reference/endpoints/agent/get-agent-tool-usage"},{"title":"Change your agent","openapi":"api-reference/openapi.json PATCH /agent","href":"/api-reference/endpoints/agent/patch-agent"},{"title":"Issue a single-use link","openapi":"api-reference/openapi.json POST /agent/links","href":"/api-reference/endpoints/agent/post-agent-links"},{"title":"Redeem a single-use link","openapi":"api-reference/openapi.json POST /agent/links/redeem","href":"/api-reference/endpoints/agent/post-agent-links-redeem"},{"title":"Paste a code on a single-use link","openapi":"api-reference/openapi.json POST /agent/links/paste","href":"/api-reference/endpoints/agent/post-agent-links-paste"},{"title":"Pick up the code pasted on a single-use link","openapi":"api-reference/openapi.json POST /agent/links/pickup","href":"/api-reference/endpoints/agent/post-agent-links-pickup"},{"title":"Get a connector","openapi":"api-reference/openapi.json GET /agent/connectors/{key}","href":"/api-reference/endpoints/agent/get-agent-connectors-by-key"},{"title":"Get your phone link","openapi":"api-reference/openapi.json GET /agent/phone","href":"/api-reference/endpoints/agent/get-agent-phone"},{"title":"Ask for a code to link your phone","openapi":"api-reference/openapi.json POST /agent/phone/verification","href":"/api-reference/endpoints/agent/post-agent-phone-verification"},{"title":"Delete your agent","openapi":"api-reference/openapi.json DELETE /agent","href":"/api-reference/endpoints/agent/delete-agent"}]},{"group":"Connections","pages":[{"title":"List your connections","openapi":"api-reference/openapi.json GET /connections","href":"/api-reference/endpoints/connections/get-connections"},{"title":"Add a connection: Claude plan","openapi":"api-reference/openapi.json POST /connections/claude-plan","href":"/api-reference/endpoints/connections/post-connections-claude-plan"},{"title":"Add a connection: Anthropic API key","openapi":"api-reference/openapi.json POST /connections/anthropic-api-key","href":"/api-reference/endpoints/connections/post-connections-anthropic-api-key"},{"title":"Add a connection: OpenAI API key","openapi":"api-reference/openapi.json POST /connections/openai-api-key","href":"/api-reference/endpoints/connections/post-connections-openai-api-key"},{"title":"Add a connection: OpenRouter API key","openapi":"api-reference/openapi.json POST /connections/openrouter-api-key","description":"Stores a new openrouter_api_key connection under its name, leaving every other connection in place.\n\nUse this tool when you need to:\n- Connect an OpenRouter API key so the caller's OpenCode tasks can run on it\n- Add another OpenRouter API key beside one the caller already holds, under its own name\n\nExamples:\n- POST /connections/openrouter-api-key {\"name\": \"OpenRouter\", \"api_key\": \"sk-or-v1-0123456789abcdef\"}\n\nHints:\n- name is required: 1 to 100 characters on one line, with no space, tab, form feed or carriage return at either end; the schema answers 422 otherwise, and a name it admits is stored as sent.\n- api_key is required: sk-or- then one or more non-space characters, surrounding whitespace trimmed. The schema answers 422 for any other shape, and a key it admits that the handler's vendor-format check refuses is 422 too, neither with a code.\n- Answers 201 with the connection: option openrouter_api_key, id, name, key_suffix (the key's last four characters, for a key of at least eight) and reauth null, never the key. It becomes the OpenCode default when the caller has none; a default the caller has stays.\n- Use addOpencodeAuthFileConnection instead to connect OpenCode through its auth.json, reconnectConnection to replace the key of a connection the caller holds and keep its id, and setDefaultConnection to make it the default.\n- Any signed-in user may call it for themselves; through a platform API key pinned to an org where the caller is a viewer or billing member it is refused with 403 org_role_insufficient, and an agent host's grant with 403 agent_host_route_not_allowed.\n- Refused with 409 connection_name_taken when the caller already uses the name for an OpenRouter API key.","href":"/api-reference/endpoints/connections/post-connections-openrouter-api-key"},{"title":"Add a connection: OpenCode auth file","openapi":"api-reference/openapi.json POST /connections/opencode-auth-file","href":"/api-reference/endpoints/connections/post-connections-opencode-auth-file"},{"title":"Start a ChatGPT plan device sign-in","openapi":"api-reference/openapi.json POST /connections/chatgpt-plan/device-auths","description":"Starts a device sign-in to a ChatGPT plan and returns its id with the code the caller enters at verification_url.\n\nUse this tool when you need to:\n- Connect a ChatGPT plan so the caller's Codex tasks can run on it, by signing in to ChatGPT with a one-time code\n- Sign a ChatGPT plan connection in again when it needs re-authentication, keeping its id\n\nExamples:\n- POST /connections/chatgpt-plan/device-auths {\"mode\": \"add\", \"name\": \"Personal ChatGPT plan\"}\n- POST /connections/chatgpt-plan/device-auths {\"mode\": \"reconnect\", \"connection_id\": \"6f1c2a9e-3b7d-4c55-9a2e-0d8b1f4e7c21\"}\n\nHints:\n- mode is required: add with name (1 to 100 characters on one line, with no space, tab, form feed or carriage return at either end), or reconnect with connection_id, the uuid of a ChatGPT plan connection the caller holds; the schema answers 422 for any other shape.\n- Answers 201 with id, user_code, verification_url and interval: the caller signs in to ChatGPT at verification_url and enters user_code, and getChatgptPlanDeviceAuth reads the sign-in by its id every interval seconds until it is complete.\n- No connection is written yet: once a read finds the caller signed in, mode add stores the plan as a new connection under name and mode reconnect stores it in the ChatGPT plan connection connection_id names. The name is checked only then, so a name already taken is refused by that read, not here.\n- Use addOpenaiApiKeyConnection instead to connect an OpenAI API key; reconnectConnection takes no ChatGPT plan, so a ChatGPT plan reconnects here.\n- Any signed-in user may call it for themselves, an agent host's grant included (the Aether CLI in the agent's box calls it for its owner); through a platform API key pinned to an org where the caller is a viewer or billing member it is refused with 403 org_role_insufficient.\n- Refused with 404 connection_not_found for a connection_id the caller does not hold (or one the schema admits that is not a canonical lowercase uuid), 409 connection_option_mismatch for a connection of another option than a ChatGPT plan, and 502 when ChatGPT does not start the sign-in.","href":"/api-reference/endpoints/connections/post-connections-chatgpt-plan-device-auths"},{"title":"Read a ChatGPT plan device sign-in","openapi":"api-reference/openapi.json GET /connections/chatgpt-plan/device-auths/{deviceAuthID}","href":"/api-reference/endpoints/connections/get-connections-chatgpt-plan-device-auths-by-deviceauthid"},{"title":"Reconnect a connection","openapi":"api-reference/openapi.json POST /connections/{connectionID}/reconnect","href":"/api-reference/endpoints/connections/post-connections-by-connectionid-reconnect"},{"title":"Rename a connection","openapi":"api-reference/openapi.json PATCH /connections/{connectionID}","href":"/api-reference/endpoints/connections/patch-connections-by-connectionid"},{"title":"Disconnect a connection","openapi":"api-reference/openapi.json DELETE /connections/{connectionID}","href":"/api-reference/endpoints/connections/delete-connections-by-connectionid"},{"title":"List your connection defaults","openapi":"api-reference/openapi.json GET /connections/defaults","href":"/api-reference/endpoints/connections/get-connections-defaults"},{"title":"Set a harness's default connection","openapi":"api-reference/openapi.json PUT /connections/defaults/{harness}","href":"/api-reference/endpoints/connections/put-connections-defaults-by-harness"},{"title":"Set the fallback of a harness's default connection","openapi":"api-reference/openapi.json PATCH /connections/defaults/{harness}","href":"/api-reference/endpoints/connections/patch-connections-defaults-by-harness"}]},{"group":"Slack","pages":[{"title":"Get Slack install URL","openapi":"api-reference/openapi.json GET /orgs/{orgID}/auth/slack/url","href":"/api-reference/endpoints/slack/get-orgs-by-orgid-auth-slack-url"},{"title":"List Slack channels","openapi":"api-reference/openapi.json GET /orgs/{orgID}/slack/channels","href":"/api-reference/endpoints/slack/get-orgs-by-orgid-slack-channels"},{"title":"Disconnect Slack","openapi":"api-reference/openapi.json DELETE /orgs/{orgID}/slack/connection","href":"/api-reference/endpoints/slack/delete-orgs-by-orgid-slack-connection"},{"title":"Update Slack connection","openapi":"api-reference/openapi.json PATCH /orgs/{orgID}/slack/connection","href":"/api-reference/endpoints/slack/patch-orgs-by-orgid-slack-connection"},{"title":"Link my Slack identity","openapi":"api-reference/openapi.json POST /slack/identity/link","href":"/api-reference/endpoints/slack/post-slack-identity-link"},{"title":"Unlink my Slack identity","openapi":"api-reference/openapi.json DELETE /orgs/{orgID}/slack/identity/link","href":"/api-reference/endpoints/slack/delete-orgs-by-orgid-slack-identity-link"},{"title":"List Slack routes","openapi":"api-reference/openapi.json GET /orgs/{orgID}/slack/routes","href":"/api-reference/endpoints/slack/get-orgs-by-orgid-slack-routes"},{"title":"Create Slack route","openapi":"api-reference/openapi.json POST /orgs/{orgID}/slack/routes","href":"/api-reference/endpoints/slack/post-orgs-by-orgid-slack-routes"},{"title":"Update Slack route","openapi":"api-reference/openapi.json PATCH /orgs/{orgID}/slack/routes/{routeID}","href":"/api-reference/endpoints/slack/patch-orgs-by-orgid-slack-routes-by-routeid"},{"title":"Delete Slack route","openapi":"api-reference/openapi.json DELETE /orgs/{orgID}/slack/routes/{routeID}","href":"/api-reference/endpoints/slack/delete-orgs-by-orgid-slack-routes-by-routeid"},{"title":"Get Slack status","openapi":"api-reference/openapi.json GET /orgs/{orgID}/slack/status","href":"/api-reference/endpoints/slack/get-orgs-by-orgid-slack-status"}]},{"group":"Sentry","pages":[{"title":"Get Sentry install URL","openapi":"api-reference/openapi.json GET /orgs/{orgID}/auth/sentry/url","href":"/api-reference/endpoints/sentry/get-orgs-by-orgid-auth-sentry-url"},{"title":"Disconnect Sentry","openapi":"api-reference/openapi.json DELETE /orgs/{orgID}/sentry/connection","href":"/api-reference/endpoints/sentry/delete-orgs-by-orgid-sentry-connection"},{"title":"Update Sentry connection","openapi":"api-reference/openapi.json PATCH /orgs/{orgID}/sentry/connection","href":"/api-reference/endpoints/sentry/patch-orgs-by-orgid-sentry-connection"},{"title":"List Sentry routes","openapi":"api-reference/openapi.json GET /orgs/{orgID}/sentry/routes","href":"/api-reference/endpoints/sentry/get-orgs-by-orgid-sentry-routes"},{"title":"Create Sentry route","openapi":"api-reference/openapi.json POST /orgs/{orgID}/sentry/routes","href":"/api-reference/endpoints/sentry/post-orgs-by-orgid-sentry-routes"},{"title":"Update Sentry route","openapi":"api-reference/openapi.json PATCH /orgs/{orgID}/sentry/routes/{routeID}","href":"/api-reference/endpoints/sentry/patch-orgs-by-orgid-sentry-routes-by-routeid"},{"title":"Delete Sentry route","openapi":"api-reference/openapi.json DELETE /orgs/{orgID}/sentry/routes/{routeID}","href":"/api-reference/endpoints/sentry/delete-orgs-by-orgid-sentry-routes-by-routeid"},{"title":"List Sentry projects","openapi":"api-reference/openapi.json GET /orgs/{orgID}/sentry/projects","href":"/api-reference/endpoints/sentry/get-orgs-by-orgid-sentry-projects"},{"title":"Get Sentry status","openapi":"api-reference/openapi.json GET /orgs/{orgID}/sentry/status","href":"/api-reference/endpoints/sentry/get-orgs-by-orgid-sentry-status"}]},{"group":"Feedback","pages":[{"title":"Submit feedback","openapi":"api-reference/openapi.json POST /feedback","href":"/api-reference/endpoints/feedback/post-feedback"}]},{"group":"Notifications","pages":[{"title":"Get notification preferences","openapi":"api-reference/openapi.json GET /user/notification-preferences","href":"/api-reference/endpoints/notifications/get-user-notification-preferences"},{"title":"Update notification preferences","openapi":"api-reference/openapi.json PATCH /user/notification-preferences","href":"/api-reference/endpoints/notifications/patch-user-notification-preferences"},{"title":"List notifications","openapi":"api-reference/openapi.json GET /user/notifications","href":"/api-reference/endpoints/notifications/get-user-notifications"},{"title":"Count tasks waiting on you","openapi":"api-reference/openapi.json GET /user/waiting-task-count","href":"/api-reference/endpoints/notifications/get-user-waiting-task-count"},{"title":"Resolve task notifications","openapi":"api-reference/openapi.json POST /user/notifications/tasks/{taskID}/resolve","href":"/api-reference/endpoints/notifications/post-user-notifications-tasks-by-taskid-resolve"},{"title":"Dismiss notification","openapi":"api-reference/openapi.json POST /user/notifications/{notificationID}/dismiss","href":"/api-reference/endpoints/notifications/post-user-notifications-by-notificationid-dismiss"}]},{"group":"GitHub","pages":[{"title":"Get GitHub install URL","openapi":"api-reference/openapi.json GET /auth/github/url","href":"/api-reference/endpoints/github/get-auth-github-url"},{"title":"Get GitHub authorize URL","openapi":"api-reference/openapi.json GET /auth/github/authorize-url","href":"/api-reference/endpoints/github/get-auth-github-authorize-url"},{"title":"Claim GitHub installations from an OAuth code","openapi":"api-reference/openapi.json POST /github/installations/claim","href":"/api-reference/endpoints/github/post-github-installations-claim"},{"title":"Disconnect GitHub","openapi":"api-reference/openapi.json DELETE /github/connection","href":"/api-reference/endpoints/github/delete-github-connection"},{"title":"List GitHub repos","openapi":"api-reference/openapi.json GET /github/repos","href":"/api-reference/endpoints/github/get-github-repos"},{"title":"Get a GitHub repo","openapi":"api-reference/openapi.json GET /github/repos/{owner}/{repo}","href":"/api-reference/endpoints/github/get-github-repos-by-owner-by-repo"},{"title":"Get GitHub status","openapi":"api-reference/openapi.json GET /github/status","href":"/api-reference/endpoints/github/get-github-status"},{"title":"List GitHub repo branch suggestions","openapi":"api-reference/openapi.json GET /projects/{projectID}/github/branch-suggestions","href":"/api-reference/endpoints/github/get-projects-by-projectid-github-branch-suggestions"},{"title":"Import GitHub repo","openapi":"api-reference/openapi.json POST /projects/{projectID}/github/import","href":"/api-reference/endpoints/github/post-projects-by-projectid-github-import"},{"title":"Get GitHub project link","openapi":"api-reference/openapi.json GET /projects/{projectID}/github/link","href":"/api-reference/endpoints/github/get-projects-by-projectid-github-link"},{"title":"Fetch GitHub repo tree","openapi":"api-reference/openapi.json GET /projects/{projectID}/github/tree","href":"/api-reference/endpoints/github/get-projects-by-projectid-github-tree"}]},{"group":"Platform API Keys","pages":[{"title":"List platform API keys","openapi":"api-reference/openapi.json GET /user/platform-keys","href":"/api-reference/endpoints/platform-keys/get-user-platform-keys"},{"title":"Create platform API key","openapi":"api-reference/openapi.json POST /orgs/{orgID}/platform-keys","href":"/api-reference/endpoints/platform-keys/post-orgs-by-orgid-platform-keys"},{"title":"Revoke platform API key","openapi":"api-reference/openapi.json DELETE /user/platform-keys/{platformKeyID}","href":"/api-reference/endpoints/platform-keys/delete-user-platform-keys-by-platformkeyid"}]},{"group":"User Settings","pages":[{"title":"Get user settings","openapi":"api-reference/openapi.json GET /user/settings","href":"/api-reference/endpoints/user-settings/get-user-settings"},{"title":"Update user settings","openapi":"api-reference/openapi.json PATCH /user/settings","href":"/api-reference/endpoints/user-settings/patch-user-settings"}]},{"group":"Billing","pages":[{"title":"Get billing catalog","openapi":"api-reference/openapi.json GET /orgs/{orgID}/billing/catalog","href":"/api-reference/endpoints/billing/get-orgs-by-orgid-billing-catalog"},{"title":"Get inference balance","openapi":"api-reference/openapi.json GET /orgs/{orgID}/billing/inference-balance","href":"/api-reference/endpoints/billing/get-orgs-by-orgid-billing-inference-balance"},{"title":"Create billing checkout session","openapi":"api-reference/openapi.json POST /orgs/{orgID}/billing/checkout-sessions","href":"/api-reference/endpoints/billing/post-orgs-by-orgid-billing-checkout-sessions"},{"title":"Bind a store transaction to a purchase intent","openapi":"api-reference/openapi.json POST /orgs/{orgID}/billing/checkout-sessions/{checkoutSessionID}/transaction","href":"/api-reference/endpoints/billing/post-orgs-by-orgid-billing-checkout-sessions-by-checkoutsessionid-transaction"},{"title":"Get billing checkout session","openapi":"api-reference/openapi.json GET /orgs/{orgID}/billing/checkout-sessions/{lookup}","href":"/api-reference/endpoints/billing/get-orgs-by-orgid-billing-checkout-sessions-by-lookup"},{"title":"List billing credit packs","openapi":"api-reference/openapi.json GET /orgs/{orgID}/billing/credit-packs","href":"/api-reference/endpoints/billing/get-orgs-by-orgid-billing-credit-packs"},{"title":"Create billing portal session","openapi":"api-reference/openapi.json POST /orgs/{orgID}/billing/portal-sessions","href":"/api-reference/endpoints/billing/post-orgs-by-orgid-billing-portal-sessions"},{"title":"List the caller's unassigned store purchases","openapi":"api-reference/openapi.json GET /billing/store/unassigned-purchases","href":"/api-reference/endpoints/billing/get-billing-store-unassigned-purchases"},{"title":"Claim an unassigned store purchase into an org","openapi":"api-reference/openapi.json POST /billing/store/unassigned-purchases/{transactionID}/claim","href":"/api-reference/endpoints/billing/post-billing-store-unassigned-purchases-by-transactionid-claim"},{"title":"List billing warm slots","openapi":"api-reference/openapi.json GET /orgs/{orgID}/billing/slots","href":"/api-reference/endpoints/billing/get-orgs-by-orgid-billing-slots"},{"title":"Assign a project to a billing warm slot","openapi":"api-reference/openapi.json PUT /orgs/{orgID}/billing/slots/{slotIndex}","href":"/api-reference/endpoints/billing/put-orgs-by-orgid-billing-slots-by-slotindex"},{"title":"Release a billing warm slot","openapi":"api-reference/openapi.json DELETE /orgs/{orgID}/billing/slots/{slotIndex}","href":"/api-reference/endpoints/billing/delete-orgs-by-orgid-billing-slots-by-slotindex"},{"title":"Get billing subscription","openapi":"api-reference/openapi.json GET /orgs/{orgID}/billing/subscription","href":"/api-reference/endpoints/billing/get-orgs-by-orgid-billing-subscription"}]},{"group":"Linear","pages":[{"title":"Get Linear install URL","openapi":"api-reference/openapi.json GET /orgs/{orgID}/auth/linear/url","href":"/api-reference/endpoints/linear/get-orgs-by-orgid-auth-linear-url"},{"title":"Disconnect Linear","openapi":"api-reference/openapi.json DELETE /orgs/{orgID}/linear/connection","href":"/api-reference/endpoints/linear/delete-orgs-by-orgid-linear-connection"},{"title":"Update Linear connection","openapi":"api-reference/openapi.json PATCH /orgs/{orgID}/linear/connection","href":"/api-reference/endpoints/linear/patch-orgs-by-orgid-linear-connection"},{"title":"List Linear projects","openapi":"api-reference/openapi.json GET /orgs/{orgID}/linear/projects","href":"/api-reference/endpoints/linear/get-orgs-by-orgid-linear-projects"},{"title":"List Linear routes","openapi":"api-reference/openapi.json GET /orgs/{orgID}/linear/routes","href":"/api-reference/endpoints/linear/get-orgs-by-orgid-linear-routes"},{"title":"Create Linear route","openapi":"api-reference/openapi.json POST /orgs/{orgID}/linear/routes","href":"/api-reference/endpoints/linear/post-orgs-by-orgid-linear-routes"},{"title":"Update Linear route","openapi":"api-reference/openapi.json PATCH /orgs/{orgID}/linear/routes/{routeID}","href":"/api-reference/endpoints/linear/patch-orgs-by-orgid-linear-routes-by-routeid"},{"title":"Delete Linear route","openapi":"api-reference/openapi.json DELETE /orgs/{orgID}/linear/routes/{routeID}","href":"/api-reference/endpoints/linear/delete-orgs-by-orgid-linear-routes-by-routeid"},{"title":"Get Linear status","openapi":"api-reference/openapi.json GET /orgs/{orgID}/linear/status","href":"/api-reference/endpoints/linear/get-orgs-by-orgid-linear-status"},{"title":"List Linear teams","openapi":"api-reference/openapi.json GET /orgs/{orgID}/linear/teams","href":"/api-reference/endpoints/linear/get-orgs-by-orgid-linear-teams"}]},{"group":"WebSocket","pages":[{"title":"WebSocket Overview","href":"/api-reference/websocket/overview"},{"title":"Terminal Channel","href":"/api-reference/websocket/terminal"},{"title":"Files Channel","href":"/api-reference/websocket/files"},{"title":"Agent Channel","href":"/api-reference/websocket/agent"},{"title":"Ports Channel","href":"/api-reference/websocket/ports"},{"title":"Git Channel","href":"/api-reference/websocket/git"}]}]},{"tab":"CLI Reference","pages":[{"title":"CLI Reference","href":"/cli/overview"}]}]},"basePath":"","title":"Add a connection: OpenCode auth file - Aether","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C-hEh3I2.js","utils-CnF4QiUD.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C7PVNbel.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-8ytevL2A.js","snippetPresets-BT1alx3v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BLXC0i_W.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CyLIGI9_.js","shallow-DC0lGVIW.js","getApiPlaygroundDisplay-CgDQ85tN.js","CodeSnippet-6-I-Gpv9.js","CodeSnippets-BAk1kDdu.js","Page-C945cI-W.js","getPastedJson-B276RuWN.js","icon-BqP8etTm.js","MethodPill-DM6sbxG1.js","DuplicateIcon-PyJglOaE.js","createIcon-CMeOMAc_.js","DynamicMarkdown-BoyYAA8K.js","SectionHeading-DAYv3gvZ.js","axios-vUo_bRtp.js","Markdown-BhTTmazV.js","clsx-CR-RHrVC.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CBUH0-zX.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BmARFYNC.js"]}