Skip to content

HarleyVader/copilot-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Copilot CLI (Public Preview)

The power of GitHub Copilot, now in your terminal.

GitHub Copilot CLI brings AI-powered coding assistance directly to your command line, enabling you to build, debug, and understand code through natural language conversations. Powered by the same agentic harness as GitHub's Copilot coding agent, it provides intelligent assistance while staying deeply integrated with your GitHub workflow.

See our official documentation for more information.

Image of the splash screen for the Copilot CLI

🚀 Introduction and Overview

We're bringing the power of GitHub Copilot coding agent directly to your terminal. With GitHub Copilot CLI, you can work locally and synchronously with an AI agent that understands your code and GitHub context.

  • Terminal-native development: Work with Copilot coding agent directly in your command line — no context switching required.
  • GitHub integration out of the box: Access your repositories, issues, and pull requests using natural language, all authenticated with your existing GitHub account.
  • Agentic capabilities: Build, edit, debug, and refactor code with an AI collaborator that can plan and execute complex tasks.
  • MCP-powered extensibility: Take advantage of the fact that the coding agent ships with GitHub's MCP server by default and supports custom MCP servers to extend capabilities.
  • Full control: Preview every action before execution — nothing happens without your explicit approval.

We're still early in our journey, but with your feedback, we're rapidly iterating to make the GitHub Copilot CLI the best possible companion in your terminal.

📦 Getting Started

Supported Platforms

  • Linux
  • macOS
  • Windows

Prerequisites

  • Node.js v22 or higher
  • npm v10 or higher
  • (On Windows) PowerShell v6 or higher
  • An active Copilot subscription. See Copilot plans.

If you have access to GitHub Copilot via your organization of enterprise, you cannot use GitHub Copilot CLI if your organization owner or enterprise administrator has disabled it in the organization or enterprise settings. See Managing policies and features for GitHub Copilot in your organization for more information.

Installation

Install globally with npm:

npm install -g @github/copilot

Launching the CLI

copilot

On first launch, you'll be greeted with our adorable animated banner! If you'd like to see this banner again, launch copilot with the --banner flag.

If you're not currently logged in to GitHub, you'll be prompted to use the /login slash command. Enter this command and follow the on-screen instructions to authenticate.

Authenticate with a Personal Access Token (PAT)

You can also authenticate using a fine-grained PAT with the "Copilot Requests" permission enabled.

  1. Visit https://github.com/settings/personal-access-tokens/new
  2. Under "Permissions," click "add permissions" and select "Copilot Requests"
  3. Generate your token
  4. Add the token to your environment via the environment variable GH_TOKEN or GITHUB_TOKEN (in order of precedence)

Using the CLI

Launch copilot in a folder that contains code you want to work with.

By default, copilot utilizes Claude Sonnet 4.5. Run the /model slash command to choose from other available models, including Claude Sonnet 4 and GPT-5

Each time you submit a prompt to GitHub Copilot CLI, your monthly quota of premium requests is reduced by one. For information about premium requests, see About premium requests.

For more information about how to use the GitHub Copilot CLI, see our official documentation.

Custom Agents

This repository includes comprehensive custom agents:

  1. Commander Brandynette - Meta-orchestration agent coordinating all specialized agents with URL management, workflow automation (sequential/parallel/conditional/event-driven), and cross-platform integration
  2. GitHub Issue Helper - Issue triage, labeling, and management automation for this repository
  3. Reddit Devvit - Reddit app development using the Devvit platform
  4. Stripe Integration - Payment processing, subscriptions, and invoicing with MCP (verified customer: cus_T7HI2eMoOvIsqA)
  5. Unity Avatar System - Unity 6.2 LTS game development with 8 MCP server stack
  6. Hugging Face ML - AI/ML model integration for text, vision, audio, and multimodal tasks
  7. C# .NET Development - Expert C# and .NET development with async patterns, Clean Architecture, and testing
  8. Security & Code Quality - OWASP security, WCAG 2.2 accessibility, performance optimization, object calisthenics, and self-explanatory code practices
  9. Markdown Documentation - Expert markdown formatting, structure, accessibility, and documentation best practices
  10. Memory Bank - Project context management with task tracking, maintaining continuity across sessions
  11. Docker Containerization - Container optimization with multi-stage builds, security best practices, and sustainable infrastructure
  12. Database Management - Database administration, SQL optimization, and responsible data stewardship for PostgreSQL and SQL Server
  13. Python MCP Development - Building Model Context Protocol servers in Python with FastMCP, type-safe tools, and ethical API design
  14. Awesome Copilot Discovery - Meta discovery of Copilot collections, agents, and prompts

Available Collections

This repository includes 8 curated collections:

  1. Platform Integrations (14 agents) - All platform integration agents in one collection
  2. Development Workflows (3 agents) - Workflow-focused agents for common development tasks
  3. Development Languages (2 agents) - Language-specific development agents
  4. Meta Orchestration (3 agents) - Meta-orchestration and workflow automation
  5. Security & Code Quality (1 agent) - Security, accessibility, performance, and code quality best practices
  6. Documentation Tools (2 agents) - Markdown documentation and memory bank project context management
  7. Infrastructure & Data (3 agents) - Docker containerization, database management, and Python MCP development
  8. Ethical Technology (14 agents) - All agents unified by the Holly Greed Principle of sustainable, win-win development
  9. Documentation Tools (2 agents) - Markdown documentation and Memory Bank context management

📢 Feedback and Participation

We're excited to have you join us early in the Copilot CLI journey.

This is an early-stage preview, and we're building quickly. Expect frequent updates--please keep your client up to date for the latest features and fixes!

Your insights are invaluable! Open issue in this repo, join Discussions, and run /feedback from the CLI to submit a confidential feedback survey!

About

GitHub Copilot CLI brings the power of Copilot coding agent directly to your terminal.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors