v1.1.12Now on Windows, macOS and Linux

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

CLIProxyAPI:8317
Perplexity:8327
9Router:20128

Interactive preview — click the sidebar. It follows the site theme, just like the app.

Works with
  • 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.

01

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+.

02

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.

03

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.

04

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.

05

Agent configuration

Detects installed coding agents and writes their config to route through your local endpoint. Reversible in one click.

06

Usage and cost

Track requests, tokens and estimated API-equivalent costs from engine telemetry. Estimates use model pricing and are not your subscription bill.

07

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.

08

14 languages

English, Spanish, German, French, Japanese, Chinese and more. Light, dark or follow the system.

09

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.

Running127.0.0.1:8317

CLIProxyAPI

Unified proxy for OAuth and OpenAI-compatible upstream providers. The default engine for Claude, Codex, Gemini and friends.

OAuthAPI keysRound robinFill first
router-for-me/CLIProxyAPI
Running127.0.0.1:8327

Perplexity WebUI Scraper

OpenAI-compatible local API backed by Perplexity WebUI sessions. Add accounts with a session token.

Session tokensMulti-account
Villoh/perplexity-webui-scraper
Running127.0.0.1:20128

9Router

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+.

Multi-providerModel combosNode.js 18+
decolua/9router

How it works

From download to first prompt in minutes.

  1. 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. 2

    Connect

    Open Providers and sign in with OAuth, paste an API key or add a Perplexity session.

  3. 3

    Start

    Press Start. The engine listens on localhost and the status pill turns green.

  4. 4

    Code

    In Agents, configure your CLI with one click — or point any OpenAI-compatible client at the endpoint.

any OpenAI-compatible client
# 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 → Configure

Coding 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.

Dashboard

Live overview of requests handled by the local proxy.

Total calls

1,468

3 providers

Success rate

95.6%

1403 successful

Failures

65

Failure rate 4.4%

Est. cost

$236.21

From model unit prices

Total tokens

193.7M

Reasoning 12.5K

Input tokens

38.1M

Share 19.7%

Output tokens

896.4K

Share 0.5%

Cache tokens

177.2M

Hit rate 82.3%

Usage chart

Trend over the selected time range.

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.

All releases and checksums Installation guide

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 guide

Is 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 guide

Which 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 guide

Can 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 guide

Do 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 guide

Does 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 guide

Can 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 guide

Read the docs, open an issue, send a PR.

Guides for every screen, troubleshooting for common errors and everything you need to contribute.