Claude Code: install and connect to Flash API
Claude Code is Anthropic's official terminal coding agent. Use it in a local repo to read, edit and refactor code, run commands and review changes.
What you need
- Node.js installed (22+ recommended): see Node.js
- A Flash API key
- The matching pricing group set up, such as ClaudeCode Dedicated (
ClaudeCode专用版)
Claude Code uses the Anthropic-compatible API, so the base URL usually goes without /v1.
Start here: one-line setup
If you'd rather skip the manual install and hand-written environment variables, read this first:
The script:
- Checks that
npm/ Node.js are available - Installs Claude Code
- Lets you choose
ai.flashapi.toporcdn.flashapi.top - Validates your API key
- Writes the environment variables and Claude config for you
Setup command:
bash
curl -fsSL https://sh.flashapi.top/claudecode.sh | bashpowershell
irm https://sh.flashapi.top/claudecode.ps1 | iexManual install guides
Prefer to set it up step by step for your OS? Read these:
Last step: verify the connection
Once installed and configured, run this in your project directory:
bash
claude --version
claude doctorThen start it:
bash
claude