GitHub Copilot CLI
Install, authenticate, and resume GitHub Copilot CLI inside Daintree, including the OAuth device flow and the session resume flag.
GitHub Copilot CLI
GitHub Copilot CLI is GitHub's CLI coding agent. It runs as a process in its own Daintree terminal panel with full PTY emulation, like every other built-in agent.
| Command | copilot |
|---|---|
| Shortcut | — |
| Color | Violet (#8957e5) |
| Platforms | macOS, Windows, Linux |
Install & Authenticate
Install GitHub Copilot CLI from npm. The command is the same on macOS, Windows, and Linux.
npm install -g @github/copilotnpm install -g @github/copilotnpm install -g @github/copilotOnce it's installed, run copilot login to authenticate. Copilot uses GitHub's OAuth device flow: the CLI prints an 8-character code, opens github.com/login/device in your browser, and you paste the code to authorize the session. The token goes into your OS keychain, falling back to ~/.copilot/config.json on headless Linux and in CI.
Copilot CLI supports 13 models without configuration (Claude Sonnet, Opus, and Haiku; GPT-5.x; Gemini 2.5/3 Pro) and has a 160,000-token context window. Switch models mid-session with /model, or pin the CLI to one at launch with copilot --model <name>.
Resuming Sessions
Daintree captures Copilot's session ID on shutdown and resumes with copilot --resume=<session-id>. Quit a session cleanly with /exit so the ID is captured. For the resume mechanics across all agents, see Session Resume.
copilot isn't detected after install, confirm it's on your PATH (which copilot on macOS/Linux, where copilot on Windows), then restart Daintree. See Agent Availability for the five detection states, and Presets for launch configurations.