User Guide / Chapter 11
11. Sign-in screen and per-account profiles
11.1 Setup (GitHub example)
- Go to github.com/settings/developers → OAuth Apps → New OAuth App.
- Application name:
Nubis(any name works) - Homepage URL and Authorization callback URL: any address (for example
http://localhost). Device Flow does not use them.
- Application name:
- In the new app's settings, tick Enable Device Flow and copy the Client ID. You do not need a client secret.
- In Nubis, open Settings → Sign-in screen → GitHub.
- Enter the Client ID and the allowed accounts (GitHub login names, separated by commas). To allow a whole organization, enter its name under GitHub Organization.
- Click Test sign-in and save. Enter the code shown on screen in your browser and approve it; the settings are then saved. They are saved only after a successful test sign-in, so a wrong setting cannot lock you out.
- The sign-in screen appears the next time you start Nubis.
| Provider | Where to register | Values needed |
|---|---|---|
| GitHub | github.com/settings/developers → OAuth App, tick Enable Device Flow | Client ID |
| Google Cloud console → Credentials → OAuth client ID, type TVs and Limited Input devices | Client ID · Client secret | |
| Microsoft | Entra admin center → App registrations → Authentication → Allow public client flows | Application (client) ID, tenant (organizations or your company tenant) |
Tip Click Ask Claude on the "Sign-in screen (SSO)" card of the getting-started guide, and Claude walks you through these steps, opening each screen as you go. You enter and save the values yourself.
11.2 How sign-in works
| Item | Behavior |
|---|---|
| Method | OAuth Device Flow: approve the on-screen code in your browser. You type your password only in the browser; Nubis never receives it |
| Token | Used only to identify the account and never stored |
| Allowed | Account names (case-insensitive), @company.com (a whole domain), GitHub Organization members |
| Stay signed in | In hours. 0 = sign in on every start (maximum 720) |
| Offline grace | In days. When the sign-in server cannot be reached, you can get in if your last sign-in is within this period (0 = blocked, maximum 30) |
| Records | The last sign-in is stored encrypted in login.json. Successful and failed sign-ins go to the audit log |
11.3 Per-account profiles
With sign-in turned on, each account keeps its own data in
%APPDATA%\Nubis\users\<provider>_<account ID>\.| Stored per account | Shared |
|---|---|
| Hosts, Vault, cloud profiles, known_hosts, Claude working folder, audit log, display settings (theme, font, SFTP and so on) | Language, sign-in screen settings, last sign-in record |
- When a different account signs in, it starts empty, and no account can see another's data.
- The account ID never changes (GitHub user number, Google
sub, Microsoftoid), so renaming your account still opens the same profile. - Owner = the account that set up sign-in. Data from before sign-in was turned on is handed over to the owner on their first sign-in. Only the owner can change the sign-in settings. If you turn sign-in off, Nubis keeps using the owner's profile.
11.4 Signing out, turning sign-in off, or getting locked out
- To sign out: Settings → Sign-in screen → Sign out (sign in on next launch) (shown while sign-in is on; any account can use it). Nubis deletes the sign-in record, closes all tabs and restarts. The next start needs an online sign-in, and offline grace is unavailable until you sign in again.
- To turn it off: Settings → Sign-in screen → Off → Save (turn off sign-in) (owner only).
- If a wrong setting keeps you out, open
%APPDATA%\Nubis\settings.jsonin Notepad, change"Provider"inside"Login"to"None", and save.