WednesdayAI supports “subscription auth” via OAuth for providers that offer it (notably OpenAI Codex (ChatGPT OAuth)). For Anthropic subscriptions, use the setup-token flow. Anthropic subscription use outside Claude Code has been restricted for some users in the past, so treat it as a user-choice risk and verify current Anthropic policy yourself. OpenAI Codex OAuth is explicitly supported for use in external tools like WednesdayAI. This page explains:For Anthropic in production, API key auth is the safer recommended path over subscription setup-token auth.
how the OAuth token exchange works (PKCE)
where tokens are stored (and why)
how to handle multiple accounts (profiles + per-session overrides)
WednesdayAI also supports provider plugins that ship their own OAuth or API‑key
flows. Run them via:
wednesdayai models auth login --provider <id>
The token sink (why it exists)
OAuth providers commonly mint a new refresh token during login/refresh flows. Some providers (or OAuth clients) can invalidate older refresh tokens when a new one is issued for the same user/app.Practical symptom:
you log in via WednesdayAI and via Claude Code / Codex CLI → one of them randomly gets “logged out” later
To reduce that, WednesdayAI treats auth-profiles.json as a token sink:
the runtime reads credentials from one place
we can keep multiple profiles and route them deterministically
Legacy compatibility file: ~/.openclaw/agents/<agentId>/agent/auth.json
(static api_key entries are scrubbed when discovered)
Legacy import-only file (still supported, but not the main store):
~/.openclaw/credentials/oauth.json (imported into auth-profiles.json on first use)
All of the above also respect $OPENCLAW_STATE_DIR (state dir override). Full reference: /gateway/configurationFor static secret refs and runtime snapshot activation behavior, see Secrets Management.
Anthropic setup-token (subscription auth)
Anthropic setup-token support is technical compatibility, not a policy guarantee.
Anthropic has blocked some subscription usage outside Claude Code in the past.
Decide for yourself whether to use subscription auth, and verify Anthropic’s current terms.
Run claude setup-token on any machine, then paste it into WednesdayAI:
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"WednesdayAI","description":"The AI platform that stays yours. Documentation for administrators, users, and developers.","colors":{"primary":"#6366f1","light":"#818cf8","dark":"#4f46e5"},"logo":{"light":"https://mintcdn.com/expansionxpartners/dow-8PUnQ_SAIAho/assets/logo-light.svg?fit=max\u0026auto=format\u0026n=dow-8PUnQ_SAIAho\u0026q=85\u0026s=8b9f28296cca622a181934acf27d274b","dark":"https://mintcdn.com/expansionxpartners/dow-8PUnQ_SAIAho/assets/logo-dark.svg?fit=max\u0026auto=format\u0026n=dow-8PUnQ_SAIAho\u0026q=85\u0026s=635a03b67088a77559481dfab5e1e12f"},"favicon":"https://mintcdn.com/expansionxpartners/dow-8PUnQ_SAIAho/assets/favicon.svg?fit=max\u0026auto=format\u0026n=dow-8PUnQ_SAIAho\u0026q=85\u0026s=88396129c7038fbb5e487a35b26b1ffd","background":{"color":{"dark":"#0f172a"}},"navbar":{"links":[{"icon":"github","href":"https://github.com/ExpansionX/WednesdayAI-core","label":"GitHub"},{"icon":"discord","href":"https://discord.gg/wednesdayai","label":"Discord"}],"primary":{"type":"button","label":"Get started","href":"/admin/getting-started"}},"search":{"prompt":"Search WednesdayAI docs..."},"seo":{"indexing":"navigable"},"fonts":{"heading":{"family":"Space Grotesk"},"body":{"family":"Inter"}},"icons":{"library":"lucide"},"styling":{"codeblocks":"dark","latex":true},"banner":{"content":"Latest release: WednesdayAI v0.6.1 ([release notes](https://github.com/ExpansionX/WednesdayAI-core/releases/tag/v0.6.1)). Use the version menu for unreleased (next) or older docs.","dismissible":true},"navigation":{"global":{"anchors":[{"anchor":"Changelog","icon":"megaphone","href":"/changelog"},{"anchor":"GitHub","icon":"github","href":"https://github.com/ExpansionX/WednesdayAI-core"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"expansionxpartners","hasAudioNarration":false,"actualSubdomain":"expansionxpartners","customDomains":["docs.wednesdayai.dev"],"gitSource":{"type":"github","owner":"expansionx","repo":"wednesdayai-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6afc0b28959cb52827702c74","clientVersion":"0.0.4227","searchFilterCounts":[{"language":"default","tag":"Administrators","count":366},{"language":"default","tag":"Users","count":298},{"language":"default","tag":"Developers","count":212},{"language":"default","tag":"CLI command reference","count":90},{"language":"default","tag":"AI providers","count":66},{"language":"default","tag":"Gateway (synced pages)","count":62},{"language":"default","tag":"Core concepts (developer)","count":58},{"language":"default","tag":"More agent tools","count":56},{"language":"default","tag":"Extension points","count":50},{"language":"default","tag":"Channels (synced pages)","count":40}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":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":"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":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":":root{--wai-indigo: #6366f1;--wai-indigo-400: #818cf8;--wai-indigo-600: #5457e5;--wai-violet: #8b5cf6;--wai-pink: #f472b6;--wai-slate-950: #0f172a;--wai-radius: 12px;--wai-ease: cubic-bezier(0.16, 1, 0.3, 1)}h1,h2,h3,.prose h1,.prose h2,.prose h3{letter-spacing:-0.025em}h1,.prose h1{letter-spacing:-0.035em}.eyebrow,[data-eyebrow]{text-transform:uppercase;letter-spacing:0.08em;font-weight:600}a[class*=\"card\"],div[class*=\"card\"],.card{border-radius:var(--wai-radius);transition:border-color 200ms var(--wai-ease),\n transform 120ms var(--wai-ease),\n box-shadow 200ms var(--wai-ease)}@media (prefers-reduced-motion: no-preference){a[class*=\"card\"]:hover,div[class*=\"card\"]:hover,.card:hover{transform:translateY(-1px);border-color:var(--wai-indigo-400);box-shadow:0 4px 12px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(99, 102, 241, 0.25)}}a:hover{text-decoration-color:var(--wai-indigo)}a:focus-visible,button:focus-visible,[tabindex]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--wai-slate-950), 0 0 0 4px var(--wai-indigo);border-radius:6px}:root[class~=\"light\"] a:focus-visible,:root[class~=\"light\"] button:focus-visible{box-shadow:0 0 0 2px #ffffff, 0 0 0 4px var(--wai-indigo)}@media (prefers-reduced-motion: no-preference){a[class*=\"primary\"]:hover,button[class*=\"primary\"]:hover{box-shadow:0 8px 24px rgba(99, 102, 241, 0.4);transform:translateY(-1px)}}pre ::selection,code ::selection{background:rgba(99, 102, 241, 0.28)}[aria-current=\"page\"]{--tw-text-opacity: 1}header,nav[class*=\"navbar\"]{background-image:radial-gradient(60% 120% at 12% 0%, rgba(99, 102, 241, 0.10), transparent 60%)}.brand-accent,.nav__title b{color:var(--wai-pink)}"}]}
{"page":{"pagePath":"next/developers/concepts/oauth","slug":"/next/developers/concepts/oauth","pageMetadata":{"summary":"OAuth in WednesdayAI: token exchange, storage, and multi-account patterns","read_when":["You want to understand WednesdayAI OAuth end-to-end","You hit token invalidation / logout issues","You want setup-token or OAuth auth flows","You want multiple accounts or profile routing"],"title":"OAuth","description":null,"href":"/next/developers/concepts/oauth"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`oauth`,children:`OAuth`}),`\n`,_jsxs(_components.p,{children:[`WednesdayAI supports “subscription auth” via OAuth for providers that offer it (notably `,_jsx(_components.strong,{children:`OpenAI Codex (ChatGPT OAuth)`}),`). For Anthropic subscriptions, use the `,_jsx(_components.strong,{children:`setup-token`}),` flow. Anthropic subscription use outside Claude Code has been restricted for some users in the past, so treat it as a user-choice risk and verify current Anthropic policy yourself. OpenAI Codex OAuth is explicitly supported for use in external tools like WednesdayAI. This page explains:`]}),`\n`,_jsx(_components.p,{children:`For Anthropic in production, API key auth is the safer recommended path over subscription setup-token auth.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`how the OAuth `,_jsx(_components.strong,{children:`token exchange`}),` works (PKCE)`]}),`\n`,_jsxs(_components.li,{children:[`where tokens are `,_jsx(_components.strong,{children:`stored`}),` (and why)`]}),`\n`,_jsxs(_components.li,{children:[`how to handle `,_jsx(_components.strong,{children:`multiple accounts`}),` (profiles + per-session overrides)`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`WednesdayAI also supports `,_jsx(_components.strong,{children:`provider plugins`}),` that ship their own OAuth or API‑key\nflows. Run them via:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`wednesdayai models auth login --provider \u003cid>`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`the-token-sink-why-it-exists`,children:`The token sink (why it exists)`}),`\n`,_jsxs(_components.p,{children:[`OAuth providers commonly mint a `,_jsx(_components.strong,{children:`new refresh token`}),` during login/refresh flows. Some providers (or OAuth clients) can invalidate older refresh tokens when a new one is issued for the same user/app.`]}),`\n`,_jsx(_components.p,{children:`Practical symptom:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`you log in via WednesdayAI `,_jsx(_components.em,{children:`and`}),` via Claude Code / Codex CLI → one of them randomly gets “logged out” later`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`To reduce that, WednesdayAI treats `,_jsx(_components.code,{children:`auth-profiles.json`}),` as a `,_jsx(_components.strong,{children:`token sink`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`the runtime reads credentials from `,_jsx(_components.strong,{children:`one place`})]}),`\n`,_jsx(_components.li,{children:`we can keep multiple profiles and route them deterministically`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`storage-where-tokens-live`,children:`Storage (where tokens live)`}),`\n`,_jsxs(_components.p,{children:[`Secrets are stored `,_jsx(_components.strong,{children:`per-agent`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Auth profiles (OAuth + API keys + optional value-level refs): `,_jsx(_components.code,{children:`~/.openclaw/agents/\u003cagentId>/agent/auth-profiles.json`})]}),`\n`,_jsxs(_components.li,{children:[`Legacy compatibility file: `,_jsx(_components.code,{children:`~/.openclaw/agents/\u003cagentId>/agent/auth.json`}),`\n(static `,_jsx(_components.code,{children:`api_key`}),` entries are scrubbed when discovered)`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Legacy import-only file (still supported, but not the main store):`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`~/.openclaw/credentials/oauth.json`}),` (imported into `,_jsx(_components.code,{children:`auth-profiles.json`}),` on first use)`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`All of the above also respect `,_jsx(_components.code,{children:`$OPENCLAW_STATE_DIR`}),` (state dir override). Full reference: `,_jsx(_components.a,{href:`/next/admin/gateway/configuration#auth-storage-oauth--api-keys`,children:`/gateway/configuration`})]}),`\n`,_jsxs(_components.p,{children:[`For static secret refs and runtime snapshot activation behavior, see `,_jsx(_components.a,{href:`/next/admin/gateway/secrets`,children:`Secrets Management`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`anthropic-setup-token-subscription-auth`,children:`Anthropic setup-token (subscription auth)`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Anthropic setup-token support is technical compatibility, not a policy guarantee.\nAnthropic has blocked some subscription usage outside Claude Code in the past.\nDecide for yourself whether to use subscription auth, and verify Anthropic’s current terms.`})}),`\n`,_jsxs(_components.p,{children:[`Run `,_jsx(_components.code,{children:`claude setup-token`}),` on any machine, then paste it into WednesdayAI:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`wednesdayai models auth setup-token --provider anthropic`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`If you generated the token elsewhere, paste it manually:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`wednesdayai models auth paste-token --provider anthropic`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Verify:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`wednesdayai models status`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`oauth-exchange-how-login-works`,children:`OAuth exchange (how login works)`}),`\n`,_jsxs(_components.p,{children:[`WednesdayAI’s interactive login flows are implemented in `,_jsx(_components.code,{children:`@earendil-works/pi-ai`}),` and wired into the wizards/commands.`]}),`\n`,_jsx(Heading,{level:`3`,id:`anthropic-setup-token`,children:`Anthropic setup-token`}),`\n`,_jsx(_components.p,{children:`Flow shape:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`run `,_jsx(_components.code,{children:`claude setup-token`})]}),`\n`,_jsx(_components.li,{children:`paste the token into WednesdayAI`}),`\n`,_jsx(_components.li,{children:`store as a token auth profile (no refresh)`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The wizard path is `,_jsx(_components.code,{children:`wednesdayai onboard`}),` → auth choice `,_jsx(_components.code,{children:`setup-token`}),` (Anthropic).`]}),`\n`,_jsx(Heading,{level:`3`,id:`openai-codex-chatgpt-oauth`,children:`OpenAI Codex (ChatGPT OAuth)`}),`\n`,_jsx(_components.p,{children:`OpenAI Codex OAuth is explicitly supported for use outside the Codex CLI, including WednesdayAI workflows.`}),`\n`,_jsx(_components.p,{children:`Flow shape (PKCE):`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`generate PKCE verifier/challenge + random `,_jsx(_components.code,{children:`state`})]}),`\n`,_jsxs(_components.li,{children:[`open `,_jsx(_components.code,{children:`https://auth.openai.com/oauth/authorize?...`})]}),`\n`,_jsxs(_components.li,{children:[`try to capture callback on `,_jsx(_components.code,{children:`http://127.0.0.1:1455/auth/callback`})]}),`\n`,_jsx(_components.li,{children:`if callback can’t bind (or you’re remote/headless), paste the redirect URL/code`}),`\n`,_jsxs(_components.li,{children:[`exchange at `,_jsx(_components.code,{children:`https://auth.openai.com/oauth/token`})]}),`\n`,_jsxs(_components.li,{children:[`extract `,_jsx(_components.code,{children:`accountId`}),` from the access token and store `,_jsx(_components.code,{children:`{ access, refresh, expires, accountId }`})]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Wizard path is `,_jsx(_components.code,{children:`wednesdayai onboard`}),` → auth choice `,_jsx(_components.code,{children:`openai-codex`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`refresh-+-expiry`,children:`Refresh + expiry`}),`\n`,_jsxs(_components.p,{children:[`Profiles store an `,_jsx(_components.code,{children:`expires`}),` timestamp.`]}),`\n`,_jsx(_components.p,{children:`At runtime:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`if `,_jsx(_components.code,{children:`expires`}),` is in the future → use the stored access token`]}),`\n`,_jsx(_components.li,{children:`if expired → refresh (under a file lock) and overwrite the stored credentials`}),`\n`]}),`\n`,_jsx(_components.p,{children:`The refresh flow is automatic; you generally don’t need to manage tokens manually.`}),`\n`,_jsx(Heading,{level:`2`,id:`multiple-accounts-profiles-+-routing`,children:`Multiple accounts (profiles) + routing`}),`\n`,_jsx(_components.p,{children:`Two patterns:`}),`\n`,_jsx(Heading,{level:`3`,id:`1-preferred-separate-agents`,children:`1) Preferred: separate agents`}),`\n`,_jsx(_components.p,{children:`If you want “personal” and “work” to never interact, use isolated agents (separate sessions + credentials + workspace):`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`wednesdayai agents add work`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`wednesdayai agents add personal`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Then configure auth per-agent (wizard) and route chats to the right agent.`}),`\n`,_jsx(Heading,{level:`3`,id:`2-advanced-multiple-profiles-in-one-agent`,children:`2) Advanced: multiple profiles in one agent`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`auth-profiles.json`}),` supports multiple profile IDs for the same provider.`]}),`\n`,_jsx(_components.p,{children:`Pick which profile is used:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`globally via config ordering (`,_jsx(_components.code,{children:`auth.order`}),`)`]}),`\n`,_jsxs(_components.li,{children:[`per-session via `,_jsx(_components.code,{children:`/model ...@\u003cprofileId>`})]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Example (session override):`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`/model Opus@anthropic:work`})}),`\n`]}),`\n`,_jsx(_components.p,{children:`How to see what profile IDs exist:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`wednesdayai channels list --json`}),` (shows `,_jsx(_components.code,{children:`auth[]`}),`)`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Related docs:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/next/developers/concepts/model-failover`,children:`/concepts/model-failover`}),` (rotation + cooldown rules)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/next/users/tools/slash-commands`,children:`/tools/slash-commands`}),` (command surface)`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"summary":"OAuth in WednesdayAI: token exchange, storage, and multi-account patterns","read_when":["You want to understand WednesdayAI OAuth end-to-end","You hit token invalidation / logout issues","You want setup-token or OAuth auth flows","You want multiple accounts or profile routing"],"title":"OAuth","description":null,"href":"/next/developers/concepts/oauth"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"OAuth","slug":"oauth","depth":1,"children":[]},{"title":"The token sink (why it exists)","slug":"the-token-sink-why-it-exists","depth":2,"children":[]},{"title":"Storage (where tokens live)","slug":"storage-where-tokens-live","depth":2,"children":[]},{"title":"Anthropic setup-token (subscription auth)","slug":"anthropic-setup-token-subscription-auth","depth":2,"children":[]},{"title":"OAuth exchange (how login works)","slug":"oauth-exchange-how-login-works","depth":2,"children":[{"title":"Anthropic setup-token","slug":"anthropic-setup-token","depth":3,"children":[]},{"title":"OpenAI Codex (ChatGPT OAuth)","slug":"openai-codex-chatgpt-oauth","depth":3,"children":[]}]},{"title":"Refresh + expiry","slug":"refresh-+-expiry","depth":2,"children":[]},{"title":"Multiple accounts (profiles) + routing","slug":"multiple-accounts-profiles-+-routing","depth":2,"children":[{"title":"1) Preferred: separate agents","slug":"1-preferred-separate-agents","depth":3,"children":[]},{"title":"2) Advanced: multiple profiles in one agent","slug":"2-advanced-multiple-profiles-in-one-agent","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"expansionxpartners","siteName":"WednesdayAI","title":"OAuth - WednesdayAI","navMaps":{"firstHrefInVersion":{"v0.6.1":{"href":"/developers/concepts/oauth","matchLevel":1},"next":{"href":"/next/developers/concepts/oauth","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-11-14T21:19:50.690Z","originalFileLocation":"next/developers/concepts/oauth.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;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=\"system\"}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=\"application-name\" content=\"WednesdayAI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/expansionxpartners/ueEk4c188hOwlmD6/_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/expansionxpartners/ueEk4c188hOwlmD6/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/expansionxpartners/ueEk4c188hOwlmD6/_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/expansionxpartners/ueEk4c188hOwlmD6/_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/expansionxpartners/ueEk4c188hOwlmD6/_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/expansionxpartners/ueEk4c188hOwlmD6/_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/expansionxpartners/ueEk4c188hOwlmD6/_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/expansionxpartners/ueEk4c188hOwlmD6/_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/expansionxpartners/ueEk4c188hOwlmD6/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"OAuth - WednesdayAI\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"WednesdayAI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.wednesdayai.dev/next/developers/concepts/oauth\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://expansionxpartners.mintlify.site/_mintlify/api/og/v2?division=Core+concepts+%28developer%29\u0026amp;title=OAuth\u0026amp;theme=723ad5e52117fba83642fb4a\u0026amp;signature=ea43e3f9666d1e52914ab98aab2da25bd833e8e5fae9426048ed1d91f100230e\">\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=\"OAuth - WednesdayAI\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://expansionxpartners.mintlify.site/_mintlify/api/og/v2?division=Core+concepts+%28developer%29\u0026amp;title=OAuth\u0026amp;theme=723ad5e52117fba83642fb4a\u0026amp;signature=ea43e3f9666d1e52914ab98aab2da25bd833e8e5fae9426048ed1d91f100230e\">\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/expansionxpartners/ueEk4c188hOwlmD6/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"WednesdayAI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366f1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.wednesdayai.dev/next/developers/concepts/oauth\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/next/developers/concepts/oauth.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.wednesdayai.dev/#organization\",\"name\":\"WednesdayAI\",\"url\":\"https://docs.wednesdayai.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/expansionxpartners/dow-8PUnQ_SAIAho/assets/logo-light.svg?fit=max\u0026auto=format\u0026n=dow-8PUnQ_SAIAho\u0026q=85\u0026s=8b9f28296cca622a181934acf27d274b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.wednesdayai.dev#website\",\"name\":\"WednesdayAI\",\"url\":\"https://docs.wednesdayai.dev\",\"publisher\":{\"@id\":\"https://docs.wednesdayai.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.wednesdayai.dev/next/developers/concepts/oauth#webpage\",\"url\":\"https://docs.wednesdayai.dev/next/developers/concepts/oauth\",\"name\":\"OAuth\",\"dateModified\":\"2026-11-14T21:19:50.690Z\",\"isPartOf\":{\"@id\":\"https://docs.wednesdayai.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.wednesdayai.dev/next/developers/concepts/oauth#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.wednesdayai.dev/next/developers/concepts/oauth#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Core concepts (developer)\",\"item\":\"https://docs.wednesdayai.dev/next/developers/concepts/agent\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OAuth\",\"item\":\"https://docs.wednesdayai.dev/next/developers/concepts/oauth\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.wednesdayai.dev/next/developers/concepts/oauth#article\",\"headline\":\"OAuth\",\"name\":\"OAuth\",\"url\":\"https://docs.wednesdayai.dev/next/developers/concepts/oauth\",\"mainEntityOfPage\":{\"@id\":\"https://docs.wednesdayai.dev/next/developers/concepts/oauth#webpage\"},\"dateModified\":\"2026-11-14T21:19:50.690Z\",\"publisher\":{\"@id\":\"https://docs.wednesdayai.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.wednesdayai.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"WednesdayAI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"WednesdayAI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/next/developers/concepts/oauth.md","siteName":"WednesdayAI","nav":{"global":{"anchors":[{"anchor":"Changelog","icon":"megaphone","href":"/changelog"},{"anchor":"GitHub","icon":"github","href":"https://github.com/ExpansionX/WednesdayAI-core"}]},"versions":[{"version":"v0.6.1","default":true,"tag":"Latest","pages":[{"title":"v0.6.1","href":"/developers/concepts/oauth"}]},{"version":"next","tag":"Unreleased","tabs":[{"tab":"Administrators","icon":"server-cog","pages":[{"title":"Administrators","href":"/next/admin/getting-started"}]},{"tab":"Users","icon":"user-round","pages":[{"title":"Users","href":"/next/users/what-is-wednesdayai"}]},{"tab":"Developers","icon":"code","groups":[{"group":"Getting started","icon":"rocket","pages":[{"title":"Developer overview","href":"/next/developers/overview"},{"title":"Write your first plugin","href":"/next/developers/plugins/your-first-plugin"},{"title":"Plugin Manifest","href":"/next/developers/plugins/manifest"},{"title":"Versioned Kernel Contracts","href":"/next/developers/plugins/contracts"},{"title":"Hook parity with upstream openclaw","href":"/next/developers/plugins/hook-parity"},{"title":null,"href":"/next/developers/plugins/session-identity-keying"},{"title":"Publishing a plugin","href":"/next/developers/plugins/publishing"}]},{"group":"Extension points","icon":"puzzle","pages":[{"title":"Hooks","href":"/next/developers/hooks"},{"title":"Task pipeline","sidebarTitle":"Task pipeline","href":"/next/developers/tasks"},{"title":"Channel adapters","href":"/next/developers/channel-adapters"},{"title":"Agent tools","href":"/next/developers/agent-tools"},{"title":"Plugin Analysis Runtime","href":"/next/developers/analysis-runtime"},{"title":"Agent signals","href":"/next/developers/agent-signals"},{"title":"Session storage","href":"/next/developers/plugins/session-store"},{"title":"Logging","href":"/next/developers/plugins/logging"},{"title":"Chat commands","href":"/next/developers/plugins/register-command"},{"title":"Web search providers","href":"/next/developers/plugins/web-search-provider"},{"title":"Session analytics","href":"/next/developers/plugins/session-analytics"},{"title":"Cognitive Substrate Backbone","sidebarTitle":"Backbone message bus","href":"/next/developers/plugins/backbone"},{"title":"Agent-turn runner","href":"/next/developers/plugins/agent-turn-runner"},{"title":null,"href":"/next/developers/plugins/session-consumer-claims"},{"title":"Chunk delivery","href":"/next/developers/plugins/chunk-delivery"},{"title":"Plugin Media Understanding Providers","href":"/next/developers/plugins/media-understanding-providers"},{"title":"Auto-reply pipeline","href":"/next/developers/auto-reply"},{"title":"Context engine","href":"/next/developers/context-engine"},{"title":"Deep observability runtime metrics","sidebarTitle":"Runtime metrics","href":"/next/developers/deep-observability"},{"title":"Exec and plugin tools","sidebarTitle":"Exec","href":"/next/developers/exec"},{"title":"Config writes","sidebarTitle":"Config writes","href":"/next/developers/config-writes"},{"title":"Redis session cache","href":"/next/developers/redis-session-cache"},{"title":"Realtime voice API","sidebarTitle":"Realtime voice API","href":"/next/developers/realtime-voice-api"},{"title":"Learning Core internals","sidebarTitle":"Learning Core","href":"/next/developers/learning"},{"title":"Product naming","href":"/next/developers/product-naming"}]},{"group":"Channel references","icon":"messages-square","pages":[{"title":"WhatsApp channel — developer reference","href":"/next/developers/channels/whatsapp"},{"title":"Telegram channel — developer reference","href":"/next/developers/channels/telegram"}]},{"group":"SDK reference","icon":"boxes","pages":[{"title":"Plugin SDK","href":"/next/developers/sdk/index"}]},{"group":"Contributing","icon":"git-pull-request","pages":[{"title":"Contributing","href":"/next/developers/contributing"},{"title":"Coding style","href":"/next/developers/contributing/coding-style"},{"title":"Testing policy","href":"/next/developers/contributing/testing"},{"title":"Secure development","href":"/next/developers/contributing/secure-development"},{"title":"Measuring performance","href":"/next/developers/contributing/performance"},{"title":"Documentation","href":"/next/developers/contributing/documentation"},{"title":"Release Checklist","href":"/next/developers/contributing/release"}]},{"group":"Core concepts (developer)","pages":[{"title":"Agent Runtime","href":"/next/developers/concepts/agent"},{"title":"Agent Loop","href":"/next/developers/concepts/agent-loop"},{"title":"Agent Workspace","href":"/next/developers/concepts/agent-workspace"},{"title":"Gateway Architecture","href":"/next/developers/concepts/architecture"},{"title":"Compaction","href":"/next/developers/concepts/compaction"},{"title":"Context","href":"/next/developers/concepts/context"},{"title":"Features","href":"/next/developers/concepts/features"},{"title":"Markdown Formatting","href":"/next/developers/concepts/markdown-formatting"},{"title":"Memory","href":"/next/developers/concepts/memory"},{"title":"Messages","href":"/next/developers/concepts/messages"},{"title":"Model Failover","href":"/next/developers/concepts/model-failover"},{"title":"Model Providers","href":"/next/developers/concepts/model-providers"},{"title":"Models CLI","href":"/next/developers/concepts/models"},{"title":"Multi-Agent Routing","description":null,"href":"/next/developers/concepts/multi-agent"},{"title":"OAuth","href":"/next/developers/concepts/oauth"},{"title":"Command Queue","description":null,"href":"/next/developers/concepts/queue"},{"title":"Retry Policy","href":"/next/developers/concepts/retry"},{"title":"Session Management","href":"/next/developers/concepts/session"},{"title":"Session Analytics — Economics, Turns, and FTS","href":"/next/developers/concepts/session-analytics"},{"title":"Session History Hygiene — Clean Replay and Turn Provenance","href":"/next/developers/concepts/session-history-hygiene"},{"title":"Session Journal","href":"/next/developers/concepts/session-journal"},{"title":"Session Pruning","href":"/next/developers/concepts/session-pruning"},{"title":"Session Tools","href":"/next/developers/concepts/session-tool"},{"title":"Streaming and Chunking","href":"/next/developers/concepts/streaming"},{"title":"Timezones","href":"/next/developers/concepts/timezone"},{"title":"TypeBox","href":"/next/developers/concepts/typebox"},{"title":"Typing Indicators","href":"/next/developers/concepts/typing-indicators"},{"title":"Usage Tracking","href":"/next/developers/concepts/usage-tracking"},{"title":"Workspace Lanes","href":"/next/developers/concepts/workspace-lanes"}]},{"group":"More plugins","pages":[{"title":"Community plugins","href":"/next/developers/plugins/community"},{"title":"Learning Core","href":"/next/developers/plugins/learning-core"},{"title":"OpenProse","href":"/next/developers/plugins/open-prose"},{"title":"Phone Control","href":"/next/developers/plugins/phone-control"},{"title":"Thread Ownership","href":"/next/developers/plugins/thread-ownership"},{"title":"Voice Call plugin","href":"/next/developers/plugins/voice-call"},{"title":"Zalo Personal Plugin","href":"/next/developers/plugins/zalouser"}]},{"group":"Developer reference","pages":[{"title":"Default AGENTS.md","href":"/next/developers/reference/AGENTS.default"},{"title":"API Usage and Costs","href":"/next/developers/reference/api-usage-costs"},{"title":"Device Model Database","href":"/next/developers/reference/device-models"},{"title":"Prompt Caching","href":"/next/developers/reference/prompt-caching"},{"title":"RPC Adapters","href":"/next/developers/reference/rpc"},{"title":"SecretRef Credential Surface","href":"/next/developers/reference/secretref-credential-surface"},{"title":"Session Management Deep Dive","href":"/next/developers/reference/session-management-compaction"},{"title":"Tests","href":"/next/developers/reference/test"},{"title":"Trusted npm publishing for contributors","href":"/next/developers/reference/trusted-npm-publishing-developer"},{"title":"Token Use and Costs","href":"/next/developers/reference/token-use"},{"title":"Transcript Hygiene","href":"/next/developers/reference/transcript-hygiene"},{"title":"Onboarding Wizard Reference","sidebarTitle":"Wizard Reference","href":"/next/developers/reference/wizard"},{"title":"Brand tokens","href":"/next/developers/reference/brand-tokens"},{"title":"Web client components","href":"/next/developers/reference/web-client-components"}]},{"group":"Prompt templates","pages":[{"title":"AGENTS.md Template","href":"/next/developers/reference/templates/AGENTS"},{"title":null,"href":"/next/developers/reference/templates/AGENTS.dev"},{"title":"BOOT.md Template","href":"/next/developers/reference/templates/BOOT"},{"title":"BOOTSTRAP.md Template","href":"/next/developers/reference/templates/BOOTSTRAP"},{"title":"HEARTBEAT.md Template","href":"/next/developers/reference/templates/HEARTBEAT"},{"title":null,"href":"/next/developers/reference/templates/IDENTITY"},{"title":null,"href":"/next/developers/reference/templates/IDENTITY.dev"},{"title":"SOUL.md Template","href":"/next/developers/reference/templates/SOUL"},{"title":null,"href":"/next/developers/reference/templates/SOUL.dev"},{"title":"TOOLS.md Template","href":"/next/developers/reference/templates/TOOLS"},{"title":null,"href":"/next/developers/reference/templates/TOOLS.dev"},{"title":null,"href":"/next/developers/reference/templates/USER"},{"title":null,"href":"/next/developers/reference/templates/USER.dev"}]},{"group":"Shohin","pages":[{"title":"Shohin developer notes","href":"/next/developers/shohin"}]}]},{"tab":"Reference","icon":"book-open","pages":[{"title":"Reference","href":"/next/reference/config"}]}]}]},"basePath":"","title":"OAuth - WednesdayAI","deploymentId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","buildId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","dynamics":["10e4515597"],"chunks":["BannerMarkdown-DnSAhvaM.js","dist-DIfYWxfm.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}