Quickstart: GitHub Copilot CLI

August 5, 2026 ยท View on GitHub

Use this guide for the Tier 1 Copilot CLI path. Copilot accepts one credential, copilot_github_token. Workcell stages the token from an explicit host input. It removes the original token file and its staged copy from direct mounts.

For an authenticated start, Workcell uses a temporary token handoff. This handoff is outside provider state. The entrypoint remains PID 1 and removes the mounted file. The wrapper exports COPILOT_GITHUB_TOKEN only to the managed Copilot child.

Do not rely on host gh auth, host keychains, GH_TOKEN, GITHUB_TOKEN, host Copilot provider state (~/.copilot, ~/.config/github-copilot, ~/.cache/github-copilot), or whole-home passthrough for Copilot auth.

1. Prepare a token file

Create a host-owned file that contains only the reviewed Copilot token value:

install -m 0700 -d /Users/example/.config/workcell
install -m 0600 /dev/null /Users/example/.config/workcell/copilot-github-token.txt

Write the token value into that file using your normal secret-handling process.

2. Stage the credential

workcell auth set \
  --agent copilot \
  --credential copilot_github_token \
  --source /Users/example/.config/workcell/copilot-github-token.txt

Check the host-side policy view:

workcell auth status --agent copilot
workcell why --agent copilot --mode strict --credential copilot_github_token

The selected bootstrap path should report direct-staged. Shared GitHub CLI state is intentionally not a Copilot auth input.

3. Inspect the launch view

workcell --agent copilot --auth-status --workspace /path/to/repo
workcell --agent copilot --inspect --workspace /path/to/repo

The managed runtime sets COPILOT_HOME and COPILOT_CACHE_HOME to session-local paths. It does not mount host Copilot state, keychains, or host GitHub CLI auth. It does not copy the token to COPILOT_HOME. Workcell also disables Copilot custom instructions on the managed path.

4. Launch

workcell --agent copilot --workspace /path/to/repo

For a lower-assurance development command lane:

workcell --agent copilot --mode development --workspace /path/to/repo -- bash -lc 'git status'

Maintainers must run live provider-authenticated certification of a non-destructive copilot -p launch with staged credentials before signing changes that promote or materially alter the Copilot support claim.