OpenClaw (install and connect to Flash API)
Think of OpenClaw as a self-hostable agent gateway. You run a background service on your machine, then use and manage it from a TUI or a web panel.
What you need
- Node.js 24.16+ (or 26.1+, required by recent OpenClaw releases). See Node.js first.
- A Flash API key
- An API key in the right pricing group
Start here: one-line setup
The shortest path:
- Install OpenClaw using its official flow
- Choose
Skip for nowwhen it asks about models - Once it's installed, run the Flash API setup script
Full guide:
Setup command:
bash
curl -fsSL https://sh.flashapi.top/openclaw.sh | bashpowershell
irm https://sh.flashapi.top/openclaw.ps1 | iexUsing Tencent Cloud's visual panel?
If you're on Tencent Cloud's visual JSON config screen, skip the terminal guide and paste a template instead:
Where the config lives
OpenClaw reads ~/.openclaw/openclaw.json (%USERPROFILE%\.openclaw\openclaw.json on Windows). Claude and GPT are configured differently:
- Claude:
api: "anthropic-messages",baseUrlwithout/v1(https://ai.flashapi.top) - GPT:
api: "openai-responses",baseUrlwith/v1(https://ai.flashapi.top/v1)
The setup script writes both providers, flashapi-claude and flashapi-gpt. See the full example in OpenClaw one-line setup · Files the script writes.