Search the documentation
14 pages for setup-token.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Set up Claude Code for your organization
Claude Code CLI · in the page
admin-setup
…restriction applies across the VS Code extension, Agent SDK, `claude setup-token`, and `/install-github-app`, and the terminal's interactive login screen, reached by `/login` or first-run onboarding,…
Use Claude Code features in the SDK
Claude Code CLI · in the page
agent-sdk/claude-code-features
…Not loaded when `CLAUDE_CODE_OAUTH_TOKEN` holds a token from [`claude setup-token`](/docs/en/authentication#generate-a-long-lived-token), which can only make model requests. Passing `mcpServers: {}` d…
Authentication
Claude Code CLI · in the page
authentication
…ow, the [VS Code extension](/docs/en/vs-code), the Agent SDK, `claude setup-token`, `/install-github-app`, and [gateway](/docs/en/claude-apps-gateway) sign-in for organizations that route through a cl…
Claude Code changelog
Claude Code CLI · in the page
changelog
…ely (set `CLAUDE_CODE_GOAL_CHECKIN_MINUTES=0` to opt out) * `claude setup-token` now rejects unexpected extra arguments instead of silently ignoring them * Changed Esc in fullscreen mode to no lon…
Use Claude Code with Chrome
Claude Code CLI · in the page
chrome
…you authenticate with an API key or a long-lived token from [`claude setup-token`](/docs/en/authentication#generate-a-long-lived-token), Claude Code keeps Chrome integration off, even when you pass `…
CLI reference
Claude Code CLI · in the page
cli-reference
…laude self-hosted-runner setup` | | `claude setup-token` | Generate a long-lived OAuth token for CI and scripts. Prints the token to the terminal without saving it…
Development containers
Claude Code CLI · in the page
devcontainer
…tore `ANTHROPIC_API_KEY` or a `CLAUDE_CODE_OAUTH_TOKEN` from [`claude setup-token`](/docs/en/authentication#generate-a-long-lived-token) as a [Codespaces secret](https://docs.github.com/en/codespaces/…
Environment variables
Claude Code CLI · in the page
env-vars
…ecedence over keychain-stored credentials. Generate one with [`claude setup-token`](/docs/en/authentication#generate-a-long-lived-token). Unless you run [`/login`](/docs/en/authentication#authenticati…
Error reference
Claude Code CLI · in the page
errors
…ading `CLAUDE_CODE_OAUTH_TOKEN`. Generate a fresh token with [`claude setup-token`](/docs/en/authentication#generate-a-long-lived-token) and restart with it, or unset the variable and run `/login`. Be…
Claude Code GitHub Actions
Claude Code CLI · in the page
github-actions
…Pro, Max, Team, and Enterprise plans. Generate one by running `claude setup-token` locally. See [Generate a long-lived token](/docs/en/authentication#generate-a-long-lived-token) In workflow file…
Connect Claude Code to tools via MCP
Claude Code CLI · in the page
mcp
…he credential * `CLAUDE_CODE_OAUTH_TOKEN` holds a token from [`claude setup-token`](/docs/en/authentication#generate-a-long-lived-token), which can only make model requests If `/mcp` doesn't list a c…
Continue local sessions from any device with Remote Control
Claude Code CLI · in the page
remote-control
…gin token" You're authenticated with a long-lived token from `claude setup-token` or the `CLAUDE_CODE_OAUTH_TOKEN` environment variable. These tokens can only make model requests, so they can't estab…
Test self-hosted environments end to end
Claude Code CLI · in the page
self-hosted-environments-testing
…r:sessions:claude_code`, is capped server-side at 30 days, so `claude setup-token`, which mints a one-year inference-only token, doesn't cover it. The [environment secret](/docs/en/self-hosted-environ…
Claude Code settings
Claude Code CLI · in the page
settings
…ing the [VS Code extension](/docs/en/vs-code), the Agent SDK, `claude setup-token`, and `/install-github-app`; before v2.1.212, only terminal logins applied it. See [Restrict login to your organizatio…