Skip to content

docs(cli): document device-code login for headless environments#1429

Open
SahilAujla wants to merge 3 commits into
mainfrom
docs/cli-device-code-login
Open

docs(cli): document device-code login for headless environments#1429
SahilAujla wants to merge 3 commits into
mainfrom
docs/cli-device-code-login

Conversation

@SahilAujla

Copy link
Copy Markdown
Collaborator

What

@alchemy/cli 0.18.0 added an OAuth 2.0 Device Authorization Grant (RFC 8628) login flow so alchemy auth works in headless and remote environments (GitHub Codespaces, sandboxes, SSH, CI) where the browser cannot reach the CLI's localhost callback.

This documents it on the Alchemy CLI page:

  • New Headless and remote environments subsection under Authenticate with the alchemy auth login --device-code command and a note that plain alchemy auth auto-detects remote/non-interactive sessions
  • New row in the Auth and config command reference table

Context

CLI side: OMGWINNING/alchemy-cli#99 (released as 0.18.0). Server side: OMGWINNING/authchemy#546-#548, live in prod.

🤖 Generated with Claude Code

@alchemy/cli 0.18.0 added an OAuth 2.0 Device Authorization Grant
(RFC 8628) so alchemy auth works in Codespaces, sandboxes, SSH, and CI
where the browser cannot reach the CLI's localhost callback. Add a
Headless and remote environments subsection to the Authenticate section
and a command-reference row for alchemy auth login --device-code.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@SahilAujla SahilAujla requested a review from a team as a code owner July 6, 2026 18:20
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

🔗 Preview Mode

Name Status Preview Updated (UTC)
Alchemy Docs ✅ Ready 🔗 Visit Preview Jul 6, 2026, 7:05 PM

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6e956f2967

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread content/tutorials/build-with-ai/alchemy-cli.mdx Outdated
SahilAujla and others added 2 commits July 6, 2026 14:27
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Enumerate exactly which environments switch to the device flow on their
own (Codespaces, Gitpod, Replit, Cloud Shell, Coder, SSH, and
non-interactive sessions) and make explicit that the flag works
everywhere, with the browser-login timeout pointing at it as the
fallback.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@SahilAujla

Copy link
Copy Markdown
Collaborator Author

Note for merge timing: the latest revision documents behavior that ships with OMGWINNING/alchemy-cli#103 (Replit, Cloud Shell, and Coder auto-detection plus the timeout hint). That PR auto-publishes on merge, so land it before this page goes live.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant