项目的 README,来自 github.com/www222fff/free-router-proxy。合并为一个 markdown 文件:README.md。
English | 中文
Node.js 20+. Copy .env.example to .env, add at least one provider key,
then:
git clone https://github.com/www222fff/free-router-proxy.git
cd free-router-proxy
cp .env.example .env
./start.sh
Stop with ./stop.sh. Docker: docker compose up -d. Open
http://127.0.0.1:8787/ to set keys, manage routing, and watch usage. The
local-only interface follows your browser language (12 languages included).
| Variable | Where |
|---|---|
GEMINI_API_KEY |
Google AI Studio |
OPENROUTER_API_KEY |
openrouter.ai/keys |
TOKENROUTER_API_KEY |
TokenRouter |
BAI_API_KEY |
chat.b.ai |
HASHNEURON_API_KEY |
HashNeuron (https://hashneuron.space/v1) |
Need more than one key per provider? Set OPENROUTER_API_KEYS (or
OPENROUTER_API_KEY_KEYS) with comma-separated values, or add named keys in
the web UI — requests rotate across them automatically.
More providers: add a block in config.json, or add one in the web UI with
just a name and a base URL. See How it works.
config.json holds defaults and stays merge-clean. Everything you change —
in the web UI or via the first-boot .env import — is written to the
gitignored config.local.json, which wins over defaults at startup (objects
merge per key, arrays are replaced). Provider keys also work straight from
the environment, so .env remains a valid key store that never needs a UI.
./models.sh # current free-best order
./models.sh --usage # today's quota