One-liner installer wiring coding agents to the api.bird LLM gateway
- Shell 52.3%
- PowerShell 47.7%
Interactive reads now prefer /dev/tty: under a piped install the script itself IS stdin, so reading stdin there consumes the script body as user input. Non-tty runs (tests) still fall back to stdin. |
||
|---|---|---|
| docs | ||
| install.ps1 | ||
| install.sh | ||
| README.md | ||
bird-setup
One-liner installer that wires coding agents to the api.bird LLM gateway — free models, two questions, done.
One-liner
Linux / macOS (POSIX sh):
curl -fsSL https://git.bird.komaruthecat.dedyn.io/komarupi/bird-setup/raw/branch/main/install.sh | sh
Windows (PowerShell, no admin):
irm https://git.bird.komaruthecat.dedyn.io/komarupi/bird-setup/raw/branch/main/install.ps1 | iex
Quickstart (3 steps)
- Run the one-liner above.
- Get an API key when prompted: open https://api.bird.komaruthecat.dedyn.io → Login → Sign up (GitHub or Telegram OAuth only — email registration is disabled) → Tokens → Add new token → COPY. The installer prints these steps too.
- Pick which agents to wire (numbers, or
all). The installer installs missing agents, merges configs, verifies the gateway live, and tells you the start command.
Models
| Model | Notes |
|---|---|
glm-5.3-flash |
default — fast and cheap |
deepseek-v4.1-flash |
fast, good at code |
qwen-3.8-27b-ultraspeed |
fast 27B branch |
Fresh list: curl https://api.bird.komaruthecat.dedyn.io/v1/models (with your key).
What it touches
- Key:
~/.config/bird/env(chmod 600) + a source line in~/.bashrc/~/.zshrc(Windows:setx BIRD_API_KEY). - Per-agent configs are merged, never clobbered — existing files are backed up to
<file>.bak-bird-<timestamp>first. - Re-runs are idempotent: no duplicate entries, no duplicate installs.
| Agent | Config |
|---|---|
| Claude Code | ~/.claude/settings.json (env: ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_MODEL, ANTHROPIC_SMALL_FAST_MODEL) |
| OpenCode | ~/.config/opencode/opencode.json (provider bird) |
| Oh My Pi | ~/.omp/agent/models.yml (provider bird) |
| Aider | ~/.config/aider/.env |
| Codex CLI | ~/.codex/config.toml (provider bird, wire_api = "responses") |
Docs
- Full connection guide (English): docs/guide.en.md
- Full connection guide (Russian): docs/guide.ru.md
Troubleshooting
- 404 — almost always a doubled
/v1: Claude Code base URL has NO/v1, all other agents have it. - 401 — key did not reach the agent: make sure the env var is set in the same terminal (
setxvariables live only in NEW terminals). - Provider/model missing (ompi/opencode) — config syntax error; check with
omp models find bird. - Free upstreams rotate: if a model returns 503, pick another from the list.