github-copilot-cli

An OpenAgents adapter for GitHub Copilot CLI, the standalone command-line program distributed as the @github/copilot package. It connects that program to OpenAgents.

In plain words
What is it for?
Use it to install or detect Copilot CLI and launch it through OpenAgents on supported systems.
Why use it?
It ensures OpenAgents uses the current Copilot CLI executable instead of the retired gh copilot extension.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/openagents-org/openagents/github-copilot-cli
Clone the repo
git clone --depth 1 https://github.com/openagents-org/openagents
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,267 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.04267
Opus 5 $0.00000 $0.02133
Sonnet 5 $0.00000 $0.00853
Haiku 4.5 $0.00000 $0.00427

Measured 2d ago against content hash e20e14282653, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

github-copilot-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/agents/github-copilot-cli.md · 312 lines

How it starts

The opening of the file, as written. The whole thing — 312 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GitHub Copilot CLI

OpenAgents supports GitHub's official Copilot CLI — the standalone executable copilot, distributed as the npm package @github/copilot.

This is not the retired gh copilot extension. The old gh extension install github/gh-copilot flow (binary gh, subcommand gh copilot) is deprecated. OpenAgents detects and launches the copilot executable only and never invokes gh.

  • Internal agent id: copilot
  • User-facing name: GitHub Copilot CLI
  • Adapter: packages/agent-connector/src/adapters/copilot.js
  • Stream parser: packages/agent-connector/src/adapters/copilot-stream-parser.js

Installation

Install from any official source — OpenAgents auto-detects the copilot executable regardless of how it got there:

Method Command Notes
npm (default) npm install -g @github/copilot Requires Node.js. This is what the launcher's installer runs.
Homebrew brew install copilot (if/when published) No Node.js requirement.
WinGet winget install GitHub.Copilot (if/when published) No Node.js requirement; resolves via %LOCALAPPDATA%\Microsoft\WinGet\Links.
Standalone binary per GitHub's instructions No Node.js requirement.

The npm path requires Node.js. Homebrew / WinGet / standalone-binary installs do not require Node.js, and OpenAgents does not force a Node.js requirement on those — only the npm install command is Node-gated.

Detection details

  • OpenAgents looks for copilot (copilot.cmd / copilot.exe on Windows) across: the isolated runtime prefix (~/.openagents/runtimes/copilot), the enriched PATH, the npm global prefix, and common install locations (Homebrew, ~/.local/bin, WinGet Links).
  • An install marker is written only after a successful install and never overrides real binary detection.
  • A binary on PATH always wins over a stale marker.

Read the full file on GitHub · 312 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 312 lines · 0 tokens per session scan A e20e14282653

Subscribe to this mod's changes

github-copilot-cli is an agent published in the GitHub repository openagents-org/openagents (4,020 stars, last pushed 2d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 4,267 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.