Connect VS Code to Agent Master Key
Agent Master Key (AMK) gives VS Code its own scoped, revocable key while your real provider keys stay in an encrypted vault on your Mac. AMK connects VS Code as a one-click connect harness.
How it works
- Download Agent Master Key and connect a provider (your key never leaves the Mac).
- Open Connect an agent and pick VS Code. AMK creates a scoped agent key and merges the connection into the config below (backup first).
- Reload VS Code (or the Insiders build) so it picks up the AMK connection.
Config file
~/Library/Application Support/Code/User/mcp.json
The entry points at AMK's local launcher only — it never contains your provider keys or an agent key. Revoke VS Code's access anytime from the AMK dashboard; revocation takes effect immediately and does not touch your other agents.
More: Getting started · Trust & custody · Compare
Agent Master Key