feat(cli): dimos login — device-code cloud auth - #3522
Merged
Conversation
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## main #3522 +/- ##
==========================================
+ Coverage 74.05% 76.05% +2.00%
==========================================
Files 1283 1226 -57
Lines 124704 118922 -5782
Branches 11141 10666 -475
==========================================
- Hits 92349 90452 -1897
+ Misses 29493 25388 -4105
- Partials 2862 3082 +220
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 83 files with indirect coverage changes 🚀 New features to boost your workflow:
|
…tall type, keyring storage with 0600 fallback
spomichter
marked this pull request as ready for review
August 18, 2026 10:46
spomichter
requested review from
Dreamsorcerer,
leshy,
mustafab0 and
paul-nechifor
as code owners
August 18, 2026 10:46
leshy
previously approved these changes
Aug 18, 2026
spomichter
enabled auto-merge
August 18, 2026 11:21
spomichter
disabled auto-merge
August 18, 2026 11:28
This was referenced Aug 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
dimos login— device-code auth (RFC 8628 shaped) againstlogin.dimensional.org, built for robots: no browser or clipboard needed on the machine logging in.Approve the 8-char code from any signed-in browser (laptop/phone); the CLI polls and stores the minted API key in the XDG config dir (
0600).DIMOS_API_KEYenv var overrides the stored key everywhere. Also addsdimos logout(forgets the local key; full revocation at login.dimensional.org/keys) anddimos whoami.Server side is already live (dimos-cloud): keys are hashed at rest, revocable, single-use claim, rate-limited. The key authenticates the
/v1machine API (uploads, units, findings, assignments, payouts).Stdlib-only HTTP (urllib) — no new dependencies.