Install Claude Code and sign in with your setup token in one command.
1 Install
$ curl -fsSL https://claudesetup.pages.dev/install.sh | bash> irm https://claudesetup.pages.dev/install.ps1 | iex> curl -fsSL https://claudesetup.pages.dev/install.cmd -o install.cmd && install.cmd && del install.cmd2 What it asks
Then run claude (default folder) or claude-<name> (new profile). It opens straight in.
3 Get a setup token
$ claude setup-tokenRun it while signed into the Claude account you want, copy the sk-ant-… it prints, and paste it when the installer asks.
4 Use a new profile in VS Code
Only if you chose a new profile. Point the Claude Code extension (VS Code, Cursor, Windsurf) at that folder with CLAUDE_CONFIG_DIR, then reload the editor.
A VS Code settings.json
// keep the line for your OS · reload window after saving
{
"terminal.integrated.env.osx": { "CLAUDE_CONFIG_DIR": "/Users/you/.claude-work" },
"terminal.integrated.env.linux": { "CLAUDE_CONFIG_DIR": "/home/you/.claude-work" },
"terminal.integrated.env.windows": { "CLAUDE_CONFIG_DIR": "C:\\Users\\you\\.claude-work" }
}Put it in your project's .vscode/settings.json (per project) or user settings, then run Developer: Reload Window.
B Environment variable
# add this line, then quit and reopen your editor
export CLAUDE_CONFIG_DIR="$HOME/.claude-work"# sets it for your user, then fully restart VS Code
setx CLAUDE_CONFIG_DIR "$env:USERPROFILE\.claude-work"