Skip to main content

Installing AI CLI Tools

Claude Code, Codex CLI, GitHub Copilot CLI, and Antigravity CLI

Choose Your Tool

All these CLI tools let you work with AI directly in your terminal. Pick one to start - they all work similarly.

TipRecommendation

Claude Code is what we use in this course. But the skills transfer to any of these tools.

Tool Provider Model Pricing
Claude Code Anthropic Claude Claude Pro/Max ($20+/mo) or Console
Codex CLI OpenAI GPT models ChatGPT Plus ($20/mo) or higher
Copilot CLI GitHub Multiple (Claude, GPT); on Free and Student plans Copilot picks the model Copilot (~$10/mo, free for students/teachers)
Antigravity CLI Google Gemini Free tier + Google AI Pro

Prerequisites (All Tools)

Before installing any CLI tool, you need:

1. Node.js

You only need Node.js if you install a tool with npm (Copilot CLI via npm needs Node.js 22 or later). The recommended installers below do not need it. Check if you have it:

node --version

If not installed: Download from nodejs.org (LTS version)

node --version

If not installed:

brew install node

Or download from nodejs.org

node --version

If not installed:

# Ubuntu/Debian
sudo apt update && sudo apt install nodejs npm

# Fedora
sudo dnf install nodejs npm

2. A Terminal

  • Windows Terminal (recommended) - comes with Windows 11, or install from Microsoft Store
  • PowerShell - built-in, search “PowerShell”
  • Command Prompt - built-in, search “cmd”
  • Terminal - built-in, press Cmd+Space, type “Terminal”
  • iTerm2 - popular alternative
  • Usually Ctrl+Alt+T or search “Terminal”
NoteVS Code Users

You can also open a terminal directly inside VS Code! Press Ctrl+` (backtick) on Windows/Linux or Cmd+` on Mac—or go to View → Terminal. This keeps everything in one window.

New to the terminal? Read Terminal Basics first.


Claude Code

Anthropic’s official CLI for Claude.

What is Claude Code?

Claude Code is a command-line tool that lets you work with Claude directly in your terminal. It can read, edit, and create files, run commands, and help with coding and data analysis where your code lives.

Why use it?

  • Works directly with your files and folders
  • Can read, edit, and create code for you
  • Runs commands and sees the output
  • Great for data analysis workflows
  • No copy-pasting between browser and code editor

Install

PowerShell:

irm https://claude.ai/install.ps1 | iex

Command Prompt:

curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
curl -fsSL https://claude.ai/install.sh | bash

Or with Homebrew:

brew install --cask claude-code
curl -fsSL https://claude.ai/install.sh | bash

Use

Navigate to your project folder and start:

cd /path/to/your/project
claude

First time: You’ll be prompted to log in via browser. You need one of: - Claude Pro, Max, Ultra, Team, or Enterprise subscription (recommended; the free plan does not include Claude Code) - Claude Console account (API access with pre-paid credits)

After login: Type your requests naturally like “what does this project do?” or “add a hello world function to the main file.”

More details: Claude Code Documentation

Quick Tips

Command What it does
claude Start Claude Code
exit Quit Claude Code
claude --help See all options
/help Get help while inside Claude

Requirements

  • Claude account — Sign up at claude.ai if you don’t have one
  • Subscription or Console credits — Claude Pro/Max/Ultra/Team/Enterprise or a Claude Console account with credits
  • Internet connection — Claude runs in the cloud

Troubleshooting

  • “command not found” — Close and reopen your terminal, then try again
  • “Permission denied” — Re-run the install step with admin permissions or follow the OS-specific instructions above
  • “Authentication failed” — Make sure your Claude subscription/credits are active and try logging in again

Antigravity CLI

Google’s terminal agent for Gemini models. It replaced Gemini CLI for individual users in June 2026.

Install

PowerShell:

irm https://antigravity.google/cli/install.ps1 | iex
curl -fsSL https://antigravity.google/cli/install.sh | bash
curl -fsSL https://antigravity.google/cli/install.sh | bash

Use

Navigate to your project folder and start:

cd /path/to/your/project
agy

First time: You’ll be prompted to sign in with your Google account. There is a free tier; Google AI Pro raises the limits.

More details: Antigravity CLI Documentation


Codex CLI

OpenAI’s command-line coding tool.

Install

PowerShell:

powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"

Or with npm:

npm install -g @openai/codex
curl -fsSL https://chatgpt.com/codex/install.sh | sh

Or: npm install -g @openai/codex / brew install openai/tap/codex

curl -fsSL https://chatgpt.com/codex/install.sh | sh

Or with npm:

npm install -g @openai/codex

Use

Navigate to your project folder and start:

cd /path/to/your/project
codex

First time: You’ll be prompted to sign in via browser. You can authenticate with:

  • ChatGPT account (Plus, Pro, Business, Edu, or Enterprise) - recommended
  • OpenAI API key (alternative option)

More details: Codex CLI Documentation


GitHub Copilot CLI

GitHub’s terminal coding agent — the same agent that powers Copilot in VS Code. Free for verified students and teachers via the GitHub Student Developer Pack.

Install

winget install GitHub.Copilot

Or with npm (needs Node.js 22+):

npm install -g @github/copilot

On Windows, Copilot CLI needs PowerShell 6 or later (Windows ships with 5.1).

brew install --cask copilot-cli

Or with npm (needs Node.js 22+):

npm install -g @github/copilot
npm install -g @github/copilot

Use

Navigate to your project folder and start:

cd /path/to/your/project
copilot

First time: You’ll be prompted to sign in via browser with the GitHub account that has your Copilot access.

More details: Copilot CLI Documentation


Next Steps

  1. Install one tool (we recommend Claude Code for this course)
  2. Read Terminal Basics if you’re new to command line
  3. Try it on a simple task: navigate to a folder with some files and ask “what’s here?”
  4. Continue to Week 1 to use it for data analysis