Skip to content
Edit this page

Tailscale Outbound (type: tailscale)

Integrates directly into a Tailscale tailnet or self-hosted Headscale coordination server as a userspace node.

  • Feature: tailscale (enabled in standard / default builds).
  • UDP: Always enabled.
  • connect-via: Not supported (does not use CommonConfigOptions).

Fields

Key Type Required Default Description
name string Yes — Unique proxy name.
auth-key string No None Tailscale / Headscale pre-authentication key.
hostname string No None Requested tailnet hostname.
state-dir string No None Directory for persisting <state-dir>/tailscale_state.json (relative to config directory). If unset with ephemeral: false, state lives in memory only with a warning.
control-url string No Official Tailscale control plane Custom coordination server URL (e.g. Headscale).
client-name string No "clash-rs" Client identifier reported to the control server.
ephemeral bool No false Register as an ephemeral node (ignores state-dir persistence).

Example

proxies:
  - name: tailnet
    type: tailscale
    auth-key: "tskey-auth-REPLACE_ME"
    hostname: clash-rs-node
    state-dir: tailscale-state
    control-url: "https://headscale.example.com"
    ephemeral: false