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.
After working through this page, students should be better able to:
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.
You should already have:
The official installation page is here:
GitHub documents several installation methods. Common choices are:
brew install copilot-cli
npm install -g @github/copilot
This installation path currently requires Node.js 22 or newer.
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.
Start the CLI with:
copilot
When you launch it, GitHub Copilot CLI will typically ask you to do two things:
That trust prompt matters. Only start copilot inside a directory that you
understand and trust.
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.
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:
copilot from a project directory, not from your home directoryThe official docs describe a few features that are especially relevant for students:
copilot@path/to/file to include a file in the prompt/compact and /context for context managementAGENTS.mdIf you compare Copilot CLI with the other coding-agent tools in this guide, a few recurring ideas start to appear:
Planning before editing: Copilot exposes this directly as plan mode.Limited context: /context, /compact, and automatic compaction all exist
because the session has a limited context window.Work isolation: Copilot CLI puts less visible emphasis on subagents in the
beginner workflow than Claude Code or OpenCode. That contrast matters too.Instructions and memory: repository instructions such as
AGENTS.md guide behaviour, while Copilot Memory is a
separate layer for reusable context.After you have seen the three main coding-agent guides, the page on Agentic concepts reconnects these recurring ideas.
copilot inside a repository you trust.AGENTS.md is for