New
Apps 12Makers 12This week 12
Promote your app−30%
Tunr screenshot 1
2views in
the last 30 days

Tunr

Home and tunnel for vibe-coded apps, manageable by agents over MCP

Built with Claude Code

by tunr-dev · added Oct 28, 2026
no ratings0 comments
Open app Code

tunr



The network layer for AI agents. Reach your customers' on-prem data, show what you build, keep it running — through one relay that your machines only ever dial out to.

Release CLI: Apache 2.0 Relay: PolyForm Shield Go Version CI Stars

tunr.sh · Live demo · Docs · Dashboard · Discussions · Contributing

# The vendor sends one link:
$ tunr invite create --org finbot --customer "Acme"
https://app.tunr.sh/connect/tunr_inv_…               # Acme's IT signs in, names a site, gets the install command

# Customer IT, once — inside their network, outbound HTTPS only:
$ tunr connect resource add erp --kind mssql --target 10.0.0.7:1433 --database TIGER --profile logo-tiger
$ tunr connect mssql-role --database TIGER --resource erp > mssql-role.sql   # SELECT-only login, for the DBA
$ tunr connect resource verify erp                   # login can't write? which Logo tables exist?

# The vendor's agent — anywhere:
$ tunr access request acme/erp --ttl 2h --reason "Reconcile October invoices"
  pending  grt_…  acme/erp (ro, 2h0m0s)               # a person at Acme approves
$ tunr access acme/erp --port 15433
TUNR_QUERY_URL=http://127.0.0.1:15433/query           # the connector runs each statement read-only
$ curl -s $TUNR_QUERY_URL -H "Authorization: Bearer $TUNR_QUERY_TOKEN" -d '{"sql":"DELETE FROM LG_001_CLCARD"}'
{"error":{"code":"blocked","message":"tunr bridge: DELETE is not allowed on a read-only bridge. …"}}

