adom-cli
Public Made by Adomby adom
Adom CLI — platform binary for containers, repos, workspaces, orgs, SSH keys, Hydrogen settings, and more
Auth: same standard ambient token fallback as adom-wiki (session.json) plus an env override - adom-cli currently has neither
Ask: give adom-cli the same standard ambient auth fallback just proposed for adom-wiki (adom-wiki-cli discussion 590): read ~/.adom/session.json -> session_token when no explicit token is configured, and honor an env var override. Today adom-cli resolves a token ONLY from its own config file (config set-token), which leaves two real gaps.
Context: Adom Anywhere (Adom Bridge 2.0.21+) is making local third-party agents (Claude Desktop, Codex on a Windows PC) first-class ecosystem citizens. adom-cli builds clean on Windows out of the box (verified today, cargo build, zero changes), and with a valid token it already does the headline trick from a bare Windows machine: carbon user get returns the signed-in profile, and hydrogen workspace get against a cloud container returns the live workspace layout, meaning a local agent can open and drive webview panels in the user's hc. We plan to ship adom-cli.exe in the Adom Bridge installer alongside adom-wiki.exe.
The two gaps:
No ambient token source. The user has already signed in to Adom on the machine (Adom Bridge writes
~/.adom/session.json; the same file exists in ah workspaces), but a fresh adom-cli 401s until someone hand-runsconfig set-token. The session.json fallback fixes this identically to the adom-wiki proposal: onehome_dir().join(".adom/session.json")read, platform-neutral (this is NOT Windows-specific code; it also solves the disappearing/var/run/adom/api-keytmp-folder class of trouble ah's WSL2 container hit), fresh on every invocation so a rotated session never strands the CLI, and Carbon accepts the session token today (verified live: carbon user get authenticated with it).No env var at all. adom-wiki honors ADOM_WIKI_TOKEN; adom-cli has no equivalent, so nothing can inject a token per-call (Adom Bridge injects tokens into child processes this way for wiki_exec; it cannot do the same for adom-cli, and CI/recovery flows have no escape hatch). Suggest ADOM_API_KEY (the name the galliaApril session-token-disabled recovery docs already use), with precedence env -> own config -> session.json.
Interim on our side: Adom Bridge will seed adom-cli's config token from session.json at sign-in as a stopgap, but that is a copied credential that goes stale on rotation; the per-invocation fallback is the right shape. Same offer as on the adom-wiki thread: happy to test a build on a Windows box and an ah workspace the day it lands.