Supercharge your Agent with Semantic Code Intelligence
and save ๐Ÿ’ฐ in the process!

Fewer tokens Fewer tool calls 100% local
Copied! $ cargo install tokensave
also via brew install aovestdipaperino/tap/tokensave or scoop bucket add tokensave https://github.com/aovestdipaperino/scoop-aovestdipaperino && scoop install tokensave
Tokens saved worldwide
fetching_
~ approximate, aggregated across all tokensave users
Users around the world
// Sponsors
Saved some tokens? Feeling thankful? Buy me a coffee โ˜•
// How it works
  Without tokensave                   With tokensave
  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€                  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

  Claude Code                          Claude Code
      โ”‚                                    โ”‚
      โ–ผ                                    โ–ผ
  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”       โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
  โ”‚  Explore โ”‚  โ”‚  Explore โ”‚       โ”‚ tokensave MCP Server   โ”‚
  โ”‚  Agent   โ”‚  โ”‚  Agent   โ”‚       โ”‚                        โ”‚
  โ”‚          โ”‚  โ”‚          โ”‚       โ”‚ search โ”€โ”              โ”‚
  โ”‚  grep... โ”‚  โ”‚  glob... โ”‚       โ”‚ callers โ”ผโ–ถ libSQL DB   โ”‚
  โ”‚  read... โ”‚  โ”‚  read... โ”‚       โ”‚ context โ”˜  โ€ข instant   โ”‚
  โ”‚          โ”‚  โ”‚          โ”‚       โ”‚            โ€ข FTS5      โ”‚
  โ”‚          โ”‚  โ”‚          โ”‚       โ”‚            โ€ข vectors   โ”‚
  โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜       โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
       โ–ผ             โ–ผ
  many API calls, high tokens       instant results, fewer tokens
// Features
๐Ÿง 

Smart Context

One tool call returns everything Claude needs โ€” entry points, related symbols, and code snippets.

๐Ÿ”

Semantic Search

Find code by meaning. Search "authentication" and find login, validateToken, AuthService.

๐Ÿ’ฅ

Impact Analysis

Know what breaks before you change it. Trace callers, callees, and the full impact radius.

๐ŸŒ

50+ Languages

Rust, Go, Java, Python, TypeScript, C, C++, Swift, Kotlin, C#, and 40+ more โ€” same API.

๐Ÿ”’

100% Local

No data leaves your machine. No API keys. No external services. Everything runs on local libSQL.

๐Ÿ”„

Always Fresh

On-demand staleness checks keep your index current โ€” no background daemon, no file watcher, no runaway CPU.

// Operating modes
Mode Auto-refresh Branch tracking Best for
Manual off โ€” Full control โ€” run tokensave sync when you want
Automatic on off Fire-and-forget โ€” refreshes on tool calls & commits
Branch-aware on on Multi-branch โ€” each branch gets its own index
// Install
# Install tokensave
cargo install tokensave
 
# Register with your AI agent (once)
tokensave install
 
# Index your project (once per folder)
cd your-project && tokensave init
# Install via Homebrew
brew install aovestdipaperino/tap/tokensave
 
# Register with your AI agent (once)
tokensave install
 
# Index your project (once per folder)
cd your-project && tokensave init
# Add the tokensave bucket and install (Windows)
scoop bucket add tokensave https://github.com/aovestdipaperino/scoop-aovestdipaperino
scoop install tokensave
 
# Register with your AI agent (once)
tokensave install
 
# Index your project (once per folder)
cd your-project && tokensave init
// Supported agents

Claude Code

Cursor

GitHub Copilot

Zed

Cline

Roo Code

Codex CLI

Gemini CLI

OpenCode

Kilo CLI

Antigravity

Mistral Vibe

Grok Build

Kimi CLI

Kiro

Pi