Cursor Integration
Protect secrets in Cursor’s AI features: Chat, Composer, and inline edits.Setup
Install the extension
Open Cursor and install the Takumo extension:
Cmd/Ctrl + Shift + Xto open Extensions- Search for “Takumo”
- Click Install
How it works
The extension intercepts Cursor’s AI requests:Before send
Scans attached files, tokenizes secrets
AI processing
Cursor sees tokens, not real values
After receive
Rehydrates tokens in AI responses
Usage
Chat
Secrets in attached files are automatically tokenized:Composer
Multi-file edits work the same way:Inline edits
Select code, pressCmd/Ctrl + K:
Status bar
The status bar shows protection status:| Icon | Meaning |
|---|---|
| 🛡️ 3 | 3 secrets protected in current file |
| 🛡️ ✓ | All secrets tokenized, ready to send |
| ⚠️ | Secrets detected but not yet tokenized |
Commands
Open command palette (Cmd/Ctrl + Shift + P):
| Command | Description |
|---|---|
Takumo: Scan File | Scan current file for secrets |
Takumo: Scan Workspace | Scan all files in workspace |
Takumo: Show Session | View current token vault |
Takumo: Clear Session | Reset token vault |
Configuration
Full settings reference:Troubleshooting
Extension not activating
Extension not activating
Check the Output panel (
View > Output) and select “Takumo” from the dropdown. Look for activation errors.Common fixes:- Reload window:
Cmd/Ctrl + Shift + P→ “Reload Window” - Check extension is enabled for workspace
Secrets not detected in chat
Secrets not detected in chat
The extension only processes files explicitly attached with
@filename. It doesn’t scan:- Code pasted directly into chat
- Files referenced by path only
@ to ensure protection.Performance issues
Performance issues
For large workspaces, limit scanning: