GitHub Copilot CLI in 60 seconds
AI toolsTerminal agentAWS: Amazon Q Developer CLI
What it is
The copilot command: an agent in your terminal. Interactive sessions with slash commands, or copilot -p for one prompt, with --allow-tool and --deny-tool to control what it may run.
Simulate it »✅ Use it when
- Working in the terminal without switching windows
- Scripts and CI jobs (programmatic mode)
- File tidying and shell scripts, with approval
🚫 Not the best fit when
- --allow-all-tools on tasks you don’t trust
- Machines where the org policy disables the CLI
💰 Price feel: ●○○○ Free or very cheap
Included with Copilot plans; uses your plan’s allowance
Illustrative pay-as-you-go list prices at approximate exchange rates. Use the Azure pricing calculator for real quotes.
Simulate it
🖱️ Drag to rotate · scroll or pinch to zoom
Copilot CLI
The same agent in the terminal: copilot for a session with slash commands, copilot -p "…" for one prompt, and --allow-tool / --deny-tool to control what it may run.
🤔 What happens if…
Read this tour as text
- Ask mode. Ask answers questions about code and concepts and can suggest code blocks. It doesn’t change your files by itself.
- Edit mode (Copilot Edits). Edit applies changes to the files you choose, across several files at once. You see each diff and Keep or Undo it.
- Agent mode. Agent works out which files to touch, edits them, runs commands and tests, reads errors and keeps going until the task is done. It asks before running terminal commands unless you’ve approved them.
- MCP servers add tools. The Model Context Protocol (MCP) lets Copilot use external tools: the GitHub MCP server, a browser, a docs search or your own API. Configure servers in
.vscode/mcp.json(VS Code) or with/mcp(CLI). Organizations can restrict which servers are allowed. - Sessions and sub-agents. Long tasks fill the context window. Agent sessions keep work separate, and a sub-agent can do a side task in its own context and hand back only a summary.
- Copilot coding agent. Assign an issue to Copilot on github.com (or
/delegatefrom the CLI). The coding agent works in a GitHub Actions environment on its own branch and opens a draft pull request with its changes. - Review stays human. You review the agent’s PR like any other. Copilot code review can comment and suggest changes, but its review doesn’t count as an approval. A person merges.
- Copilot CLI. The same agent in the terminal:
copilotfor a session with slash commands,copilot -p "…"for one prompt, and--allow-tool/--deny-toolto control what it may run.