tokensafe-dev/tokensafe
Local install that cuts agent context, keeps keys on your machine, checks the running app, and gates merges.
What it solves
Without it, agents re-read redundant context, waste tokens, and can push unverified changes into the main branch.
- BM25 code search
- Vision image downscaling
- Redundant context pruning
Works with
- claude-desktop
- cursor
- vscode
- cline
- windsurf
- cli
Install
npx tokensafe pip install tokensafe && tokensafe Copy-ready config
{
"mcpServers": {
"tokensafe": {
"command": "npx",
"args": [
"-y",
"tokensafe",
"mcp"
]
}
}
} Security flags
- Needs API key: Not stated
- Runs locally: Yes
- Network access: Yes
- Needs root: No
Maintenance
| Last commit | 2026-12-05(0d) |
|---|---|
| Stars | 47 |
| Open issues | 0 |
| License | Apache-2.0 |
| Archived | No |
| Data fetched | 2026-12-05 |
Source excerpt
Verbatim README excerpt, unedited, so you can check the summary above.
TokenSafe cuts what your agent reads and keeps your keys on your machine.