Installation
From VS Code Marketplace
- Open Visual Studio Code
- Navigate to the Extensions view (
Ctrl+Shift+Xon Windows/Linux,Cmd+Shift+Xon Mac) - Search for “Potpie AI”
- Click Install
From VSIX File
If you have a.vsix file:
- Open VS Code
- Go to Extensions view
- Click the
...menu → Install from VSIX… - Select the
potpie-vscode-extension.vsixfile
Requirements
- VS Code Version: 1.80.0 or higher
- Potpie Account: Active account with API access
Commands
The extension provides the following commands accessible via the Command Palette (Ctrl+Shift+P / Cmd+Shift+P):
| Command | Description | Keybinding |
|---|---|---|
| Potpie: Focus Potpie Chat | Open and focus the Potpie chat panel | Ctrl+Shift+L / Cmd+Shift+L |
| Potpie: New Chat | Start a new conversation | - |
| Potpie: Open Potpie Chat Panel | Open the chat in a separate panel | - |
| Potpie: Open Sign-In in External Browser | Launch authentication in your default browser | - |
| Potpie: Logout | Sign out of your Potpie account | - |
| Potpie: Retry Tunnel Setup | Restart the tunnel connection | - |
| Potpie: Clear Terminal Command Allowlist | Reset approved terminal commands | - |
| Potpie: Clear Potpie Cache | Clear local extension cache | - |
| Potpie: Fix in Potpie Chat | Send code context to chat for fixing | - |
Getting Started
1. Sign In
After installing the extension:- Click the Potpie icon in the Activity Bar (sidebar)
- Click Sign In in the chat panel
- Your default browser opens to the Potpie authentication page
- Complete the sign-in process
- Return to VS Code. You’re now authenticated
2. Select a Project
- Open a workspace that corresponds to a parsed Potpie project
- The extension automatically detects the repository
- If you have multiple projects, select one from the chat interface
3. Start Chatting
- Use the keyboard shortcut
Ctrl+Shift+L/Cmd+Shift+Lto focus the chat - Type your question or request in the input box
- The AI agent analyzes your codebase and responds
- Continue the conversation naturally
- “Where is user authentication implemented?”
- “Explain how the database connection works”
- “Add error handling to the login function”
- “Show me all API endpoints in this project”
Tunnel Connection
The extension establishes a secure tunnel between your local VS Code and Potpie’s cloud infrastructure.How It Works
- Local Server: Runs on port 8010 (configurable) to handle file operations
- Tunnel Process: Creates a secure connection to Potpie’s cloud
- Registration: Registers your workspace (repository + branch) with the backend
- Execution: Cloud agents can request local operations through the tunnel
Connection Status
The status bar shows your tunnel connection state:- 🔴 Blinking Red Dot + “Connecting…”: Tunnel is establishing
- 🟢 Solid Green Dot + “Online”: Tunnel is active and registered
- ⚪ Gray/Hidden: Not applicable (not signed in or tunnel disabled)
Manual Restart
If the tunnel disconnects:- Open Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) - Run Potpie: Retry Tunnel Setup
- Wait for the green “Online” indicator

