VS Code Extension
Optimize AI API costs directly in VS Code, Cursor, and other VS Code-based editors.
Download Extension
Version 0.1.0 — VS Code 1.85+
Features
Response Caching
Cache AI responses locally for instant, zero-cost repeated queries
Security Scanning
Detect API keys and secrets before sending to AI providers
Cost Tracking
Real-time savings displayed in the status bar
Settings Sync
Automatically uses organization settings from the dashboard
Installation
Step 1: Download
Visit the download page and click Download to get the .vsix file.
Step 2: Install
- Open VS Code or Cursor
- Press
Ctrl+Shift+P(or Cmd+Shift+P on Mac) - Type Install from VSIX and press Enter
- Select the downloaded .vsix file
- Restart when prompted
Step 3: Authenticate
- Press
Ctrl+Shift+P - Type iri: Login and press Enter
- Sign in via the browser window
- Return to VS Code — you are connected
Look for iri: $0.00 saved in the status bar to confirm the extension is active.
Commands
Access via Command Palette (Ctrl+Shift+P):
iri: LoginConnect to your iri AI accountiri: LogoutDisconnect from iri AIiri: Show SavingsView detailed cost savingsiri: Clear CacheClear cached responsesiri: Open SettingsConfigure optimization settingsiri: Toggle ProxyEnable or disable the proxySettings
Configure in VS Code settings (search for "iri"):
iri.enabledtrueEnable the optimization proxy
iri.proxyPort9876Local proxy server port
iri.caching.enabledtrueEnable response caching
iri.caching.ttlHours24Cache duration in hours
iri.compression.enabledtrueEnable prompt compression
iri.compression.levelbalancedCompression level
iri.security.scanSecretstrueScan for sensitive data
Command Line Installation
Troubleshooting
Status bar shows error
Run iri: Toggle Proxy twice (off then on). If it persists, run iri: Login again.
AI tools not being optimized
Some tools may need proxy configuration. Point them to http://localhost:9876
Port 9876 in use
Change iri.proxyPort in VS Code settings to a different number.
Login browser didn't open
Manually visit the URL shown in VS Code's Output panel (View > Output > iri AI).