# Flash API Docs (闪电API 文档) > Documentation for Flash API, an OpenAI-compatible AI API gateway for Claude, GPT, Gemini, Grok and DeepSeek. Highlights: one-command setup for Claude Code, Codex, OpenClaw, Hermes Agent, OpenCode and Pi (`curl -fsSL https://sh.flashapi.top/.sh | bash`, Windows: `irm https://sh.flashapi.top/.ps1 | iex`), and GPT Image 2.6 series image generation at $0.014 per image. > 闪电API 文档:Claude Code、Codex、OpenClaw、Hermes Agent、OpenCode、Pi 一键配置;GPT Image 2.6 系列生图 ¥0.10/张;OpenAI / Anthropic 兼容接口国内直连。 Each page is also available as raw Markdown by replacing the URL with the `.md` path listed below. Full text: [English](https://docs.flashapi.top/llms-full.txt) · [中文](https://docs.flashapi.top/llms-full-zh.txt). Live prices: https://flashapi.top/llms.txt · Live pool & IQ test: https://status.flashapi.top/llms.txt ## English - [Anthropic Messages API Compatible Endpoint for Claude](https://docs.flashapi.top/en/api/anthropic.md): Flash API's Anthropic Messages API compatible endpoint for Claude. Point the official Anthropic SDK at a new base URL. Streaming, image input, errors, examples. - [Gemini Image Generation API — Pricing & Usage](https://docs.flashapi.top/en/api/gemini-image.md): Gemini image generation API on the official Gemini channel. Call gemini-3.1-flash-image or gemini-3-pro-image in Gemini native or OpenAI chat format, per token. - [GPT Image 2 API for $0.011 per Image — Text-to-Image & Edits](https://docs.flashapi.top/en/api/gpt-image-2.md): GPT Image 2 API at $0.011 per image, flat per call, about 72% below the $0.04 list price. OpenAI Images API compatible with text-to-image, edits and 4K output. - [Flash API Reference — OpenAI, Claude, Image & Video APIs](https://docs.flashapi.top/en/api/index.md): Flash API reference for OpenAI-compatible and Anthropic Messages endpoints, GPT Image at $0.011 per image, Gemini image, and Veo 3.1 and Seedance video. - [OpenAI-Compatible API (Chat Completions) for GPT & Claude](https://docs.flashapi.top/en/api/openai.md): Flash API's OpenAI-compatible Chat Completions endpoint. Call GPT, Claude and Gemini with the OpenAI SDK by swapping the base URL. Streaming, examples, errors. - [Seedance 2.5 API — Video Generation Pricing & Usage](https://docs.flashapi.top/en/api/seedance-video.md): Seedance 2.5 video API at $0.057 per second. Text-to-video plus image, video and audio references through async /v1/videos tasks, up to 30 seconds at 720p. - [Veo 3.1 API — Text-to-Video & Image-to-Video Pricing](https://docs.flashapi.top/en/api/veo-video.md): Veo 3.1 video generation API from $0.014 per second. Call veo-3.1, veo-3.1-fast and veo-3.1-i2v via async /v1/videos tasks for text-to-video and image-to-video. - [Sign Up and Create an API Key | Flash API Quick Start](https://docs.flashapi.top/en/guide/account.md): Create a free Flash API account, pick a pricing group and generate your API key in five minutes. Then plug it into Claude Code, Codex, OpenCode and more. - [What Is Flash API? Claude, GPT & Gemini API Gateway](https://docs.flashapi.top/en/guide/index.md): Flash API is an AI API gateway that gives you Claude, GPT, Gemini and Grok through one endpoint at a fraction of the official list price. See how it works. - [Flash API Pricing Groups and Billing, Explained in USD](https://docs.flashapi.top/en/guide/pricing.md): How Flash API bills Claude, GPT and Gemini in USD. Each pricing group pays a fixed share of the official list price, often 70–97% off. Worked example included. - [Top Up Your Flash API Balance and Refund Policy](https://docs.flashapi.top/en/guide/recharge.md): How to top up your Flash API balance via Telegram, redeem your code in the dashboard, how much to start with, and how refunds work. Your balance never expires. - [Flash API FAQ: API Keys, Groups, Top-ups and Setup](https://docs.flashapi.top/en/help/faq.md): Answers to what new Flash API users ask most: creating an API key, fixing request errors, sharing keys across tools, balance, refunds and which Base URL to use. - [Flash API Help Center: FAQ, Troubleshooting & Support](https://docs.flashapi.top/en/help/index.md): Find answers fast in the Flash API help center: API keys, top-ups, refunds, connection errors, tool setup fixes, and how to reach us on Telegram. - [Contact Flash API Support on Telegram (@CryptoDoge2025)](https://docs.flashapi.top/en/help/support.md): Get Flash API help on Telegram: setup and troubleshooting, top-ups and refunds, enterprise volume pricing, plus tips for asking questions that get fast answers. - [Flash API Terms of Service](https://docs.flashapi.top/en/help/terms.md): The Flash API Terms of Service: accounts, acceptable use, prepaid billing and refunds, intellectual property, privacy, liability limits, and dispute resolution. - [Flash API Troubleshooting: Claude Code, Codex, OpenCode](https://docs.flashapi.top/en/help/troubleshooting.md): Fix Flash API connection failures, timeouts, login loops and config errors in Claude Code, Codex, OpenCode and OpenClaw with a step-by-step checklist. - [Flash API Usage Policy: Acceptable Use and Data Privacy](https://docs.flashapi.top/en/help/usage-policy.md): The Flash API usage policy: permitted and prohibited uses, rate limits, account security, data privacy and logging, enforcement, and dispute resolution. - [Flash API Docs · One-Command Claude Code & Codex Setup · GPT Image API](https://docs.flashapi.top/en/index.md): Flash API docs. Set up Claude Code, Codex, OpenClaw, Hermes Agent, OpenCode and Pi with one command; call the GPT Image 2.6 series for $0.014 per image; OpenAI and Anthropic compatible endpoints. - [CC-Switch Setup: Claude Code, Codex, OpenCode on One API](https://docs.flashapi.top/en/tools/cc-switch/index.md): Use CC-Switch to point Claude Code, Codex and OpenCode at Flash API from one desktop app. Exact base URL and API key values for each tool. - [CC-Switch on Linux: Install and Connect Flash API](https://docs.flashapi.top/en/tools/cc-switch/linux.md): Install CC-Switch on Linux from a .deb or AppImage, enter your Flash API key and base URL, and configure Claude Code, Codex and OpenCode from one desktop app. - [CC-Switch on macOS: Install and Connect Flash API](https://docs.flashapi.top/en/tools/cc-switch/macos.md): Install CC-Switch on macOS with Homebrew, add a provider with your Flash API key and base URL, and configure Claude Code, Codex and OpenCode at once. - [CC-Switch on Windows: Install and Connect Flash API](https://docs.flashapi.top/en/tools/cc-switch/windows.md): Install CC-Switch on Windows from the .msi package, add a provider with your Flash API key and base URL, and configure Claude Code, Codex and OpenCode. - [Claude Code with a Custom API Base URL: Setup Guide](https://docs.flashapi.top/en/tools/claude-code/index.md): Point Claude Code at a custom API base URL: one command installs it and writes ANTHROPIC_BASE_URL and your key, or edit settings.json by hand per OS. - [Claude Code on Linux: Custom API Base URL Setup](https://docs.flashapi.top/en/tools/claude-code/linux.md): Install Claude Code on Linux with npm and use a custom API: write ~/.claude/settings.json with ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN, then verify. - [Claude Code on macOS: Custom API Base URL Setup](https://docs.flashapi.top/en/tools/claude-code/macos.md): Install Claude Code on macOS with npm and use a custom API: write ~/.claude/settings.json with ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN, then verify. - [Claude Code One-Line Setup with a Custom API (Mac/Linux/Win)](https://docs.flashapi.top/en/tools/claude-code/one-click.md): Claude Code one-line install with a custom API base URL: curl -fsSL https://sh.flashapi.top/claudecode.sh | bash sets up the CLI and Claude Desktop. - [Claude Code on Windows: Custom API Base URL Setup](https://docs.flashapi.top/en/tools/claude-code/windows.md): Install Claude Code on Windows with npm and use a custom API: write settings.json from PowerShell with ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN. - [Download the ChatGPT Desktop App for Windows (Codex)](https://docs.flashapi.top/en/tools/codex/chatgpt-desktop.md): The Codex desktop app ships inside ChatGPT for Windows. Install it from the Microsoft Store or as an x64 MSI, then connect it to Flash API in one command. - [Codex with a Custom API Provider: Setup Guide](https://docs.flashapi.top/en/tools/codex/index.md): Use Codex with a custom provider: one command installs Codex CLI and writes base_url, API key and gpt-6.1-sol, or edit config.toml by hand per OS. - [Codex CLI on Linux: Custom API base_url Setup](https://docs.flashapi.top/en/tools/codex/linux.md): Install Codex CLI on Linux with npm and connect a third-party API: write ~/.codex/config.toml with a custom provider and base_url, plus auth.json. - [Codex CLI on macOS: Custom API base_url Setup](https://docs.flashapi.top/en/tools/codex/macos.md): Install Codex CLI on macOS via npm or Homebrew and connect a third-party API: write ~/.codex/config.toml with a custom provider and base_url. - [Codex One-Line Setup: Custom API Provider (CLI + Desktop)](https://docs.flashapi.top/en/tools/codex/one-click.md): Codex CLI third-party API setup in one command: curl -fsSL https://sh.flashapi.top/codex.sh | bash writes base_url, key and gpt-6.1-sol for CLI and desktop. - [Codex CLI on Windows: Custom API base_url Setup](https://docs.flashapi.top/en/tools/codex/windows.md): Install Codex CLI on Windows and connect a third-party API: write config.toml with a custom provider and base_url plus auth.json in PowerShell, or use WSL2. - [Hermes Agent Install and API Setup: Claude + GPT](https://docs.flashapi.top/en/tools/hermes-agent/index.md): Install Hermes Agent and connect Claude and GPT through Flash API. One-line setup writes ~/.hermes/config.yaml for you, plus manual guides for every OS. - [Hermes Agent on Linux: Install and Configure Claude + GPT](https://docs.flashapi.top/en/tools/hermes-agent/linux.md): Install Hermes Agent on Linux with the official installer (no pip or Python needed) and edit config.yaml to use Claude and GPT through Flash API. - [Hermes Agent on macOS: Install and Configure Claude + GPT](https://docs.flashapi.top/en/tools/hermes-agent/macos.md): Install Hermes Agent on macOS with the official installer (no pip or Python needed) and edit config.yaml to use Claude and GPT through Flash API. - [Hermes Agent One-Line Install with Claude and GPT](https://docs.flashapi.top/en/tools/hermes-agent/one-click.md): Install Hermes Agent with Claude and GPT in one command: curl -fsSL https://sh.flashapi.top/hermes.sh | bash. Writes config.yaml on macOS, Linux, Windows. - [Hermes Agent on Windows: Install and Configure Claude + GPT](https://docs.flashapi.top/en/tools/hermes-agent/windows.md): Install Hermes Agent on Windows with the official PowerShell installer (no pip or Python needed) and edit config.yaml to use Claude and GPT via Flash API. - [AI Coding Tools One-Line Setup: Claude Code, Codex & More](https://docs.flashapi.top/en/tools/index.md): One command installs and configures Claude Code, Codex, OpenClaw, Hermes Agent, OpenCode or Pi with Flash API. curl on macOS/Linux, irm on Windows. - [Install Node.js for Claude Code, Codex and AI Coding Tools](https://docs.flashapi.top/en/tools/nodejs/index.md): Claude Code, Codex and most AI coding agents need Node.js. Check the minimum version (18+, 24 LTS recommended), see if it's installed, and pick your OS. - [Install Node.js on Linux (Ubuntu, Debian, Fedora, Arch)](https://docs.flashapi.top/en/tools/nodejs/linux.md): Install Node.js on Linux: NodeSource for Ubuntu/Debian, dnf for Fedora/RHEL, pacman for Arch, plus fixes for npm permission errors and slow downloads. - [Install Node.js on macOS (Homebrew or PKG)](https://docs.flashapi.top/en/tools/nodejs/macos.md): Install Node.js on macOS with Homebrew (recommended) or the official LTS PKG installer, with verification steps and fixes for npm permission errors. - [Install Node.js on Windows (winget, MSI, Scoop)](https://docs.flashapi.top/en/tools/nodejs/windows.md): Install Node.js LTS on Windows three ways: one winget command, the official MSI installer, or Scoop/Chocolatey. Includes verification and PATH fixes. - [OpenClaw Setup with a Custom API: Claude + GPT](https://docs.flashapi.top/en/tools/openclaw/index.md): Connect OpenClaw to Claude and GPT through Flash API: one-line setup, config file reference, a Tencent Cloud JSON template and manual guides for every OS. - [OpenClaw on Linux / WSL2: Manual Setup with Custom API](https://docs.flashapi.top/en/tools/openclaw/linux.md): Install OpenClaw on Linux or WSL2, onboard a local gateway and write openclaw.json to use GPT, Claude and Gemini through Flash API. Includes troubleshooting. - [OpenClaw on macOS: Manual Setup with Custom API](https://docs.flashapi.top/en/tools/openclaw/macos.md): Install OpenClaw on macOS, onboard a local gateway and write openclaw.json to use GPT, Claude and Gemini through Flash API. Includes model switching and fixes. - [OpenClaw One-Line Setup: Claude + GPT via One API](https://docs.flashapi.top/en/tools/openclaw/one-click.md): Set up OpenClaw with a custom API in one command: curl -fsSL https://sh.flashapi.top/openclaw.sh | bash. Adds Claude and GPT on macOS, Linux and Windows. - [OpenClaw JSON Config Templates for Tencent Cloud](https://docs.flashapi.top/en/tools/openclaw/tencent-cloud-json.md): Copy-paste JSON templates for OpenClaw in Tencent Cloud's visual panel. Connect Claude or GPT through Flash API by adding just your API key. - [OpenClaw on Windows: Manual Setup with Custom API](https://docs.flashapi.top/en/tools/openclaw/windows.md): Install OpenClaw on Windows with PowerShell, onboard a local gateway and write openclaw.json to use GPT, Claude and Gemini via Flash API. Includes fixes. - [OpenCode Custom Provider Config: Claude + GPT](https://docs.flashapi.top/en/tools/opencode/index.md): Set up OpenCode with a custom provider for Claude and GPT via Flash API. One-line setup writes opencode.json for you, plus manual guides for every OS. - [OpenCode on Linux / WSL2: Custom Provider for Claude + GPT](https://docs.flashapi.top/en/tools/opencode/linux.md): Install OpenCode on Linux or WSL2 with npm, add the AI SDK packages and write opencode.json with a custom provider for Claude and GPT via Flash API. - [OpenCode on macOS: Custom Provider for Claude + GPT](https://docs.flashapi.top/en/tools/opencode/macos.md): Install OpenCode on macOS with npm, add the AI SDK packages and write opencode.json with a custom provider for Claude and GPT via Flash API. - [OpenCode One-Line Setup: Claude + GPT Custom Provider](https://docs.flashapi.top/en/tools/opencode/one-click.md): OpenCode custom provider config in one command: curl -fsSL https://sh.flashapi.top/opencode.sh | bash. Adds Claude and GPT to opencode.json on any OS. - [OpenCode on Windows: Custom Provider for Claude + GPT](https://docs.flashapi.top/en/tools/opencode/windows.md): Install OpenCode on Windows with npm, add the AI SDK packages and write opencode.json with a custom provider for Claude and GPT via Flash API. - [Pi Coding Agent Install and Setup: Claude + GPT](https://docs.flashapi.top/en/tools/pi/index.md): Install the Pi coding agent and connect Claude and GPT through Flash API. One-line setup writes models.json and settings.json, or do it by hand. - [Pi Coding Agent Setup: Claude + GPT in One Command](https://docs.flashapi.top/en/tools/pi/one-click.md): Pi coding agent setup in one command: curl -fsSL https://sh.flashapi.top/pi.sh | bash. Adds Claude and GPT to models.json on macOS, Linux and Windows. ## 中文 - [Claude API 中转:Anthropic 格式 Messages API 接口文档](https://docs.flashapi.top/api/anthropic.md): 闪电 API 提供兼容 Anthropic 格式的 Claude API 中转,官方 SDK 改 base_url 即可接入,支持流式输出、图片输入与多轮对话,附 Python、Node.js 示例,国内直连。 - [Gemini 生图 API 价格与调用:原生格式 / OpenAI 格式](https://docs.flashapi.top/api/gemini-image.md): Gemini 生图 API 官方渠道接入,支持 gemini-3.1-flash-image、gemini-3-pro-image 等模型,Gemini 原生格式与 OpenAI 聊天格式均可调用,按 Token 计费,附价格表与示例。 - [GPT Image 2 API 低价接入:¥0.08/张 · 文生图与图片编辑](https://docs.flashapi.top/api/gpt-image-2.md): GPT Image 2 API 价格低至 ¥0.08/张,每次调用固定计费。兼容 OpenAI Images API,支持文生图、图片编辑与 mask 局部重绘,最高 4K 输出,国内直连的便宜 GPT 生图 API 中转。 - [Flash API 接口文档:OpenAI 兼容 API、Claude 中转、生图与视频](https://docs.flashapi.top/api/index.md): 闪电 API 接口文档总览:OpenAI 兼容格式与 Anthropic 格式文本接口,GPT Image ¥0.08/张、Gemini 生图,Veo 3.1 与 Seedance 视频生成 API,国内直连中转。 - [OpenAI 兼容 API 接口文档:Chat Completions 调用 GPT/Claude/Gemini](https://docs.flashapi.top/api/openai.md): 闪电 API 的 OpenAI 兼容 API:只改 Base URL 即可用 OpenAI SDK 调用 GPT、Claude、Gemini 模型,支持流式输出,附 Python、Node.js、cURL 示例,国内直连中转。 - [Seedance API 价格与调用:Seedance 2.5 视频生成 ¥0.40/秒](https://docs.flashapi.top/api/seedance-video.md): Seedance 2.5 API 价格 ¥0.40/秒,支持文生视频及图片、视频、音频参考素材生视频,最长 30 秒 720p,异步任务调用与轮询示例,国内直连中转。 - [Veo 3.1 API 价格与调用:文生视频 / 图生视频 ¥0.10 起每秒](https://docs.flashapi.top/api/veo-video.md): Veo 3.1 视频生成 API 中转,veo-3.1-fast 低至 ¥0.10/秒,支持文生视频与图生视频,异步任务创建与轮询完整示例,国内直连,按生成秒数计费。 - [闪电API 注册与创建 API Key 教程(新手必看)](https://docs.flashapi.top/guide/account.md): 闪电API 新手教程:免费注册账号、选择令牌分组、创建 API Key,5 分钟拿到 Key 并配置到 Claude Code、Codex、OpenCode 等工具,附 Base URL 填写说明。 - [闪电API 是什么?Claude/GPT/Gemini API 中转站](https://docs.flashapi.top/guide/index.md): 闪电API(Flash API)是聚合型 AI API 中转站,国内直连 Claude、GPT、Gemini、Grok,一套 Key 全模型通用,价格低至官方 1 折,稳定不降智,适合个人开发者与企业团队。 - [闪电API 分组倍率与计价说明|Claude/GPT API 中转价格](https://docs.flashapi.top/guide/pricing.md): 闪电API 计费规则详解:Token 计费公式、分组倍率与折数对比(ClaudeCode专用版、ClaudeCode外接版、Claude-Mixed、Codex-GPT、Gemini 等)、如何选分组更省钱,Claude/GPT API 中转低价不降智。 - [闪电API 充值与退款说明|中转站充值兑换码教程](https://docs.flashapi.top/guide/recharge.md): 闪电API 中转站充值教程:联系客服支付宝/微信充值,获取兑换码在钱包管理自助兑换;充值倍率、充值建议、发票开具与退款规则一页说明,余额长期有效。 - [闪电API 常见问题 FAQ|API Key、分组、充值、Base URL](https://docs.flashapi.top/help/faq.md): 闪电API 新手常见问题:API Key 在哪创建、请求报错怎么排查、不同工具能否共用 Key、余额是否过期、如何开票退款、npm 安装慢、Base URL 带不带 /v1。 - [闪电API 帮助中心|常见问题、故障排查与客服支持](https://docs.flashapi.top/help/index.md): 闪电API 帮助中心:账号注册、API Key、充值发票、退款、连接超时、Claude Code / Codex / OpenCode / OpenClaw 配置问题快速导航,找不到答案可加 QQ 群联系客服。 - [闪电API 客服与技术支持|QQ群、客服微信联系方式](https://docs.flashapi.top/help/support.md): 联系闪电API 客服:官方 QQ 群、客服 QQ 与微信,提供售前咨询、部署配置、问题排查、充值退款、发票开具与企业大额充值优惠,附高效提问技巧。 - [闪电API 服务条款|账户、计费、退款与免责声明](https://docs.flashapi.top/help/terms.md): 闪电API 服务条款:服务内容、账户注册与安全、合法使用要求、预付费计费与退款政策、发票服务、知识产权、隐私保护、免责声明与争议解决,使用前请仔细阅读。 - [闪电API 故障排除|Claude Code、Codex 连不上报错排查](https://docs.flashapi.top/help/troubleshooting.md): 闪电API 疑难杂症排查:Claude Code 一直弹登录、400 会话异常,Codex 配置不生效,OpenCode 找不到 SDK,OpenClaw provider 配置错误,按步骤快速定位。 - [闪电API 使用政策|允许与禁止用途、数据隐私](https://docs.flashapi.top/help/usage-policy.md): 闪电API 使用政策:允许与禁止的使用场景、速率限制与内容过滤、API Key 账户安全、数据隐私与日志记录(不存储代码内容)、违规处理与争议解决方式。 - [闪电API 文档 · Claude Code / Codex 一键配置 · GPT Image 生图 API](https://docs.flashapi.top/index.md): 闪电API(Flash API)官方文档:Claude Code、Codex、OpenClaw、Hermes Agent、OpenCode、Pi 一条命令完成中转配置;GPT Image 2.6 系列生图 ¥0.10/张;OpenAI / Anthropic 兼容接口,国内直连。 - [CC-Switch 配置教程:Claude Code / Codex / OpenCode 中转](https://docs.flashapi.top/tools/cc-switch/index.md): CC-Switch 多工具配置管理教程:用一个桌面应用把 Claude Code、Codex、OpenCode 统一接入闪电API 中转,附各工具 API Base URL 和 API Key 的填写方法,告别手改配置文件出错。 - [CC-Switch Linux 安装教程:接入闪电API 中转](https://docs.flashapi.top/tools/cc-switch/linux.md): CC-Switch Linux 安装教程:下载 .deb 或 AppImage 安装包,在 CC-Switch 中填写闪电API Key 和 Base URL,一次性为 Claude Code、Codex、OpenCode 配置中转 API,附各工具验证方法。 - [CC-Switch macOS 安装教程:接入闪电API 中转](https://docs.flashapi.top/tools/cc-switch/macos.md): CC-Switch macOS 安装教程:用 Homebrew 一条命令安装 cc-switch,新增 Provider 并填写闪电API Key 和 Base URL,一次性为 Claude Code、Codex、OpenCode 配置中转 API,附验证方法。 - [CC-Switch Windows 安装教程:接入闪电API 中转](https://docs.flashapi.top/tools/cc-switch/windows.md): CC-Switch Windows 安装教程:下载 .msi 安装包,在 CC-Switch 中新增 Provider 并填写闪电API Key 和 Base URL,一次性为 Claude Code、Codex、OpenCode 配置中转 API,附验证方法。 - [Claude Code 中转配置:安装并接入 Claude 中转 API(闪电API)](https://docs.flashapi.top/tools/claude-code/index.md): Claude Code 中转 API 配置入口:curl -fsSL https://sh.flashapi.top/claudecode.sh | bash 一键安装并写好 ANTHROPIC_BASE_URL 和 Key,国内直连;也可按系统手动配置 settings.json。 - [Claude Code 安装教程(Linux):settings.json 配置中转 API](https://docs.flashapi.top/tools/claude-code/linux.md): Linux 手动安装 Claude Code 并接入中转 API:npm 安装 @anthropic-ai/claude-code,写入 ~/.claude/settings.json 配置 ANTHROPIC_BASE_URL 和 ANTHROPIC_AUTH_TOKEN,附 npm 权限报错等常见问题排查。 - [Claude Code 安装教程(macOS):settings.json 配置中转 API](https://docs.flashapi.top/tools/claude-code/macos.md): macOS 手动安装 Claude Code 并接入中转 API:npm 安装 @anthropic-ai/claude-code,写入 ~/.claude/settings.json 配置 ANTHROPIC_BASE_URL 和 ANTHROPIC_AUTH_TOKEN,附 npm 权限报错等常见问题排查。 - [Claude Code 一键配置:一条命令安装并接入中转 API(Win/Mac/Linux)](https://docs.flashapi.top/tools/claude-code/one-click.md): Claude Code 一键配置:curl -fsSL https://sh.flashapi.top/claudecode.sh | bash(Windows 用 irm),自动安装 CLI 和 Claude 桌面版,写好中转 API 地址、Key 和 claude-opus-5-5,国内直连,配置自动备份。 - [Claude Code 安装教程(Windows):settings.json 配置中转 API](https://docs.flashapi.top/tools/claude-code/windows.md): Windows 手动安装 Claude Code 并接入中转 API:npm 安装 @anthropic-ai/claude-code,用 PowerShell 写入 settings.json 配置 ANTHROPIC_BASE_URL 和 ANTHROPIC_AUTH_TOKEN,附常见问题排查。 - [ChatGPT 桌面端下载(Windows):微软商店 / x64 MSI 安装 Codex 桌面版](https://docs.flashapi.top/tools/codex/chatgpt-desktop.md): Codex 桌面版包含在 ChatGPT Windows 客户端中:优先从微软商店安装;微软商店打不开时,用安装包解析站下载 x64 MSI 离线安装。装好后运行 Codex 一键配置脚本,即可让桌面版接入闪电API 中转 API。 - [Codex 自定义 API 配置:接入 GPT 中转(闪电API)](https://docs.flashapi.top/tools/codex/index.md): Codex 自定义 API / 第三方 API 配置入口:curl -fsSL https://sh.flashapi.top/codex.sh | bash 一键安装 Codex CLI 并写好 base_url、Key 和 gpt-6.1-sol,也可按系统手动配置 config.toml。 - [Codex 安装教程(Linux):config.toml 配置第三方 API base_url](https://docs.flashapi.top/tools/codex/linux.md): Linux 手动安装 Codex CLI 并接入第三方 API:npm 安装 @openai/codex,写入 ~/.codex/config.toml 自定义 provider 与 base_url、auth.json 填 Key,默认 gpt-6.1-sol,附常见问题排查。 - [Codex 安装教程(macOS):config.toml 配置自定义 API base_url](https://docs.flashapi.top/tools/codex/macos.md): macOS 手动安装 Codex CLI(npm 或 Homebrew)并接入第三方 API:写入 ~/.codex/config.toml 自定义 provider 与 base_url、auth.json 填 API Key,默认模型 gpt-6.1-sol,附找不到命令、API 调用失败等常见问题排查。 - [Codex 一键配置:一条命令接入 GPT 中转 API(CLI + 桌面版)](https://docs.flashapi.top/tools/codex/one-click.md): Codex 一键配置:curl -fsSL https://sh.flashapi.top/codex.sh | bash(Windows 用 irm),自动安装 Codex CLI,为 CLI 和桌面版写好自定义 API base_url、Key 和 gpt-6.1-sol,国内直连,配置自动备份。 - [Codex 安装教程(Windows):PowerShell 配置第三方 API base_url](https://docs.flashapi.top/tools/codex/windows.md): Windows 手动安装 Codex CLI 并接入第三方 API:npm 安装 @openai/codex,用 PowerShell 写入 config.toml(自定义 provider、base_url、gpt-6.1-sol)和 auth.json,也可在 WSL2 中配置。 - [Hermes Agent 安装配置:接入 Claude + GPT 中转 API](https://docs.flashapi.top/tools/hermes-agent/index.md): Hermes Agent 接入闪电API:一键命令 curl -fsSL https://sh.flashapi.top/hermes.sh | bash 自动安装并写好 config.yaml,同时配置 Claude 和 GPT 中转 API,附 Windows / macOS / Linux 手动教程。 - [Hermes Agent Linux 安装教程:配置 Claude + GPT API](https://docs.flashapi.top/tools/hermes-agent/linux.md): Hermes Agent Linux 手动安装教程:终端运行官方安装器(无需 pip 和 Python),编辑 ~/.hermes/config.yaml 用 providers 写法接入闪电API 中转的 Claude 和 GPT,附验证命令与常见报错排查。 - [Hermes Agent macOS 安装教程:配置 Claude + GPT API](https://docs.flashapi.top/tools/hermes-agent/macos.md): Hermes Agent macOS 手动安装教程:终端运行官方安装器(无需 pip 和 Python),编辑 ~/.hermes/config.yaml 用 providers 写法接入闪电API 中转的 Claude 和 GPT,附验证命令与常见报错排查。 - [Hermes Agent 一键安装配置:一条命令接入 Claude + GPT API](https://docs.flashapi.top/tools/hermes-agent/one-click.md): Hermes Agent 一键安装配置:运行 curl -fsSL https://sh.flashapi.top/hermes.sh | bash(Windows 用 hermes.ps1),自动安装并写入 config.yaml,接入闪电API 中转的 Claude 和 GPT 模型,国内直连。 - [Hermes Agent Windows 安装教程:配置 Claude + GPT API](https://docs.flashapi.top/tools/hermes-agent/windows.md): Hermes Agent Windows 手动安装教程:PowerShell 运行官方安装器(无需 pip 和 Python),编辑 config.yaml 用 providers 写法接入闪电API 中转的 Claude 和 GPT,附验证命令与 401 等常见报错排查。 - [AI 编程工具一键配置:Claude Code / Codex 等一条命令接入中转 API](https://docs.flashapi.top/tools/index.md): Claude Code、Codex、OpenClaw、Hermes Agent、OpenCode、Pi 一键配置命令汇总:macOS / Linux 用 curl,Windows 用 PowerShell,一条命令完成安装并接入闪电API 中转,国内直连,自动写好 Base URL 和 Key,不用手动改配置文件。 - [安装 Node.js:Claude Code / Codex 前置环境与版本要求](https://docs.flashapi.top/tools/nodejs/index.md): Claude Code、Codex、OpenClaw 等 AI 编程工具都依赖 Node.js。这里说明最低版本要求(18+,推荐 24 LTS)、如何检查是否已安装,以及 Windows / macOS / Linux 各系统的 Node.js 安装教程入口。 - [Node.js 安装教程(Linux):Ubuntu / Debian / Fedora / Arch](https://docs.flashapi.top/tools/nodejs/linux.md): Linux 安装 Node.js 的常用方案:Ubuntu / Debian 用 NodeSource,Fedora / RHEL 用 dnf,Arch 用 pacman,附 npm 全局安装权限报错、npm 下载慢切换国内镜像(npmmirror)的解决办法,为 Claude Code、Codex 准备运行环境。 - [Node.js 安装教程(macOS):Homebrew / 官网 PKG 安装](https://docs.flashapi.top/tools/nodejs/macos.md): macOS 安装 Node.js 的两种方法:Homebrew 一键安装(推荐)或官网下载 LTS 版 PKG,附 node -v 验证、npm 全局安装权限报错和 npm 下载慢切换国内镜像(npmmirror)的解决办法,为 Claude Code、Codex 准备好运行环境。 - [Node.js 安装教程(Windows):winget / MSI / Scoop 一步装好](https://docs.flashapi.top/tools/nodejs/windows.md): Windows 安装 Node.js LTS 的三种方法:winget 一条命令安装、官网 MSI 安装包、Scoop / Chocolatey,附 node -v 验证、PATH 不生效和 npm 下载慢切换国内镜像(npmmirror)的解决办法,装好即可配置 Claude Code 和 Codex。 - [OpenClaw 安装与配置:接入 Claude + GPT 中转 API](https://docs.flashapi.top/tools/openclaw/index.md): OpenClaw 接入闪电API:一键配置命令 curl -fsSL https://sh.flashapi.top/openclaw.sh | bash 同时写好 Claude 和 GPT 供应商,另有腾讯云 JSON 模板与 Windows / macOS / Linux 手动安装教程。 - [OpenClaw Linux / WSL2 安装教程:手动配置中转 API](https://docs.flashapi.top/tools/openclaw/linux.md): OpenClaw Linux / WSL2 手动安装教程:一行命令安装 OpenClaw、onboard 初始化本地网关、写入 openclaw.json 接入闪电API 中转(GPT / Claude / Gemini),附切换模型方法与常见报错排查。 - [OpenClaw macOS 安装教程:手动配置中转 API](https://docs.flashapi.top/tools/openclaw/macos.md): OpenClaw macOS 手动安装教程:终端安装 OpenClaw、onboard 初始化本地网关、写入 ~/.openclaw/openclaw.json 接入闪电API 中转(GPT / Claude / Gemini),附切换模型方法与常见报错排查。 - [OpenClaw 一键配置:一条命令接入 Claude + GPT 中转 API](https://docs.flashapi.top/tools/openclaw/one-click.md): OpenClaw 一键安装配置:运行 curl -fsSL https://sh.flashapi.top/openclaw.sh | bash(Windows 用 openclaw.ps1),自动安装并接入闪电API 中转的 Claude Opus 5.5 和 GPT-6.1,国内直连,可回滚。 - [OpenClaw 腾讯云 JSON 配置模板:接入 Claude / GPT 中转](https://docs.flashapi.top/tools/openclaw/tencent-cloud-json.md): 腾讯云 OpenClaw 可视化面板 JSON 配置模板:直接复制 Claude(anthropic-messages)和 GPT(openai-responses)两套模板,填入闪电API Key 即可使用中转 API,附 base_url 是否带 /v1 的区别说明。 - [OpenClaw Windows 安装教程:手动配置中转 API](https://docs.flashapi.top/tools/openclaw/windows.md): OpenClaw Windows 手动安装教程:PowerShell 安装 OpenClaw、onboard 初始化本地网关、写入 openclaw.json 接入闪电API 中转(GPT / Claude / Gemini),附切换模型方法与常见报错排查。 - [OpenCode 安装配置:自定义 Provider 接入 Claude + GPT](https://docs.flashapi.top/tools/opencode/index.md): OpenCode 接入闪电API:一键命令 curl -fsSL https://sh.flashapi.top/opencode.sh | bash 自动安装并写好 opencode.json 自定义 provider,同时配置 Claude 和 GPT,附三平台手动教程。 - [OpenCode Linux / WSL2 安装教程:配置 Claude / GPT 中转 API](https://docs.flashapi.top/tools/opencode/linux.md): OpenCode Linux / WSL2 手动安装教程:npm 安装 opencode-ai 和 @ai-sdk/anthropic、@ai-sdk/openai,写入 opencode.json 自定义 provider,接入闪电API 中转的 Claude 和 GPT 模型。 - [OpenCode macOS 安装教程:配置 Claude / GPT 中转 API](https://docs.flashapi.top/tools/opencode/macos.md): OpenCode macOS 手动安装教程:npm 安装 opencode-ai,安装 @ai-sdk/anthropic 和 @ai-sdk/openai,写入 ~/.config/opencode/opencode.json 自定义 provider 接入闪电API 中转的 Claude 和 GPT 模型。 - [OpenCode 一键配置:一条命令接入 Claude + GPT 中转 API](https://docs.flashapi.top/tools/opencode/one-click.md): OpenCode 一键安装配置:运行 curl -fsSL https://sh.flashapi.top/opencode.sh | bash(Windows 用 opencode.ps1),自动写入 opencode.json 自定义 provider,接入闪电API 中转的 Claude 和 GPT。 - [OpenCode Windows 安装教程:配置 Claude / GPT 中转 API](https://docs.flashapi.top/tools/opencode/windows.md): OpenCode Windows 手动安装教程:npm 安装 opencode-ai,安装 @ai-sdk/anthropic 和 @ai-sdk/openai,写入 opencode.json 自定义 provider 接入闪电API 中转的 Claude 和 GPT 模型,复制命令即可完成。 - [Pi 编码代理安装配置:接入 Claude + GPT 中转 API](https://docs.flashapi.top/tools/pi/index.md): Pi(pi coding agent)接入闪电API 教程:一键命令 curl -fsSL https://sh.flashapi.top/pi.sh | bash 自动安装并写好 models.json 和 settings.json,同时配置 Claude 和 GPT 中转 API,也可按步骤手动配置。 - [Pi 一键配置:一条命令接入 Claude + GPT 中转 API](https://docs.flashapi.top/tools/pi/one-click.md): Pi coding agent 一键安装配置:运行 curl -fsSL https://sh.flashapi.top/pi.sh | bash(Windows 用 pi.ps1),自动写入 models.json 和 settings.json,接入闪电API 中转的 Claude 和 GPT,国内直连。