User Guide / Chapter 11

11. Sign-in screen and per-account profiles

11.1 Setup (GitHub example)

  1. 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.
  2. In the new app's settings, tick Enable Device Flow and copy the Client ID. You do not need a client secret.
  3. In Nubis, open Settings → Sign-in screen → GitHub.
  4. 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.
  5. 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.
  6. The sign-in screen appears the next time you start Nubis.
ProviderWhere to registerValues needed
GitHubgithub.com/settings/developers → OAuth App, tick Enable Device FlowClient ID
GoogleGoogle Cloud console → Credentials → OAuth client ID, type TVs and Limited Input devicesClient ID · Client secret
MicrosoftEntra admin center → App registrations → Authentication → Allow public client flowsApplication (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

ItemBehavior
MethodOAuth Device Flow: approve the on-screen code in your browser. You type your password only in the browser; Nubis never receives it
TokenUsed only to identify the account and never stored
AllowedAccount names (case-insensitive), @company.com (a whole domain), GitHub Organization members
Stay signed inIn hours. 0 = sign in on every start (maximum 720)
Offline graceIn 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)
RecordsThe 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 accountShared
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, Microsoft oid), 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.json in Notepad, change "Provider" inside "Login" to "None", and save.