One command setup

Claude Code setup

Install Claude Code and sign in with your setup token in one command.

1 Install

bash
$ curl -fsSL https://claudesetup.pages.dev/install.sh | bash
PowerShell
> irm https://claudesetup.pages.dev/install.ps1 | iex
Command Prompt
> curl -fsSL https://claudesetup.pages.dev/install.cmd -o install.cmd && install.cmd && del install.cmd

2 What it asks

  1. Which folder? The default ~/.claude, or a new separate profile so you can keep more than one account side by side.
  2. Your setup token. Paste the sk-ant-… from claude setup-token.

Then run claude (default folder) or claude-<name> (new profile). It opens straight in.

3 Get a setup token

terminal
$ claude setup-token

Run 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

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

~/.zprofile · ~/.bash_profile
# add this line, then quit and reopen your editor
export CLAUDE_CONFIG_DIR="$HOME/.claude-work"
PowerShell
# sets it for your user, then fully restart VS Code
setx CLAUDE_CONFIG_DIR "$env:USERPROFILE\.claude-work"
Replace .claude-work with your profile name. If you open the editor from its icon, set it at the user level and quit and reopen it completely so the extension reads it.