Install a command-line AI assistant
PDF Case Review's AI features (the executive summary, page context, and letting an assistant read your notes) run through a CLI assistant installed on your computer: Claude Code (from Anthropic) or Codex (from OpenAI). This guide installs one and confirms the extension can find it. The extension works fully without either; skip this page if you do not want AI features.
Before you start
- A terminal. Inside VS Code, View > Terminal (or
Ctrl+`, the key under Escape) opens one in your case folder. - An account for the assistant you pick: Claude Code needs a paid Claude plan (Pro, Max, Team or Enterprise); Codex signs in with a ChatGPT account (a paid plan, or an API key).
Install Claude Code
Run the installer for your system:
powershell# Windows, in PowerShell irm https://claude.ai/install.ps1 | iexbash# macOS and Linux curl -fsSL https://claude.ai/install.sh | bashAlternatives:
winget install Anthropic.ClaudeCodeon Windows,brew install --cask claude-codeon a Mac.On Windows, also install Git for Windows. It gives Claude Code a Bash shell to work in, which its tools prefer.
Open a new terminal, run
claude, and sign in through the browser window that opens.Type
/statusto confirm the signed-in account, then/exit.
Anthropic's quickstart and terminal guide cover the first session. The Claude Code extension for VS Code adds a chat panel and signs in with the same account.
Install Codex
Run the installer for your system:
powershell# Windows, in PowerShell irm https://chatgpt.com/codex/install.ps1 | iexbash# macOS and Linux curl -fsSL https://chatgpt.com/codex/install.sh | shAlternatives:
brew install --cask codexon a Mac, ornpm install -g @openai/codexanywhere (thenpmcommand comes with Node.js).Open a new terminal, run
codex, and choose Sign in with ChatGPT.
The Codex CLI documentation lists the other sign-in options; Codex also ships a VS Code extension.
Verify the extension can use it
- Open your case folder in VS Code (a trusted folder; AI features only run in trusted folders) and open a PDF.
- Run PDF Case Review: Choose AI Provider... from the Command Palette. It probes both CLIs and shows, next to each, the signed-in account or a one-line fix if the CLI was not found.
- Pick the one you installed.
pdfCaseReview.ai.provideris now set, and PDF Case Review: Summarize with AI will use it.
If the picker cannot find a CLI you just installed, open a new terminal (or restart VS Code) so the updated PATH is picked up, then run the picker again.
What next
- What the extension sends, and how the consent dialog works: Use Claude Code or Codex as your reviewer.
- A personal login and a school login side by side: Use personal and school Claude accounts.