Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>Pi Coding Agent CLINew to Visual Studio Code? Get it now.
Pi Coding Agent CLI

Pi Coding Agent CLI

Winnie The Pooh

|
1 install
| (0) | Free
Integrate the pi coding agent CLI into VS Code via the integrated terminal
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Pi Coding Agent

VS Code extension that integrates the pi coding agent CLI into the integrated terminal.

Requirements

pi must be installed and available in your PATH.

Commands

Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) and search for Pi:

Command Palette Title Description
Pi: Run Pi Coding Agent Open an interactive pi session
Pi: Run Pi Coding Agent with Current File Open pi and pass the active file (or workspace root) as @filepath context
Pi: Run Pi Coding Agent (Print Mode) Prompt for a message and run pi -p "message"
Pi: Continue Most Recent Pi Session Run pi -c to resume the last session
Pi: Browse Pi Sessions Run pi -r to browse and select a past session

The right-click context menu in the Explorer and editor also exposes "Run Pi Coding Agent with Current File".

A status bar button ($(terminal) Pi) in the bottom-left launches the agent directly.

Each Pi command opens a fresh terminal.

Settings

Configure via File > Preferences > Settings (search "Pi Coding Agent"):

Setting Type Default Description
piCodingAgent.defaultArgs string "" Extra CLI flags added to every pi invocation, e.g. --model openai/gpt-4o
piCodingAgent.showStatusBar boolean true Show or hide the status bar button

Example settings.json

{
  "piCodingAgent.defaultArgs": "--model anthropic/claude-sonnet-4-5 --thinking low",
  "piCodingAgent.showStatusBar": true
}

Building from source

npm install
npm run compile

Packaging

npm run package
# Produces: pi-coding-agent-0.1.0.vsix

Install locally:

code --install-extension pi-coding-agent-0.1.0.vsix
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft