Skip to content
FossShelf
Home / Categories / For IT Operations

tailcat

Encrypted tunnels between machines, no account or IP needed

Replaces Tailscale, Twingate, Zerotier

10.02K starsBSD-3-Clausereviewed 29 Aug 2026last commit 5 Nov 2026
Screenshot of tailcat

Who it's for

Developers SSH-ing into remote dev environments

Run `tailcat --serve=no-auth-ssh` on the target machine, share the token, and SSH in from anywhere without port forwarding or VPN setup. The ephemeral key means the access expires when the tailcat process stops.

You need persistent, stable SSH access to the same machine across sessions. Publish a stable keypair in DNS, or use Tailscale for ongoing device access instead of generating a new ephemeral token each time.

AI agents accessing sandboxed test machines

Agents often cannot complete interactive login flows and may not need persistent network membership. Give the agent a tailcat address and it connects to the target machine for that specific workflow without joining a tailnet.

Your agent framework already manages network access through Tailscale, or the agent needs to reach multiple services that are already on a tailnet. Tailcat adds no value inside an existing tailnet.

Developers sharing local ports or files between machines

Pipe files over stdin/stdout with plain `tailcat`, or forward a local TCP port to a teammate with `tailcat --serve=8080`. No shared network membership required. Works across NAT and different networks without additional configuration.

You need to share access with more than one person at the same time, or need the connection to persist after your machine sleeps or restarts. Tailcat is designed for point-to-point, single-session use.

Go developers embedding ephemeral tunnels in programs

Import `github.com/tailscale/tailcat` and use the zero-value `Server` struct to start a listener, get a connection token via `ConnBlob()`, and accept inbound TCP connections. The library picks safe defaults without configuration. Useful for test harnesses or CLI tools that need temporary connectivity.

Your use case requires a stable versioned API. The tailcat Go library has no stability promises and the API, CLI flags, or wire format may change between releases.

The problem

Setting up a full VPN or mesh network to make one short connection between two machines is more work than the job deserves. Most tools in this space require accounts, device enrollment, an admin dashboard, and policy configuration before the first packet moves. SSH port forwarding is fragile across NAT boundaries. VPN clients need OS-level routing changes and root access. The pain is worse when the connection is temporary. Giving an AI agent access to a test machine for one task, sharing development files with a teammate for an hour, or exposing a local port for a quick demo should not require a persistent network membership that outlasts the task. Commercial platforms optimized for ongoing, auditable access do not fit narrow, time-limited use cases.

How it works

No accounts, login, or IP addresses

Connects two machines using a short connection token derived from a WireGuard public key. No Tailscale account, login flow, tailnet, or static IP address needed on either side. Share the token and the other machine connects.

End-to-end WireGuard encryption

All tunnel traffic is encrypted with WireGuard. Tailcat uses Tailscale's userspace WireGuard implementation, which does not require a kernel TUN/TAP device or root access on either side. No OS routing tables or DNS settings are modified.

NAT traversal with DERP relay fallback

Tailcat attempts direct peer-to-peer UDP connections via STUN-based endpoint discovery and UDP hole-punching. When a direct path is not possible, traffic falls back to a DERP relay. The `tailcat ping --until-direct` command confirms which path is active.

SSH server, port forwarding, and SOCKS5 proxy

Run `tailcat --serve=no-auth-ssh` to start an SSH server over the tunnel on Linux and macOS. Forward any local TCP port with `--serve=8080`, or route traffic through a SOCKS5 proxy with `tailcat socks`. All modes run over the same WireGuard tunnel.

Ephemeral and saved key modes

By default, each `tailcat` server run generates a fresh ephemeral WireGuard key, and the address dies when the process exits. For stable addresses published in DNS, `tailcat genkey` saves a long-lived key to disk. The startup message tells you which mode is active.

Importable Go library

The `github.com/tailscale/tailcat` Go package can be imported directly into programs. The zero-value `Server` struct picks safe defaults (ephemeral key, nearest DERP region) and the tunnel is established lazily on the first dial. Useful for embedding ephemeral connectivity into CLI tools or test harnesses.

