Stitching free AI endpoints into local developer tools by hand gets old quickly because provider uptime and response latency swing wildly from week to week. A lightweight open-source CLI tool called free-router solves this directly in the terminal.

Automatic Routing Driven by Live Latency Pings

free-router monitors free model APIs across NVIDIA NIM and OpenRouter in real time, sending parallel pings every 2 seconds to measure response latency and uptime. It automatically surfaces the fastest available endpoint, often clocking average response times below 0.4 seconds on healthy routes.

Passing the --best flag prints only the fastest model ID as plain text, making it easy to pipe straight into shell scripts and automated workflows.

Updating Coding Agent Configs Without Manual Edits

Beyond benchmarking endpoints, the tool writes directly to local configuration files for coding agents including OpenCode, OpenClaw, and Hermes Agent. Users simply filter models in the interactive terminal UI and press Enter to apply the update.

API keys stay on the local machine, and traffic goes straight to model providers without routing through any third-party proxy server. Once free provider keys are registered, developers can run interactive coding sessions without worrying about token bills.

Cutting out the time spent hunting for responsive free endpoints makes terminal agent workflows noticeably smoother.

Summary

  • Runs parallel latency pings every 2 seconds across NVIDIA NIM and OpenRouter free APIs to pick the fastest live model.
  • Updates configuration files automatically for coding agents such as OpenCode, OpenClaw, and Hermes Agent via an interactive TUI.
  • Stores API keys locally and connects directly to model endpoints with no intermediary server or added cost.