Skip to content

AnyTLS

proxies:
- name: anytls
  type: anytls
  server: 1.2.3.4
  port: 443
  password: "<your password>"
  client-fingerprint: chrome
  udp: true
  idle-session-check-interval: 30
  idle-session-timeout: 30
  min-idle-session: 0
  sni: "example.com"
  alpn:
    - h2
    - http/1.1
  skip-cert-verify: true

Common fields

TLS fields

Tip

Mihomo does not support AnyTLS+Reality, and will not support this combination in the future. If you want to hide SNI, use ECH. If you must use Reality, choose the VMess, VLESS, or Trojan protocol.

idle-session-check-interval

Interval for checking idle sessions. Default: 30 seconds.

idle-session-timeout

During checks, sessions idle longer than this value are closed. Default: 30 seconds.

min-idle-session

During checks, keep at least the first n idle sessions open. Default: n=0.