HUB
Sign inSign up
copilot-mixin logo

sbx/copilot-mixin

Verified Publisher

By Docker, Inc

•Updated 38 minutes ago

GitHub Copilot CLI overlay with authentication, network policy, and native ACP support.

Sandbox Kit
0

10K+

sbx/copilot-mixin repository overview

Digest

sha256:621a20ee2c3a…

Size

176.4 MB

Schema

v3

Pushed

38 minutes ago

Specificationspec.yaml

MIXIN

GitHub Copilot CLI overlay with authentication, network policy, and native ACP support.


Arguments
NameRequiredDefaultDescription
modelOptional

Copilot model to use (settings.json `model`); empty keeps the CLI default

reasoningEffortOptional

Reasoning effort (settings.json `effortLevel`); empty keeps the model default

Options: , none, minimal, low, medium, high, xhigh, max
versionRequired—

GitHub Copilot release carried by the image



CapabilitiesExpand a row to see its full configuration. See the full spec for the complete descriptor.
TypeRequiredDescription
com.docker.sandbox/network-policy@1Required—
com.docker.sandbox/credential@1OptionalGitHub API access for git and gh
com.docker.sandbox/credential@1OptionalCopilot request access, separable from the broader github token
com.docker.sandbox/lifecycle@1Required—
com.docker.sandbox/agent-context@1Optional—
com.docker.sandbox/agent-context@2Optional—
com.docker.sandbox/acp@1Optional—

Requiresdeb/jq, deb/util-linux, deb/libstdc++6

Apply this mixin to a sandbox

sbx run <agent> --kit sbx/copilot-mixin:latest

Make sure you have docker sbx installed

Run the following command to install sbx on your machine.

macOS
brew install docker/tap/sbx
Windows
winget install Docker.sbx
Learn more about docker sbx⁠

⁠GitHub Copilot mixin for Docker Sandboxes

This v3 mixin Kit packages GitHub Copilot⁠ for Docker Sandboxes. It adds the agent, authentication configuration, and runtime integration to a compatible workload. The workload keeps its entrypoint.

This Kit is built on Docker Hardened Images.

⁠Run

sbx run sbx/shell:latest --kit sbx/copilot-mixin:latest /path/to/workspace

When the shell opens, run copilot. This kit supplies an overlay, so it needs a workload such as Shell⁠.

A manual copilot launch keeps its native approval behavior. To match the workload's automatic tool approval, run copilot --yolo.

⁠Kit arguments

Set these arguments when creating the sandbox with --kit-arg <name>=<value>. Repeat the flag for multiple arguments. Use --kit-arg <kit>.<name>=<value> to target one kit in a composition, as in the example below.

ArgumentDefaultDescriptionAccepted values
model""Copilot model to use (settings.json model); empty keeps the CLI defaultLetters, digits, ., _, /, :, and -.
reasoningEffort""Reasoning effort (settings.json effortLevel); empty keeps the model defaultEmpty, none, minimal, low, medium, high, xhigh, or max.

An empty value keeps the agent default. The model must be available to your Copilot plan, and the selected model must support the requested effort level. These are kit configuration inputs, separate from agent command-line arguments passed after --.

sbx run sbx/shell:latest --kit sbx/copilot-mixin:latest \
  --kit-arg copilot-mixin.model=gpt-5.6-sol --kit-arg copilot-mixin.reasoningEffort=high \
  /path/to/workspace

The kit writes both values to ~/.copilot/settings.json when the sandbox is created and keeps the other settings in that file. Change them later with copilot config or /model.

⁠Authentication and configuration

Bind the Copilot credential on the host with sbx secret set copilot. Git and GitHub CLI access use the separate github service, configured with sbx secret set github. Host-bound credentials remain proxy-managed.

The copilot credential needs Copilot access. For a fine-grained GitHub token, grant the Copilot Requests permission. Working git or gh authentication alone does not establish Copilot access.

When the runtime supplies an MCP gateway, the kit registers it automatically in ~/.copilot/mcp-config.json. Existing unrelated settings and server entries are preserved.

ACP support is included. Configure an ACP client to open a non-TTY stream to the sandbox.

sbx exec -i <sandbox> copilot --acp

The sandbox supplies the isolation for agent tool execution. Launch the kit through Docker Sandboxes and configure extra tool or MCP destinations in the runtime network policy as needed.

If a tool cannot reach a service, run sbx policy log on the host to identify blocked destinations.

The agent owns the Copilot CLI install. To move to a newer release inside a sandbox, run copilot update. A new sandbox starts from the release this Kit pins.

⁠Source and security

For the Kit format and capability contracts, see the Sandbox Kit v3 specification⁠.

For runtime setup, see the Docker Sandboxes documentation⁠. For provenance, SBOM, VEX, and image verification, see the Docker Hardened Images documentation⁠.

GitHub and GitHub Copilot are trademarks of GitHub, Inc. Product names and logos do not imply sponsorship or endorsement.