Skip to content

VMess

proxies:
- name: "vmess"
  type: vmess
  server: server
  port: 443
  udp: true
  uuid: uuid
  alterId: 0
  cipher: auto
  packet-encoding: packetaddr
  global-padding: false
  authenticated-length: false

  tls: true
  servername: example.com
  alpn:
  - h2
  - http/1.1
  fingerprint: xxxx
  client-fingerprint: chrome
  skip-cert-verify: true
  reality-opts:
    public-key: xxxx
    short-id: xxxx

  network: tcp

  smux:
    enabled: false

Common fields

TLS fields

uuid

Required, VMess user ID.

alterId

Required. If not 0, the legacy protocol is enabled.

cipher

Required, encryption method. Supports auto/none/zero/aes-128-gcm/chacha20-poly1305.

packet-encoding

UDP packet encoding. Empty means raw encoding. Available values: packetaddr (supported by v2ray 5+)/xudp (supported by xray).

global-padding

Protocol parameter. If enabled, traffic is randomly wasted. It is enabled by default in v2ray and cannot be disabled there.

authenticated-length

Protocol parameter. Enables encrypted length blocks.

network

Transport layer. Supports ws/http/h2/grpc. If unset or set to another value, TCP is used.

See Transport configuration.