Skip to main content

GitHub Copilot CLI

Install, authenticate, and resume GitHub Copilot CLI inside Daintree, including the /login flow, the OS keychain, and the --resume session flag.

Reviewed

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.

Commandcopilot
ShortcutNone by default; assign one in Keyboard Shortcuts
RenderingCopilot's own; Daintree passes no screen-mode flag
Resumecopilot --resume=<session-id>. No resume-latest fallback
Quit command/exit
Permission bypassNone declared
PlatformsmacOS, Windows, Linux

Install & Authenticate

See GitHub's current setup instructions for installation and sign-in.

GitHub-backed Copilot CLI use needs Copilot access, and an organization or enterprise administrator can turn it off. Current Copilot also supports your own model-provider keys without GitHub authentication; GitHub-hosted features still need sign-in. GitHub publishes it through npm (Node.js 22 or later), WinGet, Homebrew, and an install script. Daintree's install prompt offers npm, with the native curl installer also available on Linux through the Linux release update.

npm install -g @github/copilot

Or brew install --cask copilot-cli, or curl -fsSL https://gh.io/copilot-install | bash.

npm install -g @github/copilot

Or winget install GitHub.Copilot. Copilot CLI on Windows needs PowerShell 6 or later.

npm install -g @github/copilot

Or brew install --cask copilot-cli, or curl -fsSL https://gh.io/copilot-install | bash.

On first launch, if you aren't already signed in to GitHub, run the /login slash command and follow the prompts; copilot login does the same from a shell. Copilot keeps the token in your OS keychain (service copilot-cli); when no keychain is available it offers to store it in plain text at ~/.copilot/config.json. For automation, use a fine-grained personal access token with the Copilot Requests permission in COPILOT_GITHUB_TOKEN, GH_TOKEN, or GITHUB_TOKEN, checked in that order.

Daintree probes only ~/.copilot/config.json, so keychain and token-variable users show No credentials detected while still launching normally. Daintree's badge ignores the GitHub CLI's own login. Copilot itself can use gh authentication as a fallback when no other credential is available.

Daintree's bundled model list for Copilot has 13 entries across Claude, GPT-5.x and Gemini models, with a 160,000-token context estimate. Copilot's own /model picker is the authority on what your plan offers; switch there mid-session, or pin one at launch with copilot --model <name>.

How Daintree Launches It

Daintree passes no screen-mode flag, and strips Copilot's mouse-reporting requests so native text selection keeps working. Copilot's Ink interface needs the pasted text and the Enter that submits it timed apart, so Daintree waits briefly before sending Enter, and sends /exit as a single write on shutdown. Daintree declares no permission-bypass flag for Copilot.

Copilot is wired for the Daintree Assistant only at an experimental tier, which keeps it out of the assistant's agent picker.

Daintree MCP servers

When the MCP server is on (Settings > MCP server) and the project's Agent integrations setting is Core or Full, or the project has turned on a plugin's agent tools, each new Copilot launch gets those servers through --additional-mcp-config @<file>. The file is written with owner-only permissions under Daintree's data folder and deleted when the terminal exits. It adds to your own MCP servers, and nothing is written into your Copilot configuration or the repository.

Resuming Sessions

Daintree captures Copilot's session ID on shutdown and resumes with copilot --resume=<session-id>. Quit with /exit so the ID is captured: Copilot declares no resume-latest fallback, so a missed capture means the next launch starts a fresh session rather than reopening the most recent one.

The store the ID points at is local (~/.copilot/) and global rather than path-keyed, so a captured ID resumes from any folder. A resumed session does carry the original absolute path in its workspace metadata, so after moving a project you may need /cwd <new path> to point it at the new location. See Session Management for how resumable sessions are stored and pruned.

Launch flags, custom presets and display titles are covered in Agent Presets. What the working, waiting and exited badges on a running agent mean is covered in Agent States.

Tip
If copilot isn't detected after install, confirm it's on your PATH (command -v copilot on macOS/Linux, where.exe copilot on Windows), then restart Daintree.

Integration reference

This guide describes Daintree's checked-in integration. Its agent definition records the launch command, install guidance, authentication probes, rendering capabilities, MCP wiring, and resume support. Authentication badges report local evidence; the CLI still owns sign-in and provider access. After changing an installation, use Re-check in Settings > CLI agents; restart Daintree if its inherited PATH has changed.