Learning resourcesReviewed · GitHub

GitHub Copilot SDK: Multi-tenancy and server deployments

This GitHub Copilot SDK guide is for developers building multi-user AI backends, but the application must enforce session ownership and storage isolation. It explains explicit tool access, per-session GitHub credentials, runtime connections, idle cleanup and custom session filesystems.

Researched 15 Nov 2026

In short.

This GitHub Copilot SDK deployment guide is for teams embedding AI agents in shared servers, but user separation still depends on application authorization and storage design. It documents mode: "empty", per-session credentials, runtime storage and session filesystem providers. Its most consequential caveats concern shared permission records, host filesystem access and settings that must be configured on an external runtime itself. No examples were executed; deployment performance, operating costs and licensing terms are unknown.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage is the complete supplied Multi-tenancy and server deployments page at [https://docs.github.com/api/article/body?pathname=/en/copilot/how-tos/copilot-sdk/setup/multi-tenancy], including its prose, tables, code samples and storage-boundary caveats. Linked authentication, scaling, backend setup, BYOK, cloud-session, persistence and feature pages are excluded, as is the linked diagram image itself. The supplied page contains no licensing or deprecation notice. No code, runtime behavior, security properties, performance or deployment journeys were executed or independently verified.

The overview

identity

The resource is GitHub’s documentation page titled Multi-tenancy and server deployments, available at [https://docs.github.com/api/article/body?pathname=/en/copilot/how-tos/copilot-sdk/setup/multi-tenancy]. It explains SDK-level configuration for backend services serving multiple people, tenants, workspaces or integration accounts.

Its focus is the division of responsibility between the application and the Copilot runtime: the application routes requests and authorizes access, while the runtime provides documented session-specific state, authentication and tool configuration.

assessment

The guide is useful when deciding how to embed Copilot-powered agents in an existing backend. Its strongest contribution is explaining how apparently separate sessions can still share host capabilities or remembered permissions unless the application configures the boundaries deliberately.

It provides concrete configuration choices and failure modes, but does not establish that a particular deployment is secure, scalable or operationally ready. Beginners get an explanation of the responsibilities involved; implementation assumes familiarity with backend authentication, processes and storage.

users

The intended users are developers of SaaS products, partner integrations, internal platforms and backend services handling concurrent users. It also addresses applications where several SDK clients connect to one separately managed Copilot runtime.

The material is particularly relevant to teams that need each user’s GitHub identity, permitted tools and conversation state to remain associated with the correct session. A beginner would need additional implementation guidance for authentication, storage providers and deployment infrastructure.

capabilities

The page documents mode: "empty" for removing ambient CLI capabilities, sessionIdleTimeoutSeconds for cleanup, baseDirectory for runtime storage, sessionFs for application-backed session files, external runtime connections and per-session GitHub credentials. It recommends rotating credential providers when short-lived tokens require refresh.

It also explains explicit tool and built-in skill allowlists, session ownership checks and integration attribution. The integration ID is supplied through GITHUB_COPILOT_INTEGRATION_ID and becomes the Copilot-Integration-Id header on Mission Control requests; the page says it is not a first-class SDK option.

Using it

requirements

An implementation needs a Copilot SDK client, a runtime and a backend that authenticates users, records session ownership and authorizes session operations. User-specific execution requires per-session GitHub credentials. Custom tools require their own implementations and authorization; naming tools in an allowlist does not supply those implementations.

Configuration examples cover TypeScript, Python, Go, .NET, Java and Rust. The page lists public session filesystem interfaces for all of these except Java, for which it says a public sessionFs option is not verified. Required SDK/runtime versions, installation prerequisites and account entitlements are not specified.

mechanism

The runtime associates model-list caching, state and session credentials with individual sessions. State normally lives under COPILOT_HOME/session-state/{sessionId}. A session token supplies the requesting user’s GitHub identity, while a client-level token authenticates the runtime process.

In empty mode, ambient OS tools are disabled and runtime-bundled built-in skills are excluded by default. Applications explicitly allow tools and selected built-ins, and can opt into their own custom skills. Host filesystem access remains shared through the runtime process if host tools are exposed.

A session filesystem provider redirects session file operations and durable permission records into application storage. The runtime adds no session-ID partitions to those records: sessions using the same provider files share remembered grants. Separate namespaces are therefore necessary where grants must remain separate, and resumed sessions must reconnect to their original namespace.

Provider-backed permission operations do not fall back to host consent files, including when the provider fails. Without sessionFs, remembered permissions and related settings remain host-backed in both empty and copilot-cli modes. Storage routing also preserves the existing lifetimes of temporary approvals and rejections.

setup

For a shared runtime, the guide requires empty mode, unique session IDs, application-owned session metadata and ownership checks before resuming or deleting sessions. It recommends per-session credentials, narrowly scoped tool allowlists, idle timeouts and explicit deletion of completed workflow sessions.

When the SDK starts the runtime, baseDirectory controls COPILOT_HOME and the runtime’s storage location. When connecting to an existing runtime, configure its storage and idle timeout on the runtime process itself; client-side settings do not relocate or configure that external process.

For provider-backed storage, authorize namespace access and isolate permission metadata and transcripts together. Applications sharing approval files across provider endpoints or processes must coordinate concurrent writes, because the runtime’s serialization covers only the same endpoint and process.

example

The page illustrates a support backend that creates a user-specific session, requests gpt-5.4, supplies the user’s GitHub token and allows custom:lookupOrder and custom:createTicket. This shows where identity and tool permissions enter session creation; it does not include complete order lookup or ticket creation implementations.

In such an application, the backend would also need to establish which orders the user may access and check session ownership before later operations. The sample model name does not establish availability for a particular account. Nothing was executed.

Assessment & evidence

limitations

Empty mode does not establish a separate operating-system boundary for every user. SessionFS also does not govern shell execution. Its protection against direct writes to approval metadata is described as defense in depth; providers must prevent writable aliases, and hosts must protect backing storage exposed to arbitrary code.

The Python example uses PermissionHandler.approve_all and therefore does not demonstrate a restrictive permission policy. Permission handling needs an application-specific design.

The page delegates topology, load balancing and broader persistence guidance to linked pages. It supplies no execution results, adversarial isolation tests or production performance evidence. Those behaviors remain unassessed.

reasoning

The documented boundaries imply that unique session IDs and individual GitHub tokens are necessary parts of user separation, but cannot establish it alone. Application ownership checks govern access to sessions, tool authorization governs available actions, and storage namespaces determine whether durable permissions are shared.

This makes the guide most useful as an implementation design reference. A shared runtime fits teams prepared to implement these controls; a requirement for separate process credentials or a stronger isolation boundary points toward the per-user runtime pattern described on the page.

alternatives

The page compares three deployment patterns. An isolated CLI process per user offers its strongest described isolation boundary at higher resource cost. A shared CLI runtime in empty mode reduces duplication while requiring careful application controls. A hybrid arrangement sends heavier work to cloud sessions and lighter work to local sessions, adding routing and policy responsibilities.

It does not compare competing SDKs or providers. Detailed implementation guidance for the isolated and hybrid patterns resides in linked pages and is outside this page’s scope.

evidence

The evidence consists of the complete supplied GitHub documentation page, including configuration tables, language examples, isolation descriptions, pattern comparisons and pitfalls. It supports claims about the behavior GitHub documents.

No implementation source, runtime output, independent measurements or deployment results accompany the page. Its documented guarantees have not been independently verified here, and linked material supplies no additional evidence within this scope.

Access & freshness

costs

Prices, subscription requirements, model charges, quota amounts and infrastructure costs are not supplied, so total operating cost is unknown.

The page describes a separate runtime per user as having higher resource cost and a shared runtime as more efficient. These are qualitative trade-offs: it provides no capacity measurements, latency results, memory figures or quantified savings.

rights

The supplied page does not state licensing or redistribution terms for its documentation, sample code or the SDK. Commercial-use permissions and contractual data-handling obligations are unknown from this evidence.

freshness

The supplied page was captured on 2026-11-15 at 15:16:19.595 UTC. It does not identify a publication date, update date or SDK/runtime release version, so compatibility with a particular installed release is unknown.

Version-sensitive details include Java’s unverified public sessionFs interface, the environment-only integration ID and language-specific connection APIs. The gpt-5.4 examples do not establish continuing model availability or account eligibility.

actions

Start by choosing the deployment boundary your application needs, then confirm that the installed SDK and runtime expose the required options. For a shared runtime, implement empty mode, per-session credentials, session ownership checks, authorized tools, isolated storage namespaces and session cleanup.

Before relying on the design, validate cross-user resume and deletion rejection, tool access, separation of remembered permissions, permission persistence after resuming and concurrent approval updates in the intended environment. Confirm current pricing, entitlements and licensing separately. None of these outcomes is established by the page’s examples.

Evidence for this report

selected-page.txtselected · checked 2026-11-15