LibreAI / Dev Tools / zvec-grep
// devtools · zvec-ai/zvec-grep

zvec-grep

zvec-grep is an open-source dev tools project by zvec-ai (zvec-ai/zvec-grep on GitHub). It has 3,994 GitHub stars and 235 forks, is released under the Apache-2.0 license, and was last updated on GitHub on 8 October 2026.

zvec-grep (zg): one local CLI unifying ripgrep-style exact search, BM25, and semantic vector search

★ 4.0k stars⑂ 235 forksApache-2.0updated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

GitHub stars
3,994
Forks
235
License
Apache-2.0
Last updated on GitHub
8 October 2026
Category
Dev Tools
Listing
Full install guide
// how it works

How it works

  1. Pick your corpus

    Choose the codebase or document set you want searchable by meaning, not just by string.

  2. Install zg

    Install the CLI globally from npm (Node.js 22+).

  3. Build the index

    Run zg index with a local embedding model to create the .zvec-grep/ index.

  4. Ask in natural language

    Query with --human for readable, cited results, or wire zg into your agent via its installer/MCP tools.

// features

Why people love it

Three search modes in one tool

Exact (ripgrep-style), BM25, and vector/semantic search behind a single interface.

Code, docs, and data

Symbol-aware code search plus document and structured-data search.

Cited results

Ranked answers link back to source files and lines.

Local-first indexing

Indexes live in .zvec-grep/; local embedding models keep data on your machine by default.

Agent integration

One-command installs into agent tools (for example OpenCode) and MCP tool exposure.

Fast repeat queries

Index once, then query repeatedly without re-embedding the corpus.

Advertisement
// run it

Run it yourself

  1. Clone the repository

    Clone the project and enter its directory (CLI users can install from npm instead).

    git clone https://github.com/zvec-ai/zvec-grep.git
    cd zvec-grep
  2. Install the CLI

    Install zg globally from npm (Node.js 22+ required).

    npm install -g @zvec/zvec-grep
  3. Index and query

    Build an index with a local embedding model, then ask a question.

    zg index --embedding local/potion-retrieval-32m
    zg query --human "where is authentication handled?" --limit 3
// use cases

What you can build

  • Ask 'where is X handled?' across a large codebase and get cited locations
  • Search internal docs semantically instead of guessing exact keywords
  • Give a coding agent fast, source-linked retrieval over your repo
  • Find similar code fragments by meaning when refactoring
Advertisement
// faq

Questions, answered

Who maintains zvec-grep?

zvec-ai develops zvec-grep (the zvec vector-search project team).

Is zvec-grep free?

Yes, Apache-2.0 licensed and local-first.

Does it need a paid API key?

No — local embedding models are supported and are the default posture; remote embeddings are used only with your permission.

How does it compare to ripgrep alone?

ripgrep finds exact strings. zg keeps that, adds BM25 ranking and semantic vector search, and returns ranked results with citations — at the cost of building an index first.

How do I get started?

Run `npm install -g @zvec/zvec-grep`, `zg index` in your project, then `zg query --human "your question"`.

// keep exploring

Similar tools

Dev Tools

probe

Semantic code search for AI — ripgrep speed with tree-sitter AST parsing.

★ 722 starsApache-2.0
View guide →
Dev Tools

semble

Fast, accurate semantic code search for agents — about 99% fewer tokens than grep plus read.

★ 6.2k starsMIT
View guide →
Dev Tools

cocoindex-code

Lightweight AST-based semantic code search CLI (ccc) that makes coding agents faster and cheaper

★ 2.8k starsApache-2.0
View guide →
Dev Tools

treg

An OpenRouter-style registry for agent tools: one token, thousands of priced endpoints, your own keys too

★ 4.8k starsNOASSERTION
View guide →
Dev Tools

ygrep

Fast, local, indexed code search built for AI assistants.

★ 60 starsMIT
View guide →
Dev Tools

grepai

grepai: semantic code search and call graphs for AI agents, running 100% locally on your machine.

★ 1.9k starsMIT
View guide →
// alternatives

Alternatives in Dev Tools

The most-starred other Dev Tools projects in the LibreAI catalogue — the realistic shortlist if zvec-grep is not the right fit.

  • OpenCode★ 211.6k

    The open source coding agent

  • Transformers★ 166.9k

    The model-definition framework behind modern AI — thousands of pretrained transformers for text, vision, and audio.

  • claude-code★ 149.7k

    Anthropic's agentic coding tool that lives in your terminal and works across your whole codebase

  • cc-switch★ 141.3k

    Cross-platform desktop all-in-one manager for Claude Code, Codex, OpenCode and other coding agents

  • codex★ 128.2k

    OpenAI's lightweight coding agent that runs locally in your terminal

// more in devtools

More in Dev Tools

Nearby Dev Tools projects in the catalogue, closest in stars to zvec-grep — keep exploring the shelf either side of it.

  • claude-octopus★ 4.2k

    Claude Octopus orchestrates Claude, Codex, Copilot, Gemini, and Ollama on one task — and surfaces disagreement

  • rust-sdk★ 4.0k

    rmcp: the official Rust SDK for the Model Context Protocol — tokio-based servers and clients

  • skill-recorder★ 4.2k

    Skill Recorder: watch a human do a task once, then generate a reusable AI-agent skill from the recording

  • lean-ctx★ 3.9k

    LeanCTX — the Rust context gateway that controls what your AI coding tools can see.

  • CodeGraphContext★ 4.2k

    An MCP server plus a CLI tool that indexes local code into a graph database to provide context to AI assistants.

  • lazycodex★ 3.7k

    The agent harness for complex codebases inside Codex — project memory, planning and verified completion.

Get zvec-grep

Free and open — grab the source, star the repo, and start creating.