Need an API key first?
Create a token in the LumeCoder Console, then come back to finish the setup below.
Claude Code Installation Guide
Choose your operating system and follow the steps to install Claude Code CLI
System Requirements
- •Windows 10 or Windows 11
- •Node.js 18+
- •Network connection
Installation Steps
Install Node.js
Visit nodejs.org, download and install the LTS version.
After installation, open CMD and verify:
node --version
Install Claude Code
Open Command Prompt (CMD) or PowerShell and run:
npm install -g @anthropic-ai/claude-code
Verify Installation
claude --version
Configure API Key
4.1 Get Auth Token
Visit LumeCoder Console and perform the following:
- Click "Add Token"
- Token name: Enter any name
- Expiration: Leave empty (recommended)
4.2 Configure Environment Variables
Important: Replace ANTHROPIC_AUTH_TOKEN below with your API key from LumeCoder Console!
Temporary Environment Variables (Recommended)
RecommendedValid for current session only. Choose based on your terminal:
CMD (Command Prompt):
set ANTHROPIC_AUTH_TOKEN=sk-xxx set ANTHROPIC_BASE_URL=https://api.lumecoder.com claude
PowerShell:
$env:ANTHROPIC_AUTH_TOKEN="sk-xxx" $env:ANTHROPIC_BASE_URL="https://api.lumecoder.com" claude
Note: Quick start, no restart needed. Variables are cleared when terminal closes.
settings.json Configuration (Permanent)
Config path: %USERPROFILE%\.claude\settings.json
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "sk-xxx",
"ANTHROPIC_BASE_URL": "https://api.lumecoder.com"
},
"permissions": {
"allow": [],
"deny": []
}
}Note: Config file is more secure. Restart Claude Code for changes to take effect.
Start Claude Code
If using settings.json configuration, navigate to your project directory first:
cd your-project-directory
Then, run the following command to start:
claude
First-time setup:
- Select your preferred theme (press Enter)
- Confirm security notice (press Enter)
- Use default Terminal configuration (press Enter)
- Trust the working directory (press Enter)
- Start coding!
Troubleshooting
PowerShell Execution Policy Error (Windows)
This can happen on Windows with any of the CLIs above (Claude Code, Codex, Gemini) when running a globally-installed npm package. If you see this error:
cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies...Method 1 (Recommended): Remove restrictions for current user only
Run in PowerShell (Administrator):
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Method 2: Temporary npx startup
If you don't want to modify global policy, use npx directly (replace the package with the CLI you are installing):
npx @anthropic-ai/claude-code # or: npx @openai/codex # or: npx @google/gemini-cli
This avoids changing the global execution policy, but requires npx every time.
