Device Registration
Before syncing terminals to the cloud, you need to register your device.
Register with kexsh login
Section titled “Register with kexsh login”kexsh loginOpen this URL in your browser: https://app.kex.sh/deviceEnter code: ABCD-1234
Waiting for authorization...Login successful ✓Device registered: my-macbookkexsh uses the Device Authorization Grant flow (RFC 8628) — you never type a password in the terminal.
How device registration works
Section titled “How device registration works”- You run
kexsh loginon your machine - kexsh shows a URL and a short code
- You open the URL in any browser and sign in with GitHub
- You enter the code to approve the device
- kexsh stores a session token locally and registers the device
Your device name defaults to your machine’s hostname. Each device is tracked separately — you can see all your registered devices in the dashboard.
Token storage
Section titled “Token storage”The session token is saved to:
~/.config/kexsh/credentials.jsonThis file is created with 0600 permissions (owner read/write only). If the same machine logs in again, the existing device record is updated rather than creating a duplicate.
Removing a device
Section titled “Removing a device”Log out to revoke the session and delete the local token:
kexsh logoutYou can also remove devices from the dashboard.
See also
Section titled “See also”- kexsh login / logout — command reference
- Terminal Sync — sync terminals after registration