WednesdayAI supports OAuth and API keys for model providers. For always-on gateway
hosts, API keys are usually the most predictable option. Subscription/OAuth
flows are also supported when they match your provider account model.See /concepts/oauth for the full OAuth flow and storage
layout.
For SecretRef-based auth (env/file/exec providers), see Secrets Management.
Recommended setup (API key, any provider)
If you’re running a long-lived gateway, start with an API key for your chosen
provider.
For Anthropic specifically, API key auth is the safe path and is recommended
over subscription setup-token auth.
Create an API key in your provider console.
Put it on the gateway host (the machine running wednesdayai gateway).
export <PROVIDER>_API_KEY="..."wednesdayai models status
If the Gateway runs under systemd/launchd, prefer putting the key in
~/.openclaw/.env so the daemon can read it:
Then restart the daemon (or restart your Gateway process) and re-check:
wednesdayai models statuswednesdayai doctor
If you’d rather not manage env vars yourself, the onboarding wizard can store
API keys for daemon use: wednesdayai onboard.See Help for details on env inheritance (env.shellEnv,
~/.openclaw/.env, systemd/launchd).
Anthropic: setup-token (subscription auth)
If you’re using a Claude subscription, the setup-token flow is supported. Run
it on the gateway host:
This credential is only authorized for use with Claude Code and cannot be used for other API requests.
…use an Anthropic API key instead.
Anthropic setup-token support is technical compatibility only. Anthropic has blocked
some subscription usage outside Claude Code in the past. Use it only if you decide
the policy risk is acceptable, and verify Anthropic’s current terms yourself.
Some providers support retrying a request with alternative keys when an API call
hits a provider rate limit.
Priority order:
OPENCLAW_LIVE_<PROVIDER>_KEY (single override)
<PROVIDER>_API_KEYS
<PROVIDER>_API_KEY
<PROVIDER>_API_KEY_*
Google providers also include GOOGLE_API_KEY as an additional fallback.
The same key list is deduplicated before use.
WednesdayAI retries with the next key only for rate-limit errors (for example
429, rate_limit, quota, resource exhausted).
Non-rate-limit errors are not retried with alternate keys.
If all keys fail, the final error from the last attempt is returned.
Controlling which credential is used
Per-session (chat command)
Use /model <alias-or-id>@<profileId> to pin a specific provider credential for the current session (example profile ids: anthropic:default, anthropic:work).Use /model (or /model list) for a compact picker; use /model status for the full view (candidates + next auth profile, plus provider endpoint details when configured).
Per-agent (CLI override)
Set an explicit auth profile order override for an agent (stored in that agent’s auth-profiles.json):
wednesdayai models auth order get --provider anthropicwednesdayai models auth order set --provider anthropic anthropic:defaultwednesdayai models auth order clear --provider anthropic
Use --agent <id> to target a specific agent; omit it to use the configured default agent.
Troubleshooting
“No credentials found”
If the Anthropic token profile is missing, run claude setup-token on the
gateway host, then re-check:
wednesdayai models status
Token expiring/expired
Run wednesdayai models status to confirm which profile is expiring. If the profile
is missing, rerun claude setup-token and paste the token again.
Requirements
Anthropic subscription account (for claude setup-token)
Claude Code CLI installed (claude command available)
{"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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"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":"admin/gateway/authentication","slug":"/admin/gateway/authentication","pageMetadata":{"summary":"Model authentication: OAuth, API keys, and setup-token","read_when":["Debugging model auth or OAuth expiry","Documenting authentication or credential storage"],"title":"Authentication","description":null,"href":"/admin/gateway/authentication"},"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`,blockquote:`blockquote`,code:`code`,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:`authentication`,children:`Authentication`}),`\n`,_jsx(_components.p,{children:`WednesdayAI supports OAuth and API keys for model providers. For always-on gateway\nhosts, API keys are usually the most predictable option. Subscription/OAuth\nflows are also supported when they match your provider account model.`}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/developers/concepts/oauth`,children:`/concepts/oauth`}),` for the full OAuth flow and storage\nlayout.\nFor SecretRef-based auth (`,_jsx(_components.code,{children:`env`}),`/`,_jsx(_components.code,{children:`file`}),`/`,_jsx(_components.code,{children:`exec`}),` providers), see `,_jsx(_components.a,{href:`/admin/gateway/secrets`,children:`Secrets Management`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`recommended-setup-api-key-any-provider`,children:`Recommended setup (API key, any provider)`}),`\n`,_jsx(_components.p,{children:`If you’re running a long-lived gateway, start with an API key for your chosen\nprovider.\nFor Anthropic specifically, API key auth is the safe path and is recommended\nover subscription setup-token auth.`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Create an API key in your provider console.`}),`\n`,_jsxs(_components.li,{children:[`Put it on the `,_jsx(_components.strong,{children:`gateway host`}),` (the machine running `,_jsx(_components.code,{children:`wednesdayai gateway`}),`).`]}),`\n`]}),`\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:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`PROVIDER`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`_API_KEY`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`wednesdayai`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` models`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` status`})]}),`\n`]})})}),`\n`,_jsxs(_components.ol,{start:`3`,children:[`\n`,_jsxs(_components.li,{children:[`If the Gateway runs under systemd/launchd, prefer putting the key in\n`,_jsx(_components.code,{children:`~/.openclaw/.env`}),` so the daemon can read it:`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`cat`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` >> `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`~/.openclaw/.env`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c\u003c`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`'EOF'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\u003cPROVIDER>_API_KEY=...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`EOF`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Then restart the daemon (or restart your Gateway process) and re-check:`}),`\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:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`wednesdayai`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` models`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` status`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`wednesdayai`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` doctor`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`If you’d rather not manage env vars yourself, the onboarding wizard can store\nAPI keys for daemon use: `,_jsx(_components.code,{children:`wednesdayai onboard`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/users/help`,children:`Help`}),` for details on env inheritance (`,_jsx(_components.code,{children:`env.shellEnv`}),`,\n`,_jsx(_components.code,{children:`~/.openclaw/.env`}),`, systemd/launchd).`]}),`\n`,_jsx(Heading,{level:`2`,id:`anthropic-setup-token-subscription-auth`,children:`Anthropic: setup-token (subscription auth)`}),`\n`,_jsxs(_components.p,{children:[`If you’re using a Claude subscription, the setup-token flow is supported. Run\nit on the `,_jsx(_components.strong,{children:`gateway host`}),`:`]}),`\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:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`claude`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` setup-token`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`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:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`wednesdayai`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` models`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` auth`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` setup-token`}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` --provider`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` anthropic`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`If the token was created on another machine, 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:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`wednesdayai`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` models`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` auth`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` paste-token`}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` --provider`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` anthropic`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`If you see an Anthropic error like:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`This credential is only authorized for use with Claude Code and cannot be used for other API requests.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`…use an Anthropic API key instead.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Anthropic setup-token support is technical compatibility only. Anthropic has blocked\nsome subscription usage outside Claude Code in the past. Use it only if you decide\nthe policy risk is acceptable, and verify Anthropic’s current terms yourself.`})}),`\n`,_jsxs(_components.p,{children:[`Manual token entry (any provider; writes `,_jsx(_components.code,{children:`auth-profiles.json`}),` + updates config):`]}),`\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:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`wednesdayai`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` models`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` auth`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` paste-token`}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` --provider`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` anthropic`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`wednesdayai`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` models`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` auth`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` paste-token`}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` --provider`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` openrouter`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Auth profile refs are also supported for static credentials:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`api_key`}),` credentials can use `,_jsx(_components.code,{children:`keyRef: { source, provider, id }`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`token`}),` credentials can use `,_jsx(_components.code,{children:`tokenRef: { source, provider, id }`})]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Automation-friendly check (exit `,_jsx(_components.code,{children:`1`}),` when expired/missing, `,_jsx(_components.code,{children:`2`}),` when expiring):`]}),`\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:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`wednesdayai`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` models`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` status`}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` --check`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Optional ops scripts (systemd/Termux) are documented here:\n`,_jsx(_components.a,{href:`/users/automation/auth-monitoring`,children:`/automation/auth-monitoring`})]}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`claude setup-token`}),` requires an interactive TTY.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`checking-model-auth-status`,children:`Checking model auth status`}),`\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:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`wednesdayai`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` models`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` status`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`wednesdayai`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` doctor`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`api-key-rotation-behavior-gateway`,children:`API key rotation behavior (gateway)`}),`\n`,_jsx(_components.p,{children:`Some providers support retrying a request with alternative keys when an API call\nhits a provider rate limit.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Priority order:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`OPENCLAW_LIVE_\u003cPROVIDER>_KEY`}),` (single override)`]}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`\u003cPROVIDER>_API_KEYS`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`\u003cPROVIDER>_API_KEY`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`\u003cPROVIDER>_API_KEY_*`})}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`Google providers also include `,_jsx(_components.code,{children:`GOOGLE_API_KEY`}),` as an additional fallback.`]}),`\n`,_jsx(_components.li,{children:`The same key list is deduplicated before use.`}),`\n`,_jsxs(_components.li,{children:[`WednesdayAI retries with the next key only for rate-limit errors (for example\n`,_jsx(_components.code,{children:`429`}),`, `,_jsx(_components.code,{children:`rate_limit`}),`, `,_jsx(_components.code,{children:`quota`}),`, `,_jsx(_components.code,{children:`resource exhausted`}),`).`]}),`\n`,_jsx(_components.li,{children:`Non-rate-limit errors are not retried with alternate keys.`}),`\n`,_jsx(_components.li,{children:`If all keys fail, the final error from the last attempt is returned.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`controlling-which-credential-is-used`,children:`Controlling which credential is used`}),`\n`,_jsx(Heading,{level:`3`,id:`per-session-chat-command`,children:`Per-session (chat command)`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`/model \u003calias-or-id>@\u003cprofileId>`}),` to pin a specific provider credential for the current session (example profile ids: `,_jsx(_components.code,{children:`anthropic:default`}),`, `,_jsx(_components.code,{children:`anthropic:work`}),`).`]}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`/model`}),` (or `,_jsx(_components.code,{children:`/model list`}),`) for a compact picker; use `,_jsx(_components.code,{children:`/model status`}),` for the full view (candidates + next auth profile, plus provider endpoint details when configured).`]}),`\n`,_jsx(Heading,{level:`3`,id:`per-agent-cli-override`,children:`Per-agent (CLI override)`}),`\n`,_jsxs(_components.p,{children:[`Set an explicit auth profile order override for an agent (stored in that agent’s `,_jsx(_components.code,{children:`auth-profiles.json`}),`):`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`wednesdayai`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` models`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` auth`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` order`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` get`}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` --provider`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` anthropic`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`wednesdayai`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` models`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` auth`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` order`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` set`}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` --provider`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` anthropic`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` anthropic:default`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`wednesdayai`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` models`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` auth`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` order`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` clear`}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` --provider`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` anthropic`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`--agent \u003cid>`}),` to target a specific agent; omit it to use the configured default agent.`]}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsx(Heading,{level:`3`,id:`“no-credentials-found”`,children:`“No credentials found”`}),`\n`,_jsxs(_components.p,{children:[`If the Anthropic token profile is missing, run `,_jsx(_components.code,{children:`claude setup-token`}),` on the\n`,_jsx(_components.strong,{children:`gateway host`}),`, then re-check:`]}),`\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:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`wednesdayai`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` models`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` status`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`token-expiring/expired`,children:`Token expiring/expired`}),`\n`,_jsxs(_components.p,{children:[`Run `,_jsx(_components.code,{children:`wednesdayai models status`}),` to confirm which profile is expiring. If the profile\nis missing, rerun `,_jsx(_components.code,{children:`claude setup-token`}),` and paste the token again.`]}),`\n`,_jsx(Heading,{level:`2`,id:`requirements`,children:`Requirements`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Anthropic subscription account (for `,_jsx(_components.code,{children:`claude setup-token`}),`)`]}),`\n`,_jsxs(_components.li,{children:[`Claude Code CLI installed (`,_jsx(_components.code,{children:`claude`}),` command available)`]}),`\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":"Model authentication: OAuth, API keys, and setup-token","read_when":["Debugging model auth or OAuth expiry","Documenting authentication or credential storage"],"title":"Authentication","description":null,"href":"/admin/gateway/authentication"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Authentication","slug":"authentication","depth":1,"children":[]},{"title":"Recommended setup (API key, any provider)","slug":"recommended-setup-api-key-any-provider","depth":2,"children":[]},{"title":"Anthropic: setup-token (subscription auth)","slug":"anthropic-setup-token-subscription-auth","depth":2,"children":[]},{"title":"Checking model auth status","slug":"checking-model-auth-status","depth":2,"children":[]},{"title":"API key rotation behavior (gateway)","slug":"api-key-rotation-behavior-gateway","depth":2,"children":[]},{"title":"Controlling which credential is used","slug":"controlling-which-credential-is-used","depth":2,"children":[{"title":"Per-session (chat command)","slug":"per-session-chat-command","depth":3,"children":[]},{"title":"Per-agent (CLI override)","slug":"per-agent-cli-override","depth":3,"children":[]}]},{"title":"Troubleshooting","slug":"troubleshooting","depth":2,"children":[{"title":"“No credentials found”","slug":"“no-credentials-found”","depth":3,"children":[]},{"title":"Token expiring/expired","slug":"token-expiring/expired","depth":3,"children":[]}]},{"title":"Requirements","slug":"requirements","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"expansionxpartners","siteName":"WednesdayAI","title":"Authentication - WednesdayAI","navMaps":{"firstHrefInVersion":{"v0.6.1":{"href":"/admin/gateway/authentication","matchLevel":0},"next":{"href":"/next/admin/gateway/authentication","matchLevel":1}},"firstHrefInLanguage":{}},"lastModified":"2026-11-14T21:19:50.690Z","originalFileLocation":"admin/gateway/authentication.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=\"Authentication - WednesdayAI\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"WednesdayAI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.wednesdayai.dev/admin/gateway/authentication\">\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=Gateway+configuration\u0026amp;title=Authentication\u0026amp;theme=723ad5e52117fba83642fb4a\u0026amp;signature=62a35de261617365703303982dd638b31be4ba1e89e3cc757f37e3b1655d9f4b\">\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=\"Authentication - WednesdayAI\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://expansionxpartners.mintlify.site/_mintlify/api/og/v2?division=Gateway+configuration\u0026amp;title=Authentication\u0026amp;theme=723ad5e52117fba83642fb4a\u0026amp;signature=62a35de261617365703303982dd638b31be4ba1e89e3cc757f37e3b1655d9f4b\">\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/admin/gateway/authentication\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/admin/gateway/authentication.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/admin/gateway/authentication#webpage\",\"url\":\"https://docs.wednesdayai.dev/admin/gateway/authentication\",\"name\":\"Authentication\",\"dateModified\":\"2026-11-14T21:19:50.690Z\",\"isPartOf\":{\"@id\":\"https://docs.wednesdayai.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.wednesdayai.dev/admin/gateway/authentication#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.wednesdayai.dev/admin/gateway/authentication#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Gateway configuration\",\"item\":\"https://docs.wednesdayai.dev/admin/gateway/configuration\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Authentication\",\"item\":\"https://docs.wednesdayai.dev/admin/gateway/authentication\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.wednesdayai.dev/admin/gateway/authentication#article\",\"headline\":\"Authentication\",\"name\":\"Authentication\",\"url\":\"https://docs.wednesdayai.dev/admin/gateway/authentication\",\"mainEntityOfPage\":{\"@id\":\"https://docs.wednesdayai.dev/admin/gateway/authentication#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":"/admin/gateway/authentication.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","tabs":[{"tab":"Administrators","icon":"server-cog","groups":[{"group":"Getting started","icon":"rocket","pages":[{"title":"Getting started","href":"/admin/getting-started"}]},{"group":"Gateway configuration","icon":"sliders-horizontal","pages":[{"title":"Configuration","href":"/admin/gateway/configuration"},{"title":"Config writes","sidebarTitle":"Config writes","description":"How the gateway writes openclaw.json: write methods, baseHash concurrency, the top-level removal guard, backups, audit trail, and hot-reload vs restart.","href":"/admin/gateway/config-writes"},{"title":"Authentication","href":"/admin/gateway/authentication"},{"title":"Remote access","description":"Reach the WednesdayAI control panel and gateway from outside localhost: SSH tunnels, Tailscale, reverse proxies with TLS, and remote CLI.","href":"/admin/gateway/remote-access"},{"title":"Logging","href":"/admin/gateway/logging"},{"title":"Health checks","href":"/admin/gateway/health-checks"},{"title":"Troubleshooting","href":"/admin/gateway/troubleshooting"},{"title":"System prompt","href":"/admin/gateway/system-prompt"},{"title":"Heartbeat","href":"/admin/gateway/heartbeat"},{"title":"Task operations","sidebarTitle":"Tasks","href":"/admin/gateway/tasks"},{"title":null,"href":"/admin/gateway/session-consumer-claims"},{"title":"Realtime voice","href":"/admin/gateway/realtime-voice"},{"title":"Workspace lanes","href":"/admin/gateway/workspace-lanes"},{"title":"Session journal","href":"/admin/gateway/session-journal"},{"title":"Tool policy","href":"/admin/gateway/tool-policy"},{"title":"Exec approvals","sidebarTitle":"Exec approvals","href":"/admin/gateway/exec-approvals"},{"title":"Multi-gateway setup","href":"/admin/multi-gateway"},{"title":"Secrets management","href":"/admin/secrets"},{"title":"Sandboxing","href":"/admin/sandboxing"}]},{"group":"Channels","icon":"messages-square","pages":[{"title":"Chat Channels","href":"/admin/channels/index"},{"title":"WhatsApp","href":"/admin/channels/whatsapp"},{"title":"Telegram","href":"/admin/channels/telegram"},{"title":"Discord","href":"/admin/channels/discord"},{"title":"Slack","href":"/admin/channels/slack"},{"title":"Signal","href":"/admin/channels/signal"},{"title":"iMessage","href":"/admin/channels/imessage"},{"title":"Microsoft Teams","href":"/admin/channels/msteams"},{"title":"Matrix","href":"/admin/channels/matrix"},{"title":"Feishu","href":"/admin/channels/feishu"}]},{"group":"Automation","icon":"clock","pages":[{"title":"Cron jobs","href":"/admin/automation/cron-jobs"},{"title":"Dream Cycle","href":"/admin/dream-cycle"}]},{"group":"Observability","icon":"activity","pages":[{"title":"Observability","href":"/admin/gateway/observability"},{"title":"Deep Observability","href":"/admin/gateway/deep-observability"},{"title":"Grafana and Prometheus setup","sidebarTitle":"Grafana \u0026 Prometheus","href":"/admin/observability/grafana-setup"},{"title":"OTel and Langfuse diagnostics","sidebarTitle":"OTel \u0026 Langfuse","href":"/admin/observability/otel-langfuse"}]},{"group":"Core concepts","icon":"book-open","pages":[{"title":"Sessions","href":"/admin/session"},{"title":"Streaming","href":"/admin/streaming"},{"title":"Learning Core","sidebarTitle":"Learning","href":"/admin/learning"},{"title":"Plugin Analysis Runtime Operations","href":"/admin/analysis-runtime"},{"title":"Product naming","href":"/admin/product-naming"}]},{"group":"AI providers","icon":"brain-circuit","pages":[{"title":"Model Providers","href":"/admin/providers/index"},{"title":"Anthropic","href":"/admin/providers/anthropic"},{"title":"OpenAI","href":"/admin/providers/openai"},{"title":"Google (Gemini)","href":"/admin/providers/google"},{"title":"Ollama","href":"/admin/providers/ollama"},{"title":"OpenRouter","href":"/admin/providers/openrouter"},{"title":null,"href":"/admin/providers/litellm"},{"title":"GitHub Copilot","href":"/admin/providers/github-copilot"},{"title":"Amazon Bedrock","href":"/admin/providers/bedrock"},{"title":"vLLM","href":"/admin/providers/vllm"},{"title":"Mistral AI","href":"/admin/providers/mistral"},{"title":"Groq","href":"/admin/providers/groq"},{"title":"NVIDIA","href":"/admin/providers/nvidia"},{"title":null,"href":"/admin/providers/together"},{"title":"Hugging Face (Inference)","href":"/admin/providers/huggingface"},{"title":"Venice AI","href":"/admin/providers/venice"},{"title":null,"href":"/admin/providers/kilocode"},{"title":"Moonshot AI","href":"/admin/providers/moonshot"},{"title":"Cloudflare AI Gateway","href":"/admin/providers/cloudflare-ai-gateway"},{"title":"xAI (Grok)","href":"/admin/providers/xai"},{"title":"Vercel AI Gateway","href":"/admin/providers/vercel-ai-gateway"},{"title":"Qwen","href":"/admin/providers/qwen"},{"title":null,"href":"/admin/providers/bifrost"},{"title":"GLM Models","href":"/admin/providers/glm"},{"title":"MiniMax","href":"/admin/providers/minimax"},{"title":"Z.AI","href":"/admin/providers/zai"},{"title":"Xiaomi MiMo","href":"/admin/providers/xiaomi"},{"title":"OpenCode Zen","href":"/admin/providers/opencode"},{"title":"Qianfan","href":"/admin/providers/qianfan"},{"title":"Deepgram","href":"/admin/providers/deepgram"},{"title":"ElevenLabs (Streaming Voice)","href":"/admin/providers/elevenlabs"},{"title":"Kokoro (Local TTS)","href":"/admin/providers/kokoro"},{"title":"Claude Max API Proxy","href":"/admin/providers/claude-max-api-proxy"}]},{"group":"Security","icon":"shield-check","pages":[{"title":"Security hardening","href":"/admin/security"}]},{"group":"Maintenance","icon":"wrench","pages":[{"title":"Doctor","href":"/admin/doctor"},{"title":"Upgrading and migrating","href":"/admin/upgrading"},{"title":"Troubleshooting","href":"/admin/troubleshooting"}]},{"group":"Admin","pages":[{"title":"Logging","href":"/admin/logging"},{"title":"Network","href":"/admin/network"}]},{"group":"Channels (synced pages)","pages":[{"title":"A2A","href":"/admin/channels/a2a"},{"title":"BlueBubbles","href":"/admin/channels/bluebubbles"},{"title":"Broadcast Groups","href":"/admin/channels/broadcast-groups"},{"title":"Channel Routing","href":"/admin/channels/channel-routing"},{"title":"Google Chat","href":"/admin/channels/googlechat"},{"title":"Group Messages","href":"/admin/channels/group-messages"},{"title":"Groups","href":"/admin/channels/groups"},{"title":"IRC","href":"/admin/channels/irc"},{"title":"LINE","href":"/admin/channels/line"},{"title":"Channel Location Parsing","href":"/admin/channels/location"},{"title":"Mattermost","href":"/admin/channels/mattermost"},{"title":"Nextcloud Talk","href":"/admin/channels/nextcloud-talk"},{"title":"Nostr","href":"/admin/channels/nostr"},{"title":"Pairing","href":"/admin/channels/pairing"},{"title":"Synology Chat","href":"/admin/channels/synology-chat"},{"title":"Tlon","href":"/admin/channels/tlon"},{"title":"Channel Troubleshooting","href":"/admin/channels/troubleshooting"},{"title":"Twitch","href":"/admin/channels/twitch"},{"title":"Zalo","href":"/admin/channels/zalo"},{"title":"Zalo Personal","href":"/admin/channels/zalouser"}]},{"group":"Gateway (synced pages)","pages":[{"title":"Background Exec and Process Tool","href":"/admin/gateway/background-process"},{"title":"Bonjour Discovery","href":"/admin/gateway/bonjour"},{"title":"Bridge Protocol","href":"/admin/gateway/bridge-protocol"},{"title":"CLI Backends","href":"/admin/gateway/cli-backends"},{"title":"Configuration Examples","href":"/admin/gateway/configuration-examples"},{"title":"Configuration Reference","href":"/admin/gateway/configuration-reference"},{"title":"Discovery and Transports","href":"/admin/gateway/discovery"},{"title":"Doctor","href":"/admin/gateway/doctor"},{"title":"Gateway Lock","href":"/admin/gateway/gateway-lock"},{"title":"Health Checks","href":"/admin/gateway/health"},{"title":"Gateway Runbook","href":"/admin/gateway/index"},{"title":"Local Models","href":"/admin/gateway/local-models"},{"title":"Multiple Gateways","href":"/admin/gateway/multiple-gateways"},{"title":"Network model","href":"/admin/gateway/network-model"},{"title":"OpenAI Chat Completions","href":"/admin/gateway/openai-http-api"},{"title":"OpenResponses API","href":"/admin/gateway/openresponses-http-api"},{"title":"Outbound Delivery Queue","href":"/admin/gateway/outbound-delivery"},{"title":"Gateway-Owned Pairing","href":"/admin/gateway/pairing"},{"title":"Gateway protocol (WebSocket)","href":"/admin/gateway/protocol"},{"title":"Remote Access","href":"/admin/gateway/remote"},{"title":"Remote Gateway Setup","href":"/admin/gateway/remote-gateway-readme"},{"title":"Sandbox vs Tool Policy vs Elevated","href":"/admin/gateway/sandbox-vs-tool-policy-vs-elevated"},{"title":"Sandboxing","href":"/admin/gateway/sandboxing"},{"title":null,"href":"/admin/gateway/sandboxing-admin"},{"title":null,"href":"/admin/gateway/sandboxing-developer"},{"title":null,"href":"/admin/gateway/sandboxing-user"},{"title":"Secrets Management","href":"/admin/gateway/secrets"},{"title":"Secrets Apply Plan Contract","href":"/admin/gateway/secrets-plan-contract"},{"title":"Tailscale","href":"/admin/gateway/tailscale"},{"title":"Tools Invoke API","href":"/admin/gateway/tools-invoke-http-api"},{"title":null,"href":"/admin/gateway/trusted-proxy-auth"}]},{"group":"Gateway security","pages":[{"title":"Security","href":"/admin/gateway/security/index"},{"title":null,"href":"/admin/gateway/security/network-egress-policy"}]},{"group":"Installation","pages":[{"title":"Ansible","href":"/admin/install/ansible"},{"title":"Release channels","href":"/admin/install/development-channels"},{"title":"Docker","href":"/admin/install/docker"},{"title":"exe.dev","href":"/admin/install/exe-dev"},{"title":"Fly.io","href":"/admin/install/fly"},{"title":"GCP","href":"/admin/install/gcp"},{"title":"Hetzner","href":"/admin/install/hetzner"},{"title":"Installer Internals","href":"/admin/install/installer"},{"title":"macOS VMs","href":"/admin/install/macos-vm"},{"title":"Migration Guide","href":"/admin/install/migrating"},{"title":"Nix","href":"/admin/install/nix"},{"title":"Node.js","href":"/admin/install/node"},{"title":"Deploy on Northflank","href":"/admin/install/northflank"},{"title":"Podman","href":"/admin/install/podman"},{"title":"Deploy on Railway","href":"/admin/install/railway"},{"title":"Deploy on Render","href":"/admin/install/render"},{"title":"Uninstall","href":"/admin/install/uninstall"},{"title":"Updating","href":"/admin/install/updating"},{"title":"How WednesdayAI updates reach you","href":"/admin/install/trusted-npm-publishing-user"}]},{"group":"Platforms","pages":[{"title":"Android App","href":"/admin/platforms/android"},{"title":"DigitalOcean","href":"/admin/platforms/digitalocean"},{"title":"iOS App","href":"/admin/platforms/ios"},{"title":"Linux App","href":"/admin/platforms/linux"},{"title":"macOS App","href":"/admin/platforms/macos"},{"title":"Oracle Cloud","href":"/admin/platforms/oracle"},{"title":"Raspberry Pi","href":"/admin/platforms/raspberry-pi"},{"title":"Windows (WSL2)","href":"/admin/platforms/windows"}]},{"group":"macOS app","pages":[{"title":"Gateway on macOS","href":"/admin/platforms/mac/bundled-gateway"},{"title":"Canvas","href":"/admin/platforms/mac/canvas"},{"title":"macOS Dev Setup","href":"/admin/platforms/mac/dev-setup"},{"title":"Health Checks","href":"/admin/platforms/mac/health"},{"title":"Menu Bar","href":"/admin/platforms/mac/menu-bar"},{"title":"Peekaboo Bridge","href":"/admin/platforms/mac/peekaboo"},{"title":"macOS Release","href":"/admin/platforms/mac/release"},{"title":"macOS Signing","href":"/admin/platforms/mac/signing"},{"title":"Skills","href":"/admin/platforms/mac/skills"},{"title":"Voice Overlay","href":"/admin/platforms/mac/voice-overlay"},{"title":"Voice Wake","href":"/admin/platforms/mac/voicewake"},{"title":"WebChat","href":"/admin/platforms/mac/webchat"}]},{"group":"More providers","pages":[{"title":"Brave Search","href":"/admin/providers/brave-search"},{"title":"Perplexity Sonar","href":"/admin/providers/perplexity"},{"title":"Synthetic","href":"/admin/providers/synthetic"}]},{"group":"Security","pages":[{"title":null,"href":"/admin/security/CONTRIBUTING-THREAT-MODEL"},{"title":null,"href":"/admin/security/README"},{"title":null,"href":"/admin/security/THREAT-MODEL-ATLAS"},{"title":"Formal Verification (Security Models)","href":"/admin/security/formal-verification"}]},{"group":"Web UI","pages":[{"title":"Dashboard","href":"/admin/web/dashboard"},{"title":"Web client hosting","href":"/admin/web/user-client"},{"title":"Control UI v2","href":"/admin/web/control-ui-v2"}]},{"group":"Shohin","pages":[{"title":"Shohin administration","href":"/admin/shohin"}]}]},{"tab":"Users","icon":"user-round","pages":[{"title":"Users","href":"/users/what-is-wednesdayai"}]},{"tab":"Developers","icon":"code","pages":[{"title":"Developers","href":"/developers/overview"}]},{"tab":"Reference","icon":"book-open","pages":[{"title":"Reference","href":"/reference/config"}]}]},{"version":"next","tag":"Unreleased","pages":[{"title":"next","href":"/next/admin/gateway/authentication"}]}]},"basePath":"","title":"Authentication - 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"]}