Repository navigation
feat(cli): --cloud flag renders through OpenScreenShot Cloud - #19
Merged
Merged
Conversation
Co-Authored-By: padmanabh <pghqdev@proton.me>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
…key for --cloud Co-Authored-By: padmanabh <pghqdev@proton.me>
Contributor
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
openscreenshot | a7e7fa6 | Commit Preview URL Branch Preview URL |
Oct 17 2026, 11:34 PM |
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.
Summary
Adds a
--cloudflag toopenscreenshot shotplus anauth login/logoutflow so the CLI can render through OpenScreenShot Cloud's public API instead of driving a local Chrome — useful on machines/CI without a browser. Cloud is reached only over its public HTTP API per AGENTS.md.captureCloud()inmcp/src/cli.ts: POST{base}/v1/screenshotwithAuthorization: Bearer <key>;--formatselects png/jpeg/webp/pdf/html/markdown and the default output filename gets the right extension.--key→OPENSCREENSHOT_API_KEY→ key stored byauth login(~/.openscreenshot.json, mode 0600). Base URL:--cloud <url>orOPENSCREENSHOT_CLOUD_URL(defaulthttps://cloud.openscreenshot.app).auth loginis a two-step email-code flow against the cloud web app:POST /api/auth/email-otp/send-verification-otp, thenPOST /api/auth/sign-in/email-otp+POST /api/cli-key(new endpoint in the companion openscreenshot-cloud PR) which returns a one-timeosc_live_plaintext that gets stored.error.message/error.code), e.g.cloud render failed: over quota. Bare--clouddoesn't swallow the next flag as a base URL.shot writes a png file) needs a real Chrome — fails identically on clean main, unrelated.Local capture is unchanged when
--cloudis absent.Link to Devin session: https://app.devin.ai/sessions/4206df0ee04f4da7a00a9a1b42c2c8cf
Open in Devin Desktop: https://app.devin.ai/desktop/session/4206df0ee04f4da7a00a9a1b42c2c8cf?variant=devin
Requested by: @PGHQdev