Skip to main content

VS Code Extension

The Intentra VS Code Extension provides a visual interface for monitoring your AI coding costs directly within your editor. It works with VS Code, Cursor, and any VS Code-compatible IDE.

Installation

From VS Code Marketplace

  1. Open VS Code or Cursor
  2. Go to Extensions (Cmd+Shift+X on Mac, Ctrl+Shift+X on Windows/Linux)
  3. Search for "Intentra"
  4. Click Install

Or install directly from the VS Code Marketplace.

From VSIX File

If you have a .vsix file:

  1. Open VS Code or Cursor
  2. Go to Extensions (Cmd+Shift+X)
  3. Click the ... menu (top-right of Extensions panel)
  4. Select Install from VSIX...
  5. Choose the intentra-x.x.x.vsix file

Getting Started

Step 1: Open the Sidebar

Click the Intentra icon in the Activity Bar (left sidebar). You'll see the Intentra panel with a welcome message.

Step 2: Login

Click the "Login to Intentra" button. Your browser will open to complete authentication. Once logged in, the sidebar will display your dashboard.

Step 3: Start Using AI Tools

The extension automatically installs hooks for your AI coding tools. As you use Cursor, Copilot, or other supported tools, Intentra captures usage data in the background.

Once logged in, the sidebar shows:

  • Scans Today - Number of AI interactions captured
  • Tokens - Total tokens used
  • Est. Cost - Estimated cost for the day
  • Recent Scans - List of recent AI interactions with model and cost
  • Violations - Detected wasteful patterns (retry loops, excessive context, etc.)

Available Actions

From the Sidebar

  • Refresh - Update the dashboard with latest data
  • Dashboard - Open the full Intentra web dashboard
  • Logout - Sign out of Intentra

From Command Palette

Press Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux) and type "Intentra":

  • Intentra: Login - Sign in to your account
  • Intentra: Logout - Sign out
  • Intentra: Open Dashboard - Open intentra.sh in browser
  • Intentra: Refresh Status - Refresh the status bar and sidebar
  • Intentra: Show Sidebar - Open the Intentra panel

Status Bar

The status bar (bottom of the editor) shows a quick summary of your current session. Click it to open the sidebar.

Settings

Configure the extension in VS Code Settings (Cmd+,):

SettingDefaultDescription
intentra.autoInstallHookstrueAutomatically install hooks on login
intentra.statusBarEnabledtrueShow Intentra in the status bar
intentra.refreshInterval60Status refresh interval (seconds)

Supported Tools

The extension automatically detects and configures hooks for:

  • Cursor - AI-powered code editor
  • GitHub Copilot - AI pair programmer
  • VS Code with AI extensions

Troubleshooting

Extension Not Appearing

  1. Ensure the extension is installed and enabled
  2. Reload the window (Cmd+Shift+P → "Developer: Reload Window")

Login Not Working

  1. Check your internet connection
  2. Ensure port 54321 is not blocked (used for OAuth callback)
  3. Try logging out and back in

Hooks Not Capturing Events

  1. Check ~/.intentra/handler.log for errors
  2. Verify hooks are installed: look for hook configuration in your tool's settings
  3. Restart your AI coding tool

Session Expired

If you see "Session expired", click Login to re-authenticate. The extension will automatically refresh tokens when possible.

CLI vs Extension

FeatureCLIExtension
InstallationTerminal commandMarketplace install
Loginintentra loginClick button in sidebar
View scansintentra scan listSidebar dashboard
Hook managementintentra install/uninstallAutomatic
Best forPower users, automationVisual users, beginners

Both the CLI and extension share the same credentials stored securely in your OS keychain (macOS Keychain, Linux Secret Service, or Windows Credential Manager) and can be used together.

What's Next?

IDE Extensions - Intentra Docs