Skip to content

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.

Open a terminal first:

  • macOS / Linux: open Terminal (WSL and Git Bash use this set of commands too)
  • Windows: press Win + X and open Windows PowerShell or Terminal. You don't need Git Bash.
ToolmacOS / LinuxWindows PowerShellNotes
Claude Codecurl -fsSL https://sh.flashapi.top/claudecode.sh | bashirm https://sh.flashapi.top/claudecode.ps1 | iexCLI and Claude Desktop
Codexcurl -fsSL https://sh.flashapi.top/codex.sh | bashirm https://sh.flashapi.top/codex.ps1 | iexCLI and the Codex desktop app
OpenClawcurl -fsSL https://sh.flashapi.top/openclaw.sh | bashirm https://sh.flashapi.top/openclaw.ps1 | iexClaude + GPT in one go
Hermes Agentcurl -fsSL https://sh.flashapi.top/hermes.sh | bashirm https://sh.flashapi.top/hermes.ps1 | iexClaude + GPT in one go
OpenCodecurl -fsSL https://sh.flashapi.top/opencode.sh | bashirm https://sh.flashapi.top/opencode.ps1 | iexClaude + GPT in one go
Picurl -fsSL https://sh.flashapi.top/pi.sh | bashirm https://sh.flashapi.top/pi.ps1 | iexClaude + 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) or https://cdn.flashapi.top (optional global CDN endpoint)
  • Default models: claude-opus-5-5 for Claude, gpt-6.1-sol for 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 pick 2 (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 ​

  1. Install Node.js first (most tools need it): Install Node.js
  2. Open the page for your tool and pick your OS (Windows / macOS / Linux)
  3. Set the Base URL and API key as described, then test with the verification command

One base URL for GPT, Claude and Gemini