# Zoekt

> Fast trigram-based code search engine

Source: https://talira.ai/catalog/zoekt-f1cky8mv
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Infrastructure
- Categories: [developer tools / code search](https://talira.ai/categories/developer-tools/code-search)
- Platforms: linux, macos, docker[^2]
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^2]
- API: yes[^2]
- Backed by: [Sourcegraph](https://talira.ai/orgs/sourcegraph.md)
- Creator: Han-Wen Nienhuys

Zoekt is a text search engine for source code that answers substring and regular expression searches fast across one repository or thousands, using a trigram index. Its query language has boolean operators and filters such as file:, and it ranks results with code signals like whether a match is on a symbol (from Universal Ctags). You can use its commands to index local Git repositories or directories and search them, or run its index server, which mirrors and reindexes repositories from GitHub, GitLab, Gitea, Gerrit, Gitiles or Bitbucket Server on a schedule, with its web server, which serves a search UI, a JSON search API and a gRPC API. It's written in Go and ships as one container image. Han-Wen Nienhuys created it, and [Sourcegraph](https://talira.ai/catalog/sourcegraph-gypwx5qd.md) has maintained this fork of the original google/zoekt repository since 2017, with an index server for Sourcegraph among its commands. Apache-2.0.

## Links

- GitHub: https://github.com/sourcegraph/zoekt

## Problems it solves

- search all of my company's repositories fast with regex, on my own server
- self-hosted code search across thousands of git repos
- a code search backend with an API that I can build tools on

## Features

- substring and regex search over a trigram index
- boolean query language
- symbol-aware ranking with Universal Ctags
- index server that mirrors repositories from code hosts
- web UI
- JSON and gRPC search APIs
- container image

## Capabilities

- Has an API: plan not known
- Has a command line tool: plan not known

## Trust

Overall: 0.72 out of 1.
Signals: maintenance 1.00, adoption 0.66, momentum 0.41, community 0.85, backing 0.50, extensibility 0.40.

- last commit 3 days ago
- 94 commits in the last 90 days
- 2.1k GitHub stars
- 133 contributors
- backed by Sourcegraph
- created by Han-Wen Nienhuys

## Related

- Works with [Sourcegraph](https://talira.ai/catalog/sourcegraph-gypwx5qd.md)

## Alternatives

- [Hound](https://talira.ai/catalog/hound-4xkssqk1.md): Lightning fast code searching made easy
- [Sourcegraph](https://talira.ai/catalog/sourcegraph-gypwx5qd.md): Code understanding for humans and agents
- [OpenGrok](https://talira.ai/catalog/opengrok-ncsn8b9r.md): A fast and usable source code search and cross reference engine
- [livegrep](https://talira.ai/catalog/livegrep-3exwmzp8.md): Fast interactive regex search over large source code repositories

## Sources

[^1]: https://github.com/sourcegraph/zoekt/blob/main/LICENSE (checked 23 Nov 2026)
[^2]: https://github.com/sourcegraph/zoekt (checked 23 Nov 2026)
