kexsh login / logout
Connect your local kexsh installation to kexsh cloud.
kexsh login
Section titled “kexsh login”Authenticate using the Device Authorization flow (RFC 8628). No password is entered in the terminal — you approve the login in your browser.
kexsh loginOpen this URL in your browser: https://app.kex.sh/deviceEnter code: ABCD-1234
Waiting for authorization...Login successful ✓Device registered: my-macbookWhat happens
Section titled “What happens”- kexsh requests a device code from the server
- You open the URL and enter the code in your browser
- You sign in with GitHub and approve the request
- kexsh receives a session token and stores it locally
- Your device is registered with kexsh cloud
The token is saved to ~/.config/kexsh/credentials.json with 0600 permissions.
kexsh logout
Section titled “kexsh logout”Revoke your session and delete the local token.
kexsh logoutLogged out ✓This revokes the server-side session and removes credentials.json. Your terminals continue running locally but cloud sync stops.
See also
Section titled “See also”- Device Registration — how devices are tracked
- Terminal Sync — sync terminals after login