main
John Lauer Publish 0.1.0 d8a45ab

name: hydrogen-profile-menu description: >- Hydrogen's profile menu, the avatar dropdown in the top-right corner: your profile, organizations, AIs, cloud key-values, your wiki pages and packages, the forum, and logout behind a confirm dialog. Use when asked how to log out, where Your profile is, about the login page, or why am I locked out.

Hydrogen Profile Menu

Click the circular avatar in the top-right corner of Hydrogen to open it. Source: EditorNav.svelte (.profile-dropdown-button, .profile-dropdown-content).

This is separate from the Adom menu (top-left logo). Different audiences, different functions — see hydrogen-adom-menu for the Adom menu.

Where your avatar image comes from

  • Logged in via Google — Hydrogen displays the Google profile photo that Google gives us as part of the sign-in payload. You change it by changing your Google account photo.
  • Logged in another way: Hydrogen shows the avatar uploaded to your Adom profile. Change it from Your profile in this menu.

What's in the menu

Group Item What it does
Account Your profile the Public profile dialog (name, bio, company, avatar) in its own window
Your organizations your orgs, pending invitations, members
Your AIs which AIs are signed in (Claude Code, Codex, more); install or sign in to another
Your cloud key-values read-only viewer of your account's key-value store (see hydrogen-key-values)
Wiki My pages, My packages, My issues, My stars, My cloud libraries, Review queue the matching wiki.adom.inc page in a Hydrogen Browser Window
Community Forum forum.adom.inc in a Hydrogen Browser Window, signed in as you
Log out confirm dialog, then sign out

Log out — the confirm dialog

Clicking Log out opens this dialog:

┌──────────────────────────────────┐
│ Log Out                          │
│                                  │
│ Are you sure you want to log out?│
│                                  │
│              [Cancel]  [Confirm] │
└──────────────────────────────────┘
  • Cancel — dismisses the dialog, you stay signed in
  • Confirm: calls the auth proxy's /auth/logout and /auth/clear-local (which deletes ~/.config/hydrogen-desktop/hydrogen-session.txt on this computer), forgets saved browser choices for hydrogen, adom and claude domains, and routes the webview to /auth/login

After Confirm: you land on the Hydrogen login page and cannot use Hydrogen until you log in again.

Login is a gate to using Hydrogen

Hydrogen is not usable without an Adom login. There is no anonymous mode, no skip-login option once you're signed out. The (app)/+layout.svelte enforces this — if the session token is missing or expired, every protected route redirects to /auth/login.

The login itself uses the auth-intent flow (no email/password entry in Hydrogen — you complete sign-in in your default browser, then Hydrogen picks up the session). See hydrogen-adom-auth for the full flow.

After successful login, Hydrogen restores you to the route you were trying to reach (or the dashboard).

Driving it from an AI

Prefer the UI actions on the control API (GET /ui/actions lists them):

BASE="$(cat ~/.adom/hydrogen-control-url)"
curl -s -X POST "$BASE/ui/invoke" -d '{"id":"profile-menu.open"}'
curl -s -X POST "$BASE/ui/invoke" -d '{"id":"profile.keyvalues"}'
curl -s -X POST "$BASE/ui/invoke" -d '{"id":"profile.logout"}'   # still asks the user to confirm

Or click through the DOM with these selectors:

Element Selector
Avatar button (top-right) .profile-dropdown-button
Open dropdown .profile-dropdown-content
Your profile item first .profile-dropdown-content .dropdown-link
Log out item .profile-dropdown-content .dropdown-link whose text is "Log out"
Logout confirm dialog .confirm-dialog containing text "Log Out"
Confirm button .confirm-dialog .confirm-btn.confirm
Cancel button .confirm-dialog .confirm-btn.cancel

Run these snippets in the shell surface via POST /eval-in {target:"shell", js:"..."} (see hydrogen-eval): On Linux this runs over Hydrogen's frame bus in an isolated script world: the page's DOM is reachable, its JS globals are not.

// Open profile menu
document.querySelector('.profile-dropdown-button')?.click()

// Trigger logout
Array.from(document.querySelectorAll('.dropdown-link')).find(e => e.textContent.includes('Log out'))?.click()

// Confirm logout (after dialog appears)
Array.from(document.querySelectorAll('button')).find(b => b.textContent.trim() === 'Confirm')?.click()
  • hydrogen-adom-auth — the Adom session token, login flow, profile loading
  • hydrogen-claude-auth — Claude Code auth (separate from Adom auth; logging out of Adom does NOT log you out of Claude)
  • hydrogen-adom-menu — the Adom menu (top-left, different dropdown)