One-liner installer wiring coding agents to the api.bird LLM gateway
  • Shell 52.3%
  • PowerShell 47.7%
Find a file
MatveyKostis 37802f4d6a Fix input handling under curl | sh
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.
2026-11-10 11:06:39 +02:00
docs Add docs: English and Russian api-bird connection guides 2026-11-09 22:18:15 +02:00
install.ps1 Add install.ps1: PowerShell installer for Windows 2026-11-09 22:18:15 +02:00
install.sh Fix input handling under curl | sh 2026-11-10 11:06:39 +02:00
README.md Add README: one-liner, quickstart, model list, config map 2026-11-09 22:18:15 +02:00

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)

  1. Run the one-liner above.
  2. 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.
  3. 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

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 (setx variables 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.