Cursor & VS Code
Cursor, VS Code with the official AI extensions, and most AI coding tools read OPENAI_BASE_URL / OPENAI_API_KEY. Set them globally and every suggestion, chat, and tool call flows through TapPass.
Cursor
Section titled “Cursor”Open Settings → Cursor → Models → OpenAI API key:
- OpenAI Base URL:
https://tappass.example.com/v1 - OpenAI API Key:
tp_... - Toggle off Use OpenAI GPT-4 directly
Save. Cursor’s chat, Cmd-K, and Composer now all flow through TapPass.
Anthropic in Cursor
Section titled “Anthropic in Cursor”For Claude models, also set:
- Anthropic Base URL:
https://tappass.example.com - Anthropic API Key:
tp_...
VS Code + GitHub Copilot
Section titled “VS Code + GitHub Copilot”VS Code + other AI extensions
Section titled “VS Code + other AI extensions”For extensions that accept a custom OpenAI endpoint (Continue, Cody, Codeium’s custom endpoint mode):
Add to your shell profile:
export OPENAI_BASE_URL=https://tappass.example.com/v1export OPENAI_API_KEY=tp_...Restart VS Code. Most extensions pick the env vars up on launch.
Per-workspace override
Section titled “Per-workspace override”Drop a .env at the root of your workspace:
OPENAI_BASE_URL=https://tappass.example.com/v1OPENAI_API_KEY=tp_dev_team_aliceVS Code’s Python and Node extensions load workspace .env files automatically.
Why this matters
Section titled “Why this matters”IDE assistants pull from your code. Without TapPass, secrets in open files are sent to OpenAI/Anthropic as context. With TapPass:
- PII detection masks emails, keys, and tokens from prompts before forwarding
- Audit trail captures what source files were included in which prompts
- Per-developer
tp_keys show exactly who prompted what