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
name-cert-verify: example.com
shadow-tls-opts:
version: 3
password: shadow-tls-password
restls-opts:
password: restls-password
version-hint: tls13
jls-opts:
username: jls-user
password: jls-password
reality-opts:
public-key: xxxx
short-id: xxxx
tlsmirror-opts:
primary-key: xxxx
network: tcp
smux:
enabled: false

Common fields

TLS fields

Required, VMess user ID.

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

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

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

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

Protocol parameter. Enables encrypted length blocks.

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

See Transport configuration.