Skip to main content
This page covers gavai logout, which removes ~/.config/gavai/credentials.json from the local machine. After running it, any command that needs authentication will exit with code 3 until you run gavai login again.

Synopsis

gavai logout

Arguments

None.

Flags

Run gavai logout --help for the authoritative flag list. The CLI is the source of truth.

Behavior

The command deletes the credentials file on disk. It does not revoke the tokens server-side — if you suspect the refresh token leaked, revoke the session from the Sessions tab at console.gavai.app instead of, or in addition to, running this command.

Examples

Clear the local session:
gavai logout
Verify nothing is stored:
gavai whoami
Roll a session without leaving an authenticated gap:
gavai logout && gavai login

Exit codes

See CLI overview — exit codes for the full table.

gavai login

Re-authenticate after logging out.