carlos / platform Public

docs: carlos auth login prints the approval link; --no-wait and --wait

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 7611b05dfaf3f7c26a527f36958bbc44547c1ff5 parent 6f6b817
1 file changed, +12 −6
  • docs/site/cli.md +12 −6

Intent

Human

<task-notification> <task-id>a860323caa5890f17</task-id> <tool-use-id>toolu_012EX2ruUaT1L3iU5UUCKqKc</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a1de5273-c148-49b8-8267-3dee9d49c9c1/tasks/a860323caa5890f17.output</output-file> <status>completed</status> <summary>Agent "Implement Task 4: CLI link + relay" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>Status: DONE (fix round 1) Commit: 6f6b817b "carlos auth login --wait: the code's own expiry ends the attempt" Tests: `go test . -run 'TestAuth|TestPendingLogin|TestAgentLabel' -count=1` passes (23.7s). The darwin and windows builds pass, and gofmt and go vet are clean. I did not run the tests against the old code first, so there is no RED evidence for this round. - **Finding 1:** A `--wait` that runs to the code's own `ExpiresAt` now returns a terminal expired error, so the pending file is removed. - **Finding 2:** The deadline is now the earlier of `ExpiresAt` and now plus a cap, computed directly. An already-expired file is cleared with no polling and returns the expired error. The cap is a new `loginWaitCap` variable (default `maxLoginWait`), so a test can cut a wait short. - **Finding 3:** "transient keeps" now returns 502s and is cut by the cap well before `ExpiresAt`, and the file survives. I added "own expiry clears" and "already expired does not poll" (0 polls, prompt return, file gone). Concerns: none. Report (fix section appended): /home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-agent-login-link/.superpowers/sdd/2026-11-07-agent-login-link/task-4-report.md</result> <usage><subagent_tokens>64200</subagent_tokens><tool_uses>2</tool_uses><duration_ms>64727</duration_ms></usage> </task-notification>

diff --git a/docs/site/cli.md b/docs/site/cli.md
index 9804272bd..f1d627498 100644
--- a/docs/site/cli.md
+++ b/docs/site/cli.md
@@ -51,18 +51,24 @@ the platform holds itself to, and a command that broke it would be a bug.
### carlos auth
-Logs this terminal in to a console. `carlos auth login` prints a short code
-that you approve in a browser already signed in to that console, and the
-browser does not have to be on this machine, so this works over SSH. The
-token lands in `~/.carlos/credentials` at mode 0600, one entry per console,
-so a laptop can hold credentials for the flagship and your own deployment at
-once.
+Logs this terminal in to a console. `carlos auth login` prints a link to
+open and a short code. Open the link in a browser already signed in to that
+console, check that the page shows the same code, and approve. The browser
+does not have to be on this machine, so this works over SSH. The token lands
+in `~/.carlos/credentials` at mode 0600, one entry per console, so a laptop
+can hold credentials for the flagship and your own deployment at once.
```sh
carlos auth login
carlos auth whoami
```
+Some agents, Claude Code among them, only show you a command's output when
+the command ends. For those, run `carlos auth login --no-wait`. It prints the
+link and the code, then exits. Show the link to the person, and once they
+have approved it, run `carlos auth login --wait` to finish. A code lasts ten
+minutes. If it runs out, start again with `--no-wait`.
+
Do not do this on a box. A box has no browser and no human, and the
long-lived token you would leave behind is a standing credential nobody is
watching; pass `--owner <address>` to