Skip to content

Manage active sessions

Sessions can be inspected and controlled throughout their lifecycle. Drain for clean upgrades; terminate to end one now; revoke to cut off access immediately and block reattach. See Sessions & revocation.

List active sessions and inspect one
gatewayctl list-sessions --environment prod --format json

Inspect one with gatewayctl inspect-session <client_session_id>.

Drain, terminate, or revoke a session
gatewayctl revoke-session cs_123 --reason compromised_agent

Also: drain-session and terminate-session. Batch via POST /v1/sessions/batch-revoke.

Type set in Geist, Source Serif 4, and Departure Mono.