OpenCode (install and connect to Flash API)
OpenCode is an open-source AI coding assistant for the terminal (TUI). It supports a long list of providers and is highly configurable, which makes it a favorite of people who like to tinker.
What you need
- Node.js installed: Node.js
- A Flash API key
- OpenCode's OpenAI /
@ai-sdk/anthropicbase URL:https://ai.flashapi.top/v1
OpenCode uses the AI SDK and needs
/v1. The official Anthropic Python / Node.js SDK uses the root URL without/v1.
Recommended: one-line setup
One command installs OpenCode and connects both Claude and GPT. See OpenCode one-line setup.
bash
curl -fsSL https://sh.flashapi.top/opencode.sh | bashpowershell
irm https://sh.flashapi.top/opencode.ps1 | iexPick your OS (manual install)
The minimum you need to do
- Install the
opencodecommand - Install the matching SDK in the config directory (e.g.
@ai-sdk/anthropicfor Claude) - Write an
opencode.jsonthat points at Flash API - Run
opencode