In short.
GitHub's cloud sessions guide teaches application developers to run Copilot coding tasks on GitHub-hosted compute, with a startup race that can silently discard the first prompt. Developers must wait for session.start from producer copilot-agent before sending. The page also explains repository association, streaming responses, GitHub session URLs and resumption. Access depends on cloud-agent entitlement, authentication and organization policies. Prices, minimum SDK versions and measured reliability are not established, and the documented behavior has not been tested here.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete selected Cloud sessions page at its exact source address: prerequisites, six-language creation examples, first-prompt timing, session URLs, repository association, resumption, organization policies, integration routing, endpoint overrides, comparison and troubleshooting. Linked authentication, streaming, remote-session and multi-tenancy pages are excluded and their contents are not assessed. No code or sessions were run. Installation requirements, pricing, licensing, compatibility and production behavior remain unknown where the selected page does not establish them.
The overview
Identity
This is GitHub's Cloud sessions documentation for the Copilot SDK. It explains how an application creates Copilot work that executes on GitHub-hosted compute and appears in GitHub's agents panel. The source address is [https://docs.github.com/api/article/body?pathname=/en/copilot/how-tos/copilot-sdk/features/cloud-sessions].
The resource is an implementation guide. It includes session-creation examples for TypeScript, Python, Go, .NET, Java and Rust, with more detailed event-handling examples in TypeScript.
Assessment
The guide is useful when an application's Copilot tasks should execute on GitHub infrastructure. Its most consequential detail is that successful session creation does not mean the worker is ready: an early send can return a messageId even though the prompt never reaches the worker.
It provides concrete implementation and troubleshooting guidance, but does not establish production reliability, task quality, operating cost or SDK compatibility through measurements.
Users
The intended readers are developers building applications or integrations around Copilot, including repository assistants, pull-request tools, issue-triage flows and deployment workflows. Developers building live chat interfaces also get guidance on streaming responses and retaining session links.
Beginners should understand asynchronous calls, event subscriptions and GitHub repository identifiers before applying the examples. Experienced developers will find the startup timing, policy errors and session lifecycle details especially relevant.
Capabilities
The documented feature creates hosted sessions, associates them with a repository and optional branch, and supports continuing an existing session through the SDK's standard resume API. Repository association supplies context and helps the session appear under the appropriate repository in the agents panel.
Applications can receive incremental assistant output when streaming is enabled and capture a GitHub task URL from session.info. The page establishes these integration capabilities, but provides no evidence about how accurately the agent completes particular coding tasks.
Using it
Requirements
The user needs Copilot access with cloud-agent entitlement. The session must authenticate to GitHub using a user token or a logged-in Copilot CLI identity, and organization policies must permit remote control and viewing from cloud surfaces. Cloud sandbox policies can also prevent task creation.
Repository association is optional in the SDK type but recommended. When supplied, it requires owner and name; branch is optional. The page does not provide installation instructions, minimum SDK versions or a complete authentication setup.
Mechanism
The cloud option on session creation requests GitHub-hosted execution. Creation completes after task reservation; the worker connects later and emits session.start with producer copilot-agent. Applications must await that event before sending the first prompt. Subsequent sends use the already-started session.
After connection, session.info supplies the session URL when infoType is remote. The URL follows [https://github.com/copilot/tasks/{sessionId}]. Cloud sessions do not require remote.enable(), which serves the separate local-session sharing flow.
GITHUB_COPILOT_INTEGRATION_ID supplies the Copilot-Integration-Id routing and attribution header. SDK-created cloud sessions use the internal copilot-developer-sandbox agent slug; this does not indicate use of the local Windows sandbox.
Setup
Configure authentication and create a session using the language's cloud option, repository metadata and permission handler. Set streaming to true when the interface needs assistant.message_delta events; otherwise, the documented assistant output signal is the final assistant.message.
Subscribe to session.start before sending, accept the event only when its producer is copilot-agent, and place a timeout around the wait. The guide suggests 60 seconds as an example timeout. Subscribe early to session.info, filter for infoType remote, and retain its URL in application state because the event is not automatically replayed.
The examples automatically approve permission requests through approve-once responses or approve-all handlers. They do not demonstrate interactive permission decisions; developers should adapt this behavior to their application's intended approval rules.
Example
The TypeScript example creates a streaming cloud session associated with github/copilot-sdk. It installs a session.start listener, waits for producer copilot-agent, then sends the prompt "Summarize the README".
A repository assistant could use this pattern to show incremental responses and retain the GitHub task link for later access. This is an illustrative application of the documentation; no session was created and no resulting README summary was observed.
Assessment & evidence
Limitations
The documented startup failure is difficult to detect from the send result alone: the wrapper can swallow the remote-starting error while returning a new messageId. That identifier therefore does not establish that the first prompt reached the worker.
A policy_blocked creation failure represents an authorization or organization-policy outcome. Retrying without a policy change is not expected to succeed. The cloud option applies only to new sessions; resumption uses saved session metadata and the standard resume path.
COPILOT_MC_BASE_URL overrides the session endpoint normally derived from the configured Copilot API URL. The page says this may be needed for GitHub Enterprise Server, but requires confirmation of the value and support status with GitHub before production use. Enterprise compatibility, data retention, data residency and resource limits are not established here.
Reasoning
The architectural fit depends on where the coding work should execute. Cloud sessions suit applications that need GitHub-hosted execution and visibility in GitHub's agents panel, provided users have the required access.
The implementation guidance makes readiness and event handling central application responsibilities. A robust integration must distinguish task reservation from worker readiness, retain the session URL and present policy failures clearly. These conclusions follow from the documented lifecycle, without measured evidence of reliability or performance.
Alternatives
The page compares cloud sessions with remote sessions. Remote sessions keep execution on the local machine or the application's server while exposing that session through GitHub web or mobile, using remote: true on the client or session. Cloud sessions create the hosted task through the cloud creation option.
Both use the standard resume API, and neither is a Windows sandbox setting. Remote sessions are the documented alternative when execution should stay where the SDK runtime already runs. The linked remote-session guide and other products are not assessed.
Evidence
The supporting source is the complete supplied GitHub Cloud sessions documentation page. It contains prerequisites, creation examples in six languages, event-handling examples, configuration details, a comparison table and troubleshooting guidance.
The findings describe documented behavior. No code was executed, and no live session, dropped prompt, streaming response, policy failure or resumed session was independently observed. The page supplies no benchmark or measured reliability results.
Access & freshness
Costs
Cost is unknown. The page requires Copilot access with cloud-agent entitlement but gives no subscription prices, usage allowances, compute charges or per-session billing rules. It does not establish whether an existing subscription covers a particular workload.
Rights
This page does not state licensing or redistribution terms for the documentation, code examples or SDK. It also does not establish rights to generated output. These questions require the applicable GitHub licenses and service terms; cloud-agent entitlement alone does not answer them.
Freshness
The supplied source was captured on 24 November 2026 at 09:16:25.037 UTC. It states no publication date, last-updated date, SDK release number or compatibility range.
The age of the instructions and their applicability to any particular installed SDK version are unknown. The startup race, event payloads and endpoint behavior should be confirmed against the version intended for deployment.
Actions
First confirm cloud-agent entitlement, authentication and organization policies, then choose the repository and branch that match the user's task. Confirm pricing and applicable terms separately because this page does not establish them.
Implement the worker-start wait with a timeout, streaming where needed, early URL capture and an appropriate permission handler. Before deployment, verify first-prompt delivery, policy-blocked handling, URL retention across interface remounts and standard session resumption using the intended SDK version.
For GitHub Enterprise Server, confirm support and the correct endpoint with GitHub before relying on COPILOT_MC_BASE_URL.
