One local endpoint for your AI providers and coding agents.
Tunnel Agent is a free, open-source desktop app for managing local AI proxies, provider accounts, quotas and coding agent configurations. Connect supported subscriptions or API keys through CLIProxyAPI, Perplexity WebUI Scraper or 9Router, then point compatible clients at localhost.
Open source · MIT · No Tunnel Agent account required
Dashboard
Usage across every engine, last 14 days.
Requests
12,480
Tokens
38.2M
Est. cost
$214
Requests per day
Interactive preview — click the sidebar. It follows the site theme, just like the app.
Claude
OpenAI
Gemini
Antigravity
xAI
Devin
Meta
Cursor
Kiro
Trae
Features
Everything between your subscriptions and your agents.
Proxies like CLIProxyAPI are powerful but live in config files and terminals. Tunnel Agent gives them a native window.
One-click servers
Install, update, start and stop each engine from the app. CLIProxyAPI and Perplexity come from GitHub releases; 9Router comes from npm and needs Node.js 18+.
Every way to sign in
OAuth for Claude, OpenAI, Kimi, Antigravity, xAI, Devin and Meta, API keys for Gemini or any OpenAI-compatible service, and Perplexity sessions.
Quota at a glance
Check usage and reset times for supported accounts. Windows and metrics vary by provider; Cursor, Kiro and Trae local sign-ins are monitored for quota only.
Model fallback
Define experimental CLIProxyAPI virtual models that try a chain of real models when a provider runs out of quota. 9Router has separate model combos.
Agent configuration
Detects installed coding agents and writes their config to route through your local endpoint. Reversible in one click.
Usage and cost
Track requests, tokens and estimated API-equivalent costs from engine telemetry. Estimates use model pricing and are not your subscription bill.
Local by design
Engines listen on localhost. Credential files stay on your disk in plain text; prompts go to the provider you choose. No Tunnel Agent cloud account is needed.
14 languages
English, Spanish, German, French, Japanese, Chinese and more. Light, dark or follow the system.
Updates under your control
Supported packaged builds can check for app updates. Engine updates can be enabled or pinned to a version; Scoop manages its own app updates.
Engines
Three engines, one window.
Run any combination side by side. Each engine gets its own port, logs, version and settings.
127.0.0.1:8317CLIProxyAPI
Unified proxy for OAuth and OpenAI-compatible upstream providers. The default engine for Claude, Codex, Gemini and friends.
127.0.0.1:8327Perplexity WebUI Scraper
OpenAI-compatible local API backed by Perplexity WebUI sessions. Add accounts with a session token.
127.0.0.1:201289Router
OpenAI-compatible local router with OAuth, API-key, cookie and free provider connections. Group models into fallback, round-robin or Fusion combos. Installed from npm; requires Node.js 18+.
How it works
From download to first prompt in minutes.
- 1
Install
Download the build for your OS. Tunnel Agent manages engine installation; install Node.js 18+ first if you want to use 9Router.
- 2
Connect
Open Providers and sign in with OAuth, paste an API key or add a Perplexity session.
- 3
Start
Press Start. The engine listens on localhost and the status pill turns green.
- 4
Code
In Agents, configure your CLI with one click — or point any OpenAI-compatible client at the endpoint.
# the endpoint Tunnel Agent starts for youexport OPENAI_BASE_URL=http://127.0.0.1:8317/v1export OPENAI_API_KEY='your-local-client-key' curl $OPENAI_BASE_URL/models \ -H "Authorization: Bearer $OPENAI_API_KEY" # or skip all of this: Agents → ConfigureCoding agents
Your favourite CLI, with models exposed by your proxy.
Tunnel Agent detects installed agents, backs up their config and writes the local endpoint, model and key. Restore the original whenever you want.
Claude Code
~/.claude/settings.json
Codex CLI
~/.codex/config.toml
OpenCode
~/.config/opencode/opencode.json
Pi
~/.pi/agent/models.json
Oh My Pi
~/.omp/agent/models.yml
Factory Droid
~/.factory/settings.json
Grok Build
~/.grok/config.toml
Tour
Take it for a spin.
An interactive demo of selected desktop screens with sample data. Flip switches, reorder fallbacks and search the logs. It does not connect real accounts or start a proxy.
Download
Get Tunnel Agent 1.1.12
Free and open source. Pick your platform — every build is published on GitHub Releases.
Windows is the primary tested platform. macOS and Linux builds are available, but compatibility can vary by engine. Only 9Router requires Node.js 18+; provider access requires internet and an eligible account or key.
Windows
Windows 10 or 11 · primary platform
macOS
Apple Silicon and Intel
Questions and answers
Before you connect your accounts.
What Tunnel Agent does, what it costs and where your data goes.
What is Tunnel Agent, and who is it for?
Tunnel Agent is an MIT-licensed desktop control center for developers using local AI proxies with coding agents. It manages CLIProxyAPI, Perplexity WebUI Scraper and 9Router, alongside provider accounts, quota views, usage history and agent configuration. It is not a model provider or a hosted AI service.
Read the guideIs Tunnel Agent free? Do I need a subscription?
Tunnel Agent is free to download and use, with no Tunnel Agent account required. It does not include paid AI access. Bring an eligible provider subscription, API key, session or supported free connection. Provider charges, quotas and terms still apply; a consumer subscription does not automatically include API access.
Read the guideWhich providers and coding agents can I connect?
CLIProxyAPI supports Claude, OpenAI Codex, Kimi, Antigravity, xAI, Devin and Meta accounts, plus Gemini API keys and custom OpenAI-compatible services. Perplexity uses WebUI sessions; 9Router has its own provider catalog. Automatic agent configuration supports Claude Code, Codex CLI, OpenCode, Pi, Oh My Pi, Factory Droid and Grok Build. Models depend on the engine and account.
Read the guideCan Cursor, Kiro and Trae local sign-ins power the proxy?
The standalone Cursor, Kiro and Trae integrations monitor quota from local IDE sign-ins; those detected credentials are not proxy providers. 9Router offers separate connections for supported providers, which must be added through its own provider flow. Compatibility is engine-specific.
Read the guideDo prompts and credentials stay on my computer?
Proxy engines run locally and credential files are stored on your computer in plain text, not an OS keyring. Prompts are sent to the selected upstream provider and follow its data policies. The app also contacts release registries and models.dev for downloads and pricing. Protect credential folders and backups as sensitive data.
Read the guideDoes fallback remove rate limits or provide unlimited access?
No. A virtual model tries an ordered chain of configured models when the current route exhausts its quota. Fallback cannot increase a provider’s allowance, guarantee availability or make unsupported models work. Each destination needs valid access. Quota views show provider-specific windows and refresh on supported app events or manual refresh, not continuous polling.
Read the guideCan I undo coding agent configuration?
Yes. Automatic configuration backs up the agent files before writing the local endpoint, models and key. Reset configuration restores the saved configuration. Manual mode lets you review and copy changes yourself. Other clients can be configured manually if they support the selected engine’s OpenAI-compatible or Anthropic-compatible API.
Read the guideRead the docs, open an issue, send a PR.
Guides for every screen, troubleshooting for common errors and everything you need to contribute.