Synopsis
Description
Clears your local session: the refresh token, cached project keys, and any per-user session files in ~/.capy/auth/.
Master keys survive logout. The double-wrapped key.enc files in ~/.capy/orgs/{orgId}/users/{userId}/ remain on disk - they’re already encrypted at rest, and you need them to log back in without re-redeeming every invite. To fully wipe Capy from a machine, also delete ~/.capy/.
Example
$ capy logout
Logged out. Session cleared.
If there’s no active session:
$ capy logout
No active session.
See also
Last modified on May 20, 2026