Tool setup from scratch
The fastest route is the one-line setup script: a single command installs the tool and configures it. Prefer doing it by hand? Each tool also has per-OS manual install pages.
One-line setup commands (recommended)
Open a terminal first:
- macOS / Linux: open Terminal (WSL and Git Bash use this set of commands too)
- Windows: press
Win + Xand open Windows PowerShell or Terminal. You don't need Git Bash.
| Tool | macOS / Linux | Windows PowerShell | Notes |
|---|---|---|---|
| Claude Code | curl -fsSL https://sh.flashapi.top/claudecode.sh | bash | irm https://sh.flashapi.top/claudecode.ps1 | iex | CLI and Claude Desktop |
| Codex | curl -fsSL https://sh.flashapi.top/codex.sh | bash | irm https://sh.flashapi.top/codex.ps1 | iex | CLI and the Codex desktop app |
| OpenClaw | curl -fsSL https://sh.flashapi.top/openclaw.sh | bash | irm https://sh.flashapi.top/openclaw.ps1 | iex | Claude + GPT in one go |
| Hermes Agent | curl -fsSL https://sh.flashapi.top/hermes.sh | bash | irm https://sh.flashapi.top/hermes.ps1 | iex | Claude + GPT in one go |
| OpenCode | curl -fsSL https://sh.flashapi.top/opencode.sh | bash | irm https://sh.flashapi.top/opencode.ps1 | iex | Claude + GPT in one go |
| Pi | curl -fsSL https://sh.flashapi.top/pi.sh | bash | irm https://sh.flashapi.top/pi.ps1 | iex | Claude + GPT in one go |
Don't mix the two command sets
curl ... | bash only runs in macOS / Linux / WSL / Git Bash. irm ... | iex only runs in PowerShell. Paste the bash command into PowerShell and it fails immediately.
Every script has the same menu: 1 install, 2 configure Flash API, 3 install everything (first time? pick 3). The scripts only touch the settings they manage. Everything else in your config stays put, and the original files are backed up before any change.
TIP
The script's prompts are currently in Chinese. Pick 3 for a full install, then follow the prompts.
Connection details
- Provider name: Flash API (the scripts write it as
闪电API) - Base URL:
https://ai.flashapi.top(direct, lowest latency across Asia) orhttps://cdn.flashapi.top(optional global CDN endpoint) - Default models:
claude-opus-5-5for Claude,gpt-6.1-solfor GPT, with reasoning effort set to medium
Many tools ask for an API Base URL. There are two flavors:
- OpenAI / Codex-compatible endpoints need
/v1:https://ai.flashapi.top/v1 - Anthropic / Claude-compatible endpoints usually don't:
https://ai.flashapi.top(OpenCode is the exception and needs/v1)
With the one-line scripts you don't need to remember any of this. They get it right for you.
API keys and pricing groups
- On flashapi.top, Claude and GPT live in different pricing groups, so you create a separate key for each. The OpenClaw, Hermes, OpenCode and Pi scripts ask for a Claude key and then a GPT key. Using just one of them is fine.
- If a third-party tool fails with
Requests from the ... framework are not supported, the key's group only allows official Claude clients, such as ClaudeCode Dedicated (ClaudeCode专用版). Create a key in a group that allows any client, such as ClaudeCode External (ClaudeCode外接版) or Claude-Mixed (Kiro) (Claude-Mixed), then rerun the script and pick2(configure).
Which tool should you pick
- Claude Code: edits code, runs commands and reviews changes right in your terminal. It can also configure Claude Desktop.
- Codex: OpenAI's official terminal coding agent, for people who live in the OpenAI workflow.
- OpenClaw: leans toward gateways and dashboards, for running agents as a service.
- Hermes Agent: a terminal agent that speaks both Claude and GPT, configured in YAML.
- OpenCode: an open-source TUI with multiple providers and plenty of config freedom.
- Pi: a lightweight terminal coding agent that switches between Claude and GPT on the fly.
- CC-Switch: a GUI that manages config for several tools, for people who'd rather not hand-edit config files.
Manual setup, in order
- Install Node.js first (most tools need it): Install Node.js
- Open the page for your tool and pick your OS (Windows / macOS / Linux)
- Set the Base URL and API key as described, then test with the verification command