Skip to content

LienLocal-First Semantic Code Search

Give AI deep understanding of your codebase through semantic search. 100% local, 100% private.

Quick Start

Install Lien globally via npm:

bash
npm install -g @liendev/lien

Initialize in your project:

bash
cd /path/to/your/project
lien init
lien index

Configure Cursor by creating .cursor/mcp.json in your project:

json
{
  "mcpServers": {
    "lien": {
      "command": "lien",
      "args": ["serve"]
    }
  }
}

Restart Cursor and start asking questions about your codebase!

How It Works

  1. Index: Lien scans your codebase, chunks code into manageable pieces, and generates embeddings using a local ML model
  2. Store: Embeddings are stored in a local vector database in ~/.lien/indices/
  3. Search: When you query through Cursor, Lien finds the most semantically similar code chunks
  4. Context: Results are returned to Cursor, providing better, context-aware responses

Use Cases

  • Understand New Codebases: "Show me how authentication works"
  • Find Implementations: "Where are API endpoints defined?"
  • Locate Patterns: "Find similar error handling code"
  • Discover Related Code: "What tests cover this module?"

Privacy First

Lien is built with privacy as a core principle:

  • All code analysis happens on your machine
  • No data is sent to external servers
  • No telemetry or usage tracking
  • Open source and auditable

Free & Open Source

Lien is licensed under AGPL-3.0 and free forever for local use. The license ensures:

  • ✅ Use Lien locally without restrictions
  • ✅ Modify and distribute freely
  • ✅ Improvements benefit the community
  • ✅ Sustainable long-term development

Questions about licensing? Contact alf@lien.dev


Lien /ljɛ̃/ — French for "link"

Linking semantic code understanding with AI tools, one query at a time.

Made with ❤️ for developers who care about privacy and local-first tools.

Released under the AGPL-3.0 License. Free forever for local use.