About GitHub Copilot CLI
GitHub Copilot CLI is GitHub's agent for the command line. Run copilot inside a repository and describe a task; it plans, edits code, runs builds and tests, and asks before each action. It ships with GitHub's MCP server, accepts custom ones, and /model switches the model.
On a CloudSat server the agent works next to your code and services instead of on your laptop, and a session inside tmux keeps going when your SSH connection drops. Billing by the hour suits short agent sessions you tear down afterwards.
The CLI is proprietary software under GitHub's own license and needs an active GitHub Copilot subscription.
What you get with GitHub Copilot CLI
- Plans and edits across files from a plain-language task
- Runs shell commands only after you approve them
- GitHub's MCP server built in, plus custom MCP servers
- Model choice with the
/modelcommand - Token-based sign-in for headless machines
GitHub Copilot CLI use cases
- Fixing failing tests on a remote build or staging box
- Exploring an unfamiliar codebase from a terminal
- Scripted changes across many files in a repository
After you deploy GitHub Copilot CLI
- Once the server is Running, SSH in and start a
tmuxsession so the agent survives disconnects. - Clone your repository,
cdinto it and runcopilot. - Type
/loginwhen prompted, or exportGH_TOKENwith a fine-grained personal access token that has the Copilot Requests permission. - Read each proposed command before approving it, especially when the session runs as root.
GitHub Copilot CLI ports
Open these in your firewall if you use one: 22/tcp SSH.
GitHub Copilot CLI FAQ
Do I need a Copilot subscription?
Yes. The CLI requires an active GitHub Copilot subscription, and an organization or enterprise can switch it off for its members. The CLI itself is proprietary, under GitHub's own license.
Can it run on a server with no browser?
Yes. Authenticate with a fine-grained token in COPILOT_GITHUB_TOKEN, GH_TOKEN or GITHUB_TOKEN, checked in that order, instead of the interactive /login flow.
Disclaimer. The GitHub Copilot CLI project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.