Features

  • No accounts, login, or IP addresses
  • End-to-end WireGuard encryption
  • NAT traversal with DERP relay fallback
  • SSH server, port forwarding, and SOCKS5 proxy
  • Ephemeral and saved key modes
  • Importable Go library

How to install

Install tailcat with Go; no system setup or root access required.

go install github.com/tailscale/tailcat/cmd/tailcat@latest

Recommended for this setup

Strengths

  • No root access or OS configuration required: Tailcat runs entirely in userspace. It does not modify routing tables, DNS settings, or network interfaces, so no root or admin privileges are needed on either machine. This matters for shared dev environments, CI jobs, and sandboxed AI agents where elevated access is unavailable.
  • Upgrades to direct peer-to-peer when possible: Tailcat uses Tailscale's magicsock transport to attempt UDP hole-punching past the DERP relay to a direct connection. The `ping --until-direct` subcommand confirms when a direct path is active, which reduces latency for interactive SSH sessions compared to relay-only tools.
  • Bring-your-own DERP relay: The hosted DERP relays are rate-limited and log metadata. You can run your own DERP server using Tailscale's open-source derper project and embed its hostname into the connection token via `tailcat genkey --region=derp.example.com`. No Tailscale infrastructure is required once you provide your own relay.
  • Permissive BSD-3-Clause license: BSD-3-Clause is permissive: you can use, modify, and redistribute tailcat commercially with no copyleft obligations. Unlike AGPL tools, using tailcat in a service does not require you to publish source changes.

Trade-offs

  • No API or wire-format stability guarantees: The README explicitly states that the Go API, CLI flags, and wire format may all change without notice. This is pre-1.0 software from a commercial company that may prioritize its paid Tailscale product. Building critical infrastructure on tailcat carries meaningful upgrade risk.
  • Public DERP relays are rate-limited and log metadata: The hosted tailcat DERP relays have no uptime SLAs or throughput targets, and Tailscale may revoke access at any time. They are not intended for privacy-sensitive or high-throughput use cases. Organizations with strict data policies should run their own DERP relay.
  • No governance, identity, or audit trail: Tailcat has no accounts, admins, users, or policy controls. Whoever holds the connection token can connect. There is no audit log of who connected when or for how long. This is the right tradeoff for ephemeral use cases but a hard limit for any team that needs access governance or compliance logging.

Tech stack

Languages
Go, C, JavaScript, HTML, Shell, Nix, Makefile
Frameworks
—
Databases
—
Tooling
—

FAQ

Does tailcat require a Tailscale account?

No. Tailcat does not require a Tailscale account, login, or any form of user identity. Access is granted by possession of the connection token. The token encodes the server's WireGuard public key and DERP relay info, which is everything a client needs to connect.

Is tailcat connection traffic private?

The connection traffic is encrypted end-to-end with WireGuard. However, the hosted tailcat DERP relays keep metadata logs and are not intended for privacy-sensitive use. If privacy is a hard requirement, run your own DERP relay using Tailscale's open-source derper project, specifying its hostname with `tailcat genkey --region=your.derp.host`.

How is tailcat different from Tailscale?

Tailscale is designed for ongoing, auditable, governable network access across devices and users. Tailcat is designed for narrow, short-lived connections between two machines with no account, identity, or persistent network membership. Use Tailscale when you need a managed network; use tailcat when you need one quick encrypted connection.

How sensitive is a tailcat connection token?

A tailcat connection token (starting with `tc`) encodes the server's WireGuard public key and DERP relay info. Anyone who has the token can connect to that server session, so treat it like a password. Do not log it, commit it to source control, or share it publicly. Ephemeral tokens (the default) expire when the server process stops.

Can tailcat be embedded in a Go program?

Yes. The `github.com/tailscale/tailcat` Go package is importable as a library. The zero-value `Server` struct starts a listener, and `ConnBlob()` returns the connection token for sharing. Note that the Go API has no stability promises and may change between releases.

Similar tools

More in IT Operations