Or let the agent do it over MCP: tunr_describe_resource (what the ERP's tables mean), tunr_request_access, tunr_query (rows as JSON).

One layer, three directions

Command What it connects
Reach in — Agent Bridge tunr connect · tunr access Your agent → a system inside a customer's network (an ERP on SQL Server, a Postgres ledger, a file server). Read-only, approved by the customer, on their record.
Show out — tunnels tunr share Something on your laptop → a public HTTPS link, for the customer to try before it ships. Free.
Stay up — deploy & host tunr deploy · tunr agent deploy The app your agent built, or the agent itself → running on tunr, asleep when idle.

The same rules hold in every direction: your machines and your customer's only open outbound connections to the relay, there is one CLI and one MCP server (16 tools) for all of it, and the relay is self-hostable. Agent Bridge is the part that carries the most guarantees — grants, read-only databases, audit — because it touches someone else's data.


Why

AI vendors increasingly sell agents that need data living inside their customers' networks — on-prem ERPs, ledgers, file servers. Today each vendor writes its own on-prem agent or asks for a VPN, and every deal waits weeks in a security review, because the customer can't see or limit what the agent touches.

tunr Bridge is the standard way across. The customer installs one connector that only connects out, exposes named resources, and approves each agent, resource and time window — with a reason they can read. The agent never sees a database password; databases are read-only in three layers; the stream is end-to-end encrypted to the customer's connector; every query lands in the customer's audit log; one click cuts everything. Once a customer has the connector for one vendor, the next vendor is a link and an approval away.

The bridge is one direction of a network layer an agent needs anyway. The same relay gives you a public link for what you're building (the free 3-second tunnel tunr started as), hosts the apps your agent builds from that data, and can host the agent itself — private, woken by cron or signed webhooks, with its identity issued automatically.


Install

# macOS / Linux — Homebrew
brew install tunr-dev/tap/tunr

# macOS / Linux — install script
curl -fsSL https://raw.githubusercontent.com/tunr-dev/tunr/main/install.sh | sh

# Go
go install github.com/tunr-dev/tunr/cmd/tunr@latest

# From source
git clone https://github.com/tunr-dev/tunr.git && cd tunr && make build

A single static binary. macOS, Linux and Windows, amd64 and arm64, no runtime dependencies. Verify it with tunr doctor.

SDKs — for driving tunnels from code rather than the shell:

pip install tunr-sdk      # Python
npm install @tunr/cli     # Node.js

Agent Bridge — reach in

 vendor's agent ──► tunr access ──(TLS 1.3, pinned)──────────────► connector ──► customer's database
 (anywhere)        127.0.0.1:port      ▲ relay sees ciphertext ▲     (outbound only)    (read-only role)
Connector tunr connect runs inside the customer's network as a service, dials out only, and serves named resources. Their addresses never leave the machine.
Grants Agent × resource × mode × duration, requested with a reason, approved by the customer (read-write needs two different approvers). They expire on their own.
Read-only databases PostgreSQL and SQL Server. A SELECT-only login (pg-role / mssql-role), read-only sessions or always-rolled-back transactions, and a statement classifier; writes are refused. resource verify tells the customer if the login could write. Row, byte and rate limits per grant.
SQL Server ERPs mssql resources run in query mode: the connector executes each statement and returns rows as JSON (tunr_query, or POST /query on tunr access's port). Built for Nebim, Logo and Netsis, which mostly run on SQL Server.
Schema profiles Nebim V3, Logo Tiger/Go and Netsis: tables, column meanings, traps and example queries for the agent (tunr_describe_resource, tunr profile show), checked against the customer's real database by resource verify.
Masking Hide columns in results — SQL Server's Dynamic Data Masking via mssql-role --mask, or the connector's masking for Postgres (--mask cari.vergi_no=partial:4), which follows aliases and refuses expressions over masked columns.
No credentials for agents The connector logs in itself; the agent's DSN or query token only unlocks its own local port.
Acting for a person Every grant shows the person at the vendor it acts for; when they leave the vendor's org, their grants stop working.
Connect links tunr invite create — one link takes the customer's IT from sign-in to the install command. It approves nothing.
End-to-end TLS Between tunr access and the connector, pinned to the connector's certificate.
Audit Every grant decision, session and query summary, exportable as CSV.
Cut access Revoke closes live connections in milliseconds; the site kill switch revokes everything.
Hosted agents (early access) tunr agent deploy runs an agent on tunr, private, woken by cron or signed webhooks, with its identity issued automatically and a /data volume. Off on tunr.sh until egress and CPU quotas land; self-hosters enable it with TUNR_BRIDGE_HOSTED_AGENTS=1.
Dashboard app.tunr.sh: approvals inbox, sites, resources, grants and their queries, audit + CSV export, agents and tokens, webhooks, org settings. Self-hosted relays ship the same flows as a built-in portal at /portal/.

What it guarantees, how, and what it doesn't: docs/bridge/security.md. Getting started: customer · vendor · protocol: docs/protocol/bridge.md. For the customer's IT team: English · Türkçe. For your coding agent: agent-prompt.md.

Status: preview. Live on tunr.sh and end-to-end tested (two docker suites in CI); expect sharp edges. PostgreSQL, SQL Server (query mode) and raw TCP resources today; MySQL later.


Tunnels — show out

Still free, still unlimited, still 3 seconds.

tunr share --port 3000
#  🚀 https://abc1x2y3.tunr.sh

HTTP/HTTPS with WebSocket (HMR works), plus experimental raw TCP, UDP and TLS tunnels — all multiplexed over one connection. Traffic is served from a single EU relay today; more regions are planned.

Access control — password, bearer token, IP whitelist, TTL, QR
# Basic auth (user optional)
tunr share -p 8080 --password "secret"
tunr share -p 8080 --password "client:secret"

# Bearer token — Authorization: Bearer <token> or ?token=<token>
tunr share -p 3000 --auth-token "my-super-secret-key"

# IP whitelist (CIDR)
tunr share -p 3000 --allow-ip "203.0.113.0/24"
tunr share -p 3000 --allow-ip "10.0.0.0/8,172.16.0.0/12"

# Auto-expire — the tunnel closes itself
tunr share -p 3000 --ttl 1h30m

# QR code, for opening it on a phone
tunr share -p 3000 --qr
Routing & headers — path routing, regions, header rewriting, CORS, proxies
# Path routing — one public URL, several local ports
tunr share --route /=3000 --route /api=8080

# Region hint — accepted today, takes effect once more regions launch
# (tunr currently runs a single relay in the EU)
tunr share --port 3000 --region ams

# Header rewriting
tunr share -p 3000 --header-add "X-Debug: true"
tunr share -p 3000 --header-replace "Host: internal.local"
tunr share -p 3000 --header-remove "X-Powered-By"

# Forwarded headers — X-Forwarded-For (real client IP), X-Original-URL
tunr share -p 3000 --x-forwarded-for --original-url

# CORS preflight without touching your server
tunr share -p 3000 --cors-origin "https://myapp.com"

# Behind a corporate proxy
tunr share -p 3000 --proxy http://proxy:8080

# Custom domain (Pro)
tunr share -p 3000 --domain demo.client.com
TCP / UDP / TLS — experimental raw tunnels
tunr tcp --port 5432
tunr udp --port 53
tunr tls --port 8443   # a local TLS port over the same raw transport

Experimental, and narrower than the names suggest. The relay exposes a raw tunnel only as a WebSocket stream at wss://<subdomain>.tunr.sh/tunnel/tcp (binary frames carry the bytes). There is no raw TCP/UDP port on the relay yet, so psql, ssh or a game client can't connect directly — you need a client that speaks that WebSocket. tunr tls is not SNI passthrough: the relay terminates TLS for *.tunr.sh. --allow-ip isn't enforced on raw tunnels, so it returns an error rather than silently leaving the port open.

Daemon, service & multi-tunnel
# Background daemon
tunr start --port 3000
tunr status
tunr stop

# Several tunnels from .tunr.json
tunr up
tunr down

# Install as a system service (systemd / launchd) — starts on boot
tunr service install --port 3000
tunr service status
tunr service uninstall
Inspect & replay — the local HTTP inspector
tunr open           # dashboard at http://localhost:19842
tunr logs --follow  # stream requests in the terminal
tunr replay <id>    # re-send a captured request to your local server

Live request/response stream, headers, body, timing, one-click replay, export as a curl command. Everything stays on your machine.

Full CLI reference
Command Description
Cloud
tunr deploy [dir] Build & host a project; --name, --port, --env KEY=VAL
tunr apps List your cloud apps
tunr apps logs <name> Stream logs; --follow, --tail N
tunr apps delete <name> Delete an app
Tunnels
tunr share -p PORT Expose a local port over HTTPS
tunr share -p PORT -s NAME Custom subdomain (Pro)
tunr share --route /PATH=PORT Map URL paths to local ports
tunr share -p PORT --password PASS Basic authentication
tunr share -p PORT --ttl 1h Auto-close after a duration
tunr share -p PORT --demo Read-only demo mode
tunr share -p PORT --freeze Serve last-good response on crash
tunr share -p PORT --inject-widget Inject the feedback widget
tunr share -p PORT --auto-login "Cookie: s=demo" Auto-inject an auth cookie
tunr share -p PORT --domain HOST Custom domain
tunr share -p PORT --qr Print a QR code for the URL
tunr share -p PORT --auth-token TOKEN Bearer token protection
tunr share -p PORT --allow-ip CIDR IP whitelist
tunr share -p PORT --header-add/-replace/-remove Rewrite headers
tunr share -p PORT --x-forwarded-for --original-url Proxy headers
tunr share -p PORT --cors-origin ORIGIN CORS preflight
tunr share -p PORT --proxy URL HTTP/SOCKS5 proxy
tunr share -p PORT --region ams Relay region hint (single EU relay today)
tunr share -p PORT --json JSON output for CI
tunr tcp -p PORT / tunr udp -p PORT / tunr tls -p PORT Raw tunnels over WebSocket (experimental)
tunr up / tunr down Start/stop everything in .tunr.json
tunr start / tunr stop / tunr status Daemon mode
tunr service install|status|uninstall System service
Everything else
tunr login / tunr logout Authentication
tunr open / tunr logs / tunr replay <id> Inspector
tunr mcp Start the MCP server (stdio)
tunr config init / tunr config show .tunr.json
tunr doctor Diagnose your setup
tunr update / tunr uninstall / tunr version Maintenance

Global flags: --relay URL (point at your own relay), --verbose.


Client demos — show out, safely

Showing a client something that still runs on your laptop? Three flags make the free tunnel safe to hand to someone who isn't a developer.

tunr share with --demo, --freeze and --inject-widget: a client's delete is intercepted, a crash is hidden, feedback arrives in the terminal

tunr share -p 3000 --demo --freeze --inject-widget --qr
Flag What the client sees What actually happens
--demo Buttons work — "Order deleted ✓" POST/PUT/PATCH/DELETE are answered by tunr with a fake success (JSON bodies are echoed back) and never reach your app. GraphQL queries still go through. Messages the visitor sends over WebSockets are dropped. Tune it with --demo-allow / --demo-block (details).
--freeze The page, as it was a second ago Your dev server crashed or returned a 5xx; tunr serves the last good response (X-Tunr-Freeze-Cache: HIT) while you fix it.
--inject-widget A 💬 Feedback button on every page Their message, page URL and screen size land in your terminal. No code changes — tunr injects it into the HTML.
--auto-login Already signed in to a demo account tunr adds your session cookie (or Bearer … header) to every request: --auto-login "session=demo-token".
--qr · --password · --ttl 1h A QR code to open it on their phone; a password; a link that expires Access control that takes one flag each.

Deploy & host — stay up

An agent calls tunr_deploy; the build streams and the app goes live at https://standup.tunr.sh

tunr login                        # magic-link, token goes to your OS keychain
tunr deploy --name my-app         # build + run; prints the live URL
tunr apps                         # list your apps
tunr apps logs my-app --follow    # stream build + runtime logs
tunr apps delete my-app           # remove it, free the subdomain
Build Nixpacks auto-detect — Node, Python, Go, Ruby, Rust, PHP, Java. A Dockerfile is used if present.
Isolation Every app runs in its own gVisor sandbox with CPU, memory and disk quotas.
Scale to zero Idle → paused with its memory reclaimed (~20 MB resident), then stopped. Wake p50 is ~150 ms.
Secrets .env files are never uploaded. Pass them with --env KEY=VALUE.
Stays up Close your laptop. The app keeps serving.
tunr deploy --name sprint --port 3000 --env DATABASE_URL=postgres://…

Status: preview. Deploy works end to end and is what the MCP tools drive. Role-based sharing, per-app SQLite and tunr rollback are not built yet — see Roadmap for what's real and what isn't.


Agent-native (MCP)

The CLI and the MCP server are two faces of the same control plane. Anything you can do in a terminal, your agent can do in a tool call.

Claude Code:

claude mcp add tunr -- tunr mcp

Claude Desktop (~/.claude/claude_desktop_config.json) / Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "tunr": { "command": "tunr", "args": ["mcp"] }
  }
}

Tools

Tool What it does
Reach in needs TUNR_AGENT_TOKEN in the MCP server's env
tunr_list_resources Customer resources this agent may ask for, with grant status
tunr_describe_resource The resource's schema profile (Nebim, Logo, Netsis…): tables, rules, example queries
tunr_request_access Ask the customer for time-boxed, read-only access, with a reason they read
tunr_access_status Pending, approved, denied, revoked or expired
tunr_query Run one read-only statement on an approved database; rows as JSON
tunr_open_access / tunr_close_access Open or close a local port (DSN or query endpoint) to the resource
Stay up
tunr_deploy Build & host a directory on the tunr cloud, return the live URL
tunr_list_apps List deployed apps with URL and status
tunr_app_logs Read an app's build + runtime logs (for debugging a bad deploy)
`tunr_delete_app

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.