Skip to content

Conversation

@xingyaoww
Copy link
Contributor

@xingyaoww xingyaoww commented Feb 10, 2026

Summary

This PR adds documentation for the new cloud mode feature in the PR Review workflow, which allows launching code reviews via the OpenHands Cloud API.

Related PR

This documents the cloud mode feature added in software-agent-sdk PR #1966.

Files Changed

1. sdk/guides/agent-server/cloud-workspace.mdx

  • Updated introduction to mention both approaches (OpenHandsCloudWorkspace vs Cloud API Direct)
  • Added new section: "Launching One-Off Tasks via Cloud API"
    • Comparison table of both approaches
    • Explanation of key benefits
    • Python code example showing how to start a conversation via the API
    • GitHub Actions YAML example
    • Decision guide for when to use each approach

2. sdk/guides/github-workflows/pr-review.mdx

  • Added "Review Modes" section explaining SDK vs Cloud modes
  • Added tabs in Quick Start for SDK and Cloud mode setup
  • Updated Action Inputs table with cloud mode options
  • Added Cloud Mode Workflow Example with complete YAML

3. openhands/usage/use-cases/code-review.mdx

  • Added "Review Modes" section with comparison table
  • Added "Cloud Mode Benefits" subsection
  • Added tabs in Quick Start for SDK and Cloud mode workflows
  • Updated Action Inputs table with cloud mode options
  • Added link to Cloud Workspace Guide in Related Resources

Cloud Mode Benefits Documented

Aspect SDK Mode Cloud Mode
LLM Configuration You provide LLM_API_KEY Uses your cloud-configured LLM
GitHub Access You provide GITHUB_TOKEN Uses your cloud-configured credentials
Execution Model Blocking (waits for completion) Non-blocking (fire and forget)
Required Secrets LLM_API_KEY, GITHUB_TOKEN OPENHANDS_CLOUD_API_KEY only

Preview

Added a new section to the cloud-workspace guide explaining how to use the
OpenHands Cloud API directly for launching asynchronous tasks. This is useful
for CI/CD workflows where you want to start a task and exit immediately.

Key additions:
- Introduction updated to mention both approaches (OpenHandsCloudWorkspace vs Cloud API Direct)
- New 'Launching One-Off Tasks via Cloud API' section with:
  - Comparison table of both approaches
  - Explanation of how Cloud API uses account-configured LLM and GitHub credentials
  - Python code example showing how to start a conversation via the API
  - GitHub Actions example using the PR Review workflow
  - Decision guide for when to use each approach
- Added link to PR Review workflow in Next Steps

This documents the cloud mode feature added in PR #1966 of software-agent-sdk.

Co-authored-by: openhands <[email protected]>
Updated both PR review documentation pages to include the new cloud mode option:

1. sdk/guides/github-workflows/pr-review.mdx:
   - Added 'Review Modes' section explaining SDK vs Cloud modes
   - Added tabs in Quick Start for SDK and Cloud mode setup
   - Updated Action Inputs table with cloud mode options
   - Added Cloud Mode Workflow Example with complete YAML

2. openhands/usage/use-cases/code-review.mdx:
   - Added 'Review Modes' section with comparison table
   - Added 'Cloud Mode Benefits' subsection
   - Added tabs in Quick Start for SDK and Cloud mode workflows
   - Updated Action Inputs table with cloud mode options
   - Added link to Cloud Workspace Guide in Related Resources

Cloud mode benefits:
- Only needs OPENHANDS_CLOUD_API_KEY (no LLM_API_KEY or GITHUB_TOKEN)
- Uses cloud-configured LLM and GitHub credentials
- Workflow exits immediately; review runs asynchronously
- Track progress via conversation URL in OpenHands Cloud UI

Co-authored-by: openhands <[email protected]>
Updated all references to getting an OpenHands Cloud API key to point to
the official documentation page:
/openhands/usage/cloud/cloud-api#obtaining-an-api-key

This provides a single source of truth for API key instructions.

Co-authored-by: openhands <[email protected]>
Cloud mode needs GITHUB_TOKEN to post initial comment with conversation URL.

Changes:
- Updated Review Modes tables to show GITHUB_TOKEN required for both
- Updated cloud mode workflow examples to include github-token
- Updated Action Inputs tables

Co-authored-by: openhands <[email protected]>
The OpenHands Cloud account must have GitHub access to the target repository.
Added warning and link to GitHub Installation Guide in both PR review docs.

Co-authored-by: openhands <[email protected]>
Updated documentation to reflect the refactored cloud mode:
- Both modes use the same Agent, LLM, and Conversation pattern
- The only difference is the workspace type (local vs OpenHandsCloudWorkspace)
- Both modes require LLM_API_KEY since LLM config is sent to cloud sandbox
- Removed outdated 'Cloud API Direct' documentation

Co-authored-by: openhands <[email protected]>
Cloud mode uses /api/conversations endpoint which doesn't require
LLM_API_KEY - it uses the user's cloud-configured LLM.

Co-authored-by: openhands <[email protected]>
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.

2 participants