Documentation Index
Fetch the complete documentation index at: https://kawax.biz/llms.txt
Use this file to discover all available pages before exploring further.
Cloud Sessions
Cloud Sessions run a session on GitHub-hosted infrastructure instead of a local Copilot CLI process. A task is reserved in Mission Control, and a cloud-sidecopilot-agent connects and drives the work.
Regular Remote Sessions make a locally running session visible from GitHub web and mobile. When you want the execution location itself to be GitHub-hosted infrastructure, use Cloud Sessions.
Prerequisites
- The user has Copilot permissions to use the Cloud Agent
- You can authenticate with a GitHub token or a logged-in Copilot CLI user
- Associate GitHub repository information when possible
- Cloud execution and remote viewing are allowed by org policy
Basic usage
SetCloudSessionOptions on the cloud field of SessionConfig. The repository information is optional in the SDK type, but it is recommended to provide it so Mission Control and the cloud agent have context.
When to send the first prompt
A Cloud Session initializes in two stages.session.create returns once the task is reserved in Mission Control, but there is a short delay before the cloud-side copilot-agent connects and emits session.start.
To reliably deliver the first prompt, subscribe to events first and send after confirming a session.start whose producer is copilot-agent.
session.start.
Difference from Remote Sessions
| Feature | Execution location | Main use |
|---|---|---|
| Remote Sessions | Local or your own server | View and operate an existing session from web/mobile |
| Cloud Sessions | GitHub-hosted infrastructure | Run work without running the Copilot CLI on a user device or your own server |
Notes
- Cloud Sessions are affected by permissions and org policy
- With
streaming: trueyou can receive real-time events such asassistant.message_delta - Permission requests behave the same as a regular session. Through the Laravel facade the default is deny-all, so specify
PermissionHandler::approveSafety()and similar as needed
Related docs
For the latest updates, see the GitHub repository.