The life agentic

GitHub Copilot CLI

GitHub Copilot CLI lets you use GitHub’s agentic AI tools directly from the terminal. The command is copilot.

For students, this is often the easiest next step when GitHub Education and current Copilot availability line up: you can use GitHub’s AI tooling from the command line instead of only through a web page or editor.

If GitHub student access is unavailable or you want a different route to model access, see Model access and Claude Code.

Intended learning outcomes covered on this page

After working through this page, students should be better able to:

What it is good for

GitHub Copilot CLI can help you:

It is a good starting point for agentic workflows because it can inspect files, propose edits, and ask for permission before using tools that change the repository.

Before you install it

You should already have:

  1. a personal GitHub account
  2. active Copilot access, whether that comes through GitHub Education or another Copilot subscription
  3. a terminal you are comfortable using

The official installation page is here:

Installation

GitHub documents several installation methods. Common choices are:

Homebrew on macOS or Linux

brew install copilot-cli

npm on any platform

npm install -g @github/copilot

This installation path currently requires Node.js 22 or newer.

Install script on macOS or Linux

curl -fsSL https://gh.io/copilot-install | bash

If you are unsure, use whichever package manager you already use for the rest of your tools.

First start

Start the CLI with:

copilot

When you launch it, GitHub Copilot CLI will typically ask you to do two things:

  1. confirm that you trust the current directory
  2. log in with your GitHub account if you are not already authenticated

That trust prompt matters. Only start copilot inside a directory that you understand and trust.

A simple first workflow

Open a repository or a practice directory and try prompts like these:

Explain the structure of this project.
Show me which files I should read first to understand this codebase.
Find the main entry point and explain how the program starts.
Suggest a small improvement to the README.

These are good first prompts because they help you learn the tool without giving it a risky task.

How approvals work

When Copilot wants to use a tool that may change files or run commands, it asks for approval.

That is an important safety feature. Read the request before approving it.

As a beginner, a good rule is:

Good habits

Useful features to learn early

The official docs describe a few features that are especially relevant for students:

Notice the pattern

If you compare Copilot CLI with the other coding-agent tools in this guide, a few recurring ideas start to appear:

After you have seen the three main coding-agent guides, the page on Agentic concepts reconnects these recurring ideas.

Short version

  1. Make sure you have active Copilot access, either through GitHub Education or another Copilot subscription.
  2. Install GitHub Copilot CLI.
  3. Run copilot inside a repository you trust.
  4. Start with exploratory prompts.
  5. Approve tool use carefully.

Next step