Skip to main content
All clients
Persistent Rust Runtime · 53k★1M Context · ZDR

Herdr

Single-binary Rust terminal runtime for coding agents (herdrdev/herdr) — run detached multi-machine Claude Code, Codex, OpenCode, and Hermes swarms on bf16.ai 1M uncensored models.

Base URL
https://api.bf16.ai/v1
Protocol
openai-completions

Who this is for
Systems engineers and indie builders running long-lived detached agent fleets across local and SSH machines in Herdr who need overnight runs that never stall on false refusals or rolling rate limits.

Architecture & Why Pair with bf16.ai

Herdr persistent Rust terminal runtime multiplexing local and SSH coding agent panes routed to api.bf16.ai 1M uncensored models
Herdr owns your persistent local and SSH agent panes with live working/blocked/idle detection — backed by one bf16.ai API key across Claude Code, Codex, OpenCode, and Hermes.

Herdr (herdrdev/herdr, 53k+ ★) is a lightweight single-binary Rust runtime built specifically for coding agents: detach with `ctrl+b q` while background agents keep running, combine local and SSH machines in one window, and instantly spot which pane is `working`, `blocked`, or `idle`.

Because Herdr does not wrap or lock you into one vendor — it owns the terminals running Claude Code, Codex, OpenCode, and Hermes Agent, and even lets agents spawn and prompt each other through the Herdr CLI and socket API — exporting your bf16.ai environment once powers every pane across every connected machine.

Overnight detached swarms are where upstream safety refusals and 5-hour consumer subscription caps hurt most. Running Herdr panes on bf16.ai gives every machine 1M-context uncensored inference, transparent concurrency tiers, and strict ZDR under a single prepaid USD balance.

Commands show $BF16_API_KEY. Sign in to fill in your own key automatically.

ONE-COMMAND SETUP

Export bf16.ai Dual-Protocol Env for Herdr Agent Panes

Configures both native Anthropic (/v1/messages) and OpenAI (/v1) variables for every agent pane Herdr spawns and verifies live API access.

export BF16_API_KEY="sk-bf16-v1-..."
export ANTHROPIC_BASE_URL="https://api.bf16.ai"
export ANTHROPIC_AUTH_TOKEN="$BF16_API_KEY"
export ANTHROPIC_MODEL="deepseek/deepseek-v4.1-flash-uncensored"
export OPENAI_BASE_URL="https://api.bf16.ai/v1"
export OPENAI_API_KEY="$BF16_API_KEY"
curl https://api.bf16.ai/v1/models -H "Authorization: Bearer $BF16_API_KEY"
  1. 1

    Install Herdr on Your Local & Remote Machines

    Install the single Rust binary via Homebrew, mise, or the official install script.

    brew install herdr
    # Or on Linux / remote SSH hosts:
    curl -fsSL https://herdr.dev/install.sh | sh
  2. 2

    Add bf16.ai Env Variables to Your Shell Profile

    Export `BF16_API_KEY`, `ANTHROPIC_BASE_URL`, and `OPENAI_BASE_URL` in `~/.zshrc` or `~/.bashrc` on each machine Herdr connects to so every newly spawned agent pane inherits bf16.ai automatically.

    ~/.zshrc (or ~/.bashrc on SSH hosts)
    export BF16_API_KEY="sk-bf16-v1-..."
    export ANTHROPIC_BASE_URL="https://api.bf16.ai"
    export ANTHROPIC_AUTH_TOKEN="$BF16_API_KEY"
    export ANTHROPIC_MODEL="deepseek/deepseek-v4.1-flash-uncensored"
    export OPENAI_BASE_URL="https://api.bf16.ai/v1"
    export OPENAI_API_KEY="$BF16_API_KEY"
  3. 3

    Launch Herdr, Split Panes, and Detach Safely

    Start `herdr`, spawn Claude Code, Codex, OpenCode, or Hermes in parallel panes, and detach anytime with `ctrl+b q` — your agents keep running against api.bf16.ai in the background.

    herdr
    # Inside panes: launch claude, codex, opencode, or hermes
    # Detach without stopping agents: ctrl+b q
Herdr — Multi-Machine Agent Panes · bf16.ai Environment
SETTINGS & CONFIG INSPECTOR
~/.zshrc or ~/.bashrc (Local + Saved SSH Machines)

Exact Field-by-Field Reference

Install Herdr
brew install herdr (or curl -fsSL https://herdr.dev/install.sh | sh)
Claude Code Panes
ANTHROPIC_BASE_URL=https://api.bf16.ai · ANTHROPIC_AUTH_TOKEN=$BF16_API_KEY
Codex / OpenCode Panes
OPENAI_BASE_URL=https://api.bf16.ai/v1 · OPENAI_API_KEY=$BF16_API_KEY
Session Controls
herdr · ctrl+b q (detach without stopping agents)

Live working / blocked / idle pane indicators across SSH hosts

Share one BF16_API_KEY across local and SSH hosts, or create per-machine keys with individual daily USD caps at bf16.ai/dashboard/keys.

Recommended Uncensored Model Tiering

Route complex planning to Flagship models and high-frequency subagents or screenshots to Flash.

Workflow RoleModel IDWhy This ModelUSD / 1M Tokens
Multi-Pane Parallel Swarms (Fast + Low Cost)deepseek/deepseek-v4.1-flash-uncensored1M context, ~155 tok/s throughput, and $0.045/1M cached prompt reads keep 5–10 simultaneous Herdr panes fast and inexpensive.$0.26 in / $0.045 cached / $1.00 out
Coordinator Pane & Security / Systems Auditszai-org/glm-5.3-uncensoredStrongest 1M coding and reasoning flagship with zero false-positive refusals on kernel, crypto, or pentest panes.$1.35 in / $0.25 cached / $4.20 out
Zero-Markup Fleet Routerbf16/auto:codingRoutes panes automatically to the highest code-adherence uncensored model at base token cost.Model rate · $0 router fee

How to know it worked

  • Inside a Herdr pane, run `echo $ANTHROPIC_BASE_URL $OPENAI_BASE_URL` and confirm both point at `api.bf16.ai`.
  • Detach (`ctrl+b q`), reattach with `herdr`, and verify agent panes continued streaming cleanly without 429 or refusal stalls.
  • curl https://api.bf16.ai/v1/models -H "Authorization: Bearer $BF16_API_KEY"

Production Guardrails & Budget Isolation

  • When running 4+ parallel agent panes across local and SSH hosts, check your bf16.ai concurrency tier (`GET /v1/me` — Tier L1 unlocks 10 concurrent requests).
  • Create per-host API keys with daily USD spend caps at /dashboard/keys before launching unattended overnight swarms.

Common errors

Symptom
Multiple parallel Herdr panes return HTTP 429 `concurrency_limit_exceeded`.
Cause
Simultaneous in-flight requests across panes exceeded the free L0 concurrency ceiling (3 concurrent requests).
Fix
Top up to unlock higher concurrency tiers (L1 = 10 concurrent, L2 = 25 concurrent) or stagger agent pane dispatches via Herdr’s CLI.

Do not have it yet?

curl -fsSL https://herdr.dev/install.sh | sh
Official docs