Claude Code
One-command install
Paste your API key, copy the command, run — Claude Code ready on macOS, Linux, Windows
Paste your API key below, pick your operating system, then copy the command and run it in a terminal:
The key is inserted into the command right in your browser — it is never sent anywhere.
curl -fsSL https://docs.vnaipro.app/install/claude.sh | bash -s -- --key YOUR_API_KEYPaste your key above and the command fills it in automatically.
What does the script do?
- Checks for Node.js (guides you through installing it if missing, then stops)
- Installs Claude Code:
npm install -g @anthropic-ai/claude-code - Backs up any existing settings (as
settings.json.bak.<timestamp>) - Writes
~/.claude/settings.json— key + endpoint + the full Claude model lineup - Verifies with
claude --version
Safe to re-run
Run the command again any time (for example after rotating your key) — the old settings are always backed up before the new ones are written.
After installing
Open a new terminal, go to your project directory, and run:
claudeIf something goes wrong, see Troubleshooting.