# OpenGrok

> A fast and usable source code search and cross reference engine

Source: https://talira.ai/catalog/opengrok-ncsn8b9r
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Web app
- Categories: [developer tools / code search](https://talira.ai/categories/developer-tools/code-search)
- Platforms: docker, web[^4]
- Licence: CDDL-1.0[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^1]
- API: yes[^3]
- Backed by: [Oracle](https://talira.ai/orgs/oracle.md)

OpenGrok is a self-hosted source code search and cross-reference engine: it indexes your source trees, understands many programming languages and file formats, and reads history from many version control systems, so people can full-text search code, jump to definitions and references, and browse annotated history in a web UI. It's written in Java and runs in a servlet container like Tomcat with Universal ctags, or as a Docker container, and has a REST API. Oracle hosts the project on GitHub, volunteers maintain it, and it's licensed CDDL-1.0.

## Links

- Website: https://oracle.github.io/opengrok/
- GitHub: https://github.com/oracle/opengrok
- Docs: https://github.com/oracle/opengrok/wiki

## Problems it solves

- search and cross-reference a huge C codebase in the browser
- self-hosted code search over many repositories inside our network
- find where a function is defined and every place it's called across our source tree
- browse the history and blame of files from old version control systems like Subversion or Perforce
- an internal code browser for legacy source code that isn't on GitHub

## Features

- full-text source code search
- cross-referencing: definitions and references
- understands many programming languages and file formats
- history from many version control systems
- web UI for browsing source trees
- Docker image
- REST API (OpenAPI spec in the repository)

## Limitations

- Needs Java 17+, a servlet container such as Tomcat 10+ and Universal ctags to run outside Docker[^1]

## Capabilities

- Has an API: plan not known

## Trust

Overall: 0.32 out of 1.
Signals: backing 0.30, extensibility 0.20.

- backed by Oracle

Warnings:

- GitHub activity not fetched yet

## 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
- [livegrep](https://talira.ai/catalog/livegrep-3exwmzp8.md): Fast interactive regex search over large source code repositories
- [Zoekt](https://talira.ai/catalog/zoekt-f1cky8mv.md): Fast trigram-based code search engine

## Sources

[^1]: https://oracle.github.io/opengrok/ (checked 23 Nov 2026)
[^2]: https://github.com/oracle/opengrok/blob/master/LICENSE.txt (checked 23 Nov 2026)
[^3]: https://github.com/oracle/opengrok/blob/master/openapi.yaml (checked 23 Nov 2026)
[^4]: https://github.com/oracle/opengrok (checked 23 Nov 2026)
