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 tokensave or scoop install tokensave
Tokens saved worldwide
fetching_
~ approximate, aggregated across all tokensave users
Users around the world
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.

๐ŸŒ

31 Languages

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

๐Ÿ”’

100% Local

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

๐Ÿ˜ˆ

Daemon Mode

Background daemon watches for file changes and syncs automatically. Branch-aware tracking optional.

// Operating modes
Mode Daemon Branch tracking Best for
Manual off โ€” Full control โ€” run sync when you want
Auto-sync on off Fire-and-forget โ€” syncs on file changes
Branch-aware on on Multi-branch โ€” each branch gets its own index
// Install
# Install tokensave
cargo install tokensave
 
# Index your project
cd your-project && tokensave sync
 
# Register with your AI agent
tokensave install
 
# (Optional) Start the background daemon
tokensave daemon --enable-autostart
# Install via Homebrew
brew install tokensave
 
# Index your project
cd your-project && tokensave sync
 
# Register with your AI agent
tokensave install
# Install via Scoop (Windows)
scoop install tokensave
 
# Index your project
cd your-project && tokensave sync
 
# Register with your AI agent
tokensave install
// Supported agents

Claude Code

Cursor

Copilot

Zed

Cline

Roo Code

Codex

Gemini CLI