Docs Config AnyTLS

AnyTLS

A newer TLS-based protocol focused on resisting traffic analysis, reducing fingerprints by managing idle connection sessions.

Example Config

config.yaml YAML
proxies:
  - name: anytls
    type: anytls
    server: 1.2.3.4
    port: 443
    password: " "
    client-fingerprint: chrome
    udp: true
    idle-session-check-interval: 30
    idle-session-timeout: 30
    min-idle-session: 0
    sni: "example.com"
    skip-cert-verify: true

Field Reference

passwordRequired

The authentication password.

idle-session-check-intervalDefault: 30s

How often to check for idle sessions.

idle-session-timeoutDefault: 30s

During each check, closes any session that's been idle longer than this value.

min-idle-sessionDefault: 0

During each check, keeps at least the first n idle sessions open instead of closing them.

For the remaining fields, see common fields and TLS fields.

Mihomo does not support combining AnyTLS with REALITY (and has no plans to). To hide the SNI, use ECH instead; if you specifically need REALITY, use VMess, VLESS, or Trojan.