EVERYTHING XIAOMI
Get listed

OpenGrok

OpenGrok is a free, open-source Java engine for searching and navigating source code trees.

Place
#9 of 42
Score
6.4
OpenGrok's website

What OpenGrok is

OpenGrok is a free, open-source Java engine for searching and navigating source code trees. It searches full text, definitions, symbols, paths and revision history, with subtree searches, wildcards and date-range filters. Its read-only web interface presents syntax-highlighted cross-references alongside file history, revision diffs and directory history. It supports revision control systems including Git, Mercurial, Subversion, CVS, Perforce, ClearCase, Bazaar, Monotone, Razor, RCS, SCCS, Teamware and AccuRev. Plugins can extend language or revision-control support, and the web application exposes a REST API under `/api/v1/`. OpenGrok has granular authorization; authentication is handled by an application server or reverse proxy. Setup involves indexing a codebase and deploying the web app. Requirements include Java 21 through 25, Universal Ctags and a servlet container such as Tomcat 10.x. The guide recommends an 8 GB JVM heap for indexing and says the web app needs more memory. It runs self-hosted on Linux, macOS and Windows; setup guidance focuses on Unix-like systems.

Good

  • Searches symbols, definitions and revision history
  • Read-only browser with diffs and cross-references
  • Supports many revision control systems
  • Plugins extend language and repository support
  • Free open-source project

Watch out

  • Requires indexing and web application deployment
  • Setup guide focuses on Unix-like systems
  • Indexer usually uses an 8 GB JVM heap

Who it suits

OpenGrok is suited to developers and teams who need searchable, browsable source trees hosted on their own infrastructure. Its range of repository integrations may help teams working across different revision control systems.

Verdict

OpenGrok provides code search and history browsing for self-hosted source trees, with broad revision-control support. Setup requires the listed Java, Ctags and servlet-container dependencies, plus resources for indexing and the web application.

Plans and prices

From OpenGrok's own pricing page, checked 5 Oct 2026.

All about pricing
PlanPriceWhat it gives you
OpenGrokFreeOpen-source project · CDDL license

The facts

Each one read from OpenGrok's own pages, with the date it was checked.

What it does

API
The web application provides a REST API under `/api/v1/`.checked 5 Oct 2026
API token security
API bearer tokens require HTTPS unless the web application is configured to allow tokens over an insecure channel.checked 5 Oct 2026
Code browsing
Its read-only web interface provides file history, revision diffs, directory history, and syntax-highlighted cross-references.checked 5 Oct 2026
Deployment
Setup requires creating an index and deploying the web application; the guide is primarily for Unix-like systems and says Windows setup is similar with adjusted commands and paths.checked 5 Oct 2026
Extensibility
Plugins can add support for programming languages or revision control systems.checked 5 Oct 2026
Maintenance
The project says it is maintained by enthusiasts and volunteers from around the world.checked 5 Oct 2026
Purpose
OpenGrok is a Java source code search and cross-reference engine for searching, cross-referencing, and navigating source trees.checked 5 Oct 2026
Release
The releases page lists version 1.14.19 as the latest release and describes it as allowing Java 25.checked 5 Oct 2026
Repository integrations
The supported revision control systems include Git, Mercurial, Subversion, CVS, Perforce, ClearCase, Bazaar, Monotone, Razor, RCS, SCCS, Teamware, and AccuRev.checked 5 Oct 2026
Requirements
The setup guide lists Java 21 through 25, Universal Ctags, a servlet container such as Tomcat 10.x, and a recent browser for clients.checked 5 Oct 2026
Resource needs
The guide says the indexer is usually run with an 8 GB JVM heap and the web app needs more memory.checked 5 Oct 2026
Search features
It searches full text, definitions, symbols, paths, and revision history, with subtree searches, wildcards, and date-range filters.checked 5 Oct 2026
Security
OpenGrok provides a granular authorization framework, while authentication is handled by the application server or a reverse proxy.checked 5 Oct 2026
Support
The project directs users to discussions and mailing lists, and asks users to report bugs or feature requests through GitHub Issues.checked 5 Oct 2026
The full review of OpenGrok

OpenGrok is a self-hosted engine for searching and browsing source code and its history. It suits teams that can operate an indexed web application, especially those working across varied version-control systems. Its search and navigation are broad, but deployment and memory needs make it a poor fit for anyone seeking a managed, low-maintenance service.

Overview

OpenGrok builds an index of source trees and presents results through a read-only web interface. That makes it useful for finding code and understanding how it changed, without turning the browser into an editing environment. The project is open source under the CDDL license and costs nothing.

Key features

Search covers full text, definitions, symbols, paths, and revision history. Subtree searches, wildcards, and date-range filters help narrow a query across large repositories. Regex search is not supported, so developers who rely on regular-expression queries should look elsewhere.

The browser combines syntax-highlighted cross-references with file history, revision diffs, and directory history. This is a strong set of tools for tracing code relationships and changes; the interface remains read-only, however, so it is for discovery and review rather than editing.

OpenGrok supports Git, Mercurial, Subversion, CVS, Perforce, ClearCase, Bazaar, Monotone, Razor, RCS, SCCS, Teamware, and AccuRev. That breadth can simplify search across repositories using different systems. Plugins can extend support for programming languages or revision-control systems when a codebase needs something beyond the built-in integrations.

The web application includes a REST API at /api/v1/. Its granular authorization framework allows access to be controlled, while authentication is delegated to the application server or a reverse proxy. API bearer tokens require HTTPS unless the application is explicitly configured to permit insecure token use.

Pricing

OpenGrok is free, with no paid tier in its plan: free for the open-source project under the CDDL license. The plan covers codebase indexing and code navigation. It does not include regex search, so the zero price does not change that functional limitation.

Platforms

OpenGrok supports API, Linux, macOS, self-hosted, web, and Windows environments. Deployment involves creating an index and deploying the web application. The setup guide centers on Unix-like systems, with Windows commands and paths adjusted accordingly. Requirements include Java 21 through 25, Universal Ctags, a servlet container such as Tomcat 10.x, and a recent browser for clients. The indexer usually runs with an 8 GB JVM heap, and the web application needs more memory, so hosting capacity is part of the real cost of using this free software.

Who it's for

OpenGrok is a sensible choice for engineering teams that need searchable, navigable indexes of self-hosted source trees and can maintain the supporting Java application and indexing process. Its multiple repository integrations are particularly useful in organizations with mixed version-control systems. It is less suitable for individuals or teams who want a hosted service, need regex search, or cannot allocate memory and operational effort to indexing and serving the application.

The project is maintained by enthusiasts and volunteers around the world. It directs users to discussions and mailing lists for support, and to GitHub Issues for bug reports and feature requests. The releases page identifies version 1.14.19 as the latest release and says it allows Java 25.

Pros and cons

  • Pros: Broad revision-control support makes one search interface practical across repositories using many different systems.
  • Pros: History, diffs, directory browsing, and syntax-highlighted cross-references support code investigation beyond simple text matching.
  • Pros: A REST API and extensible plugins provide routes to integrate or expand the application.
  • Cons: Setup requires indexing and deploying a Java web application, with a typical 8 GB JVM heap for the indexer and still more memory for the web app.
  • Cons: Regex search is absent, and the browser is read-only.
  • Cons: Authentication depends on the application server or reverse proxy, and API bearer tokens need HTTPS by default.

Alternatives

For a broader comparison, browse the Code Search Tools category. Choose ast-grep instead if you want a free option spanning API, extension, desktop, and web platforms. Code Search is worth considering for its free Community plan, which includes unlimited users, repository-wide find and replace, a CLI and MCP server, and SCIP code intelligence.

Pick sqry for a free, MIT-licensed tool that runs locally on Linux, macOS, or Windows. Shebe is another free local-search option, with API, self-hosted, and Windows support and an Apache-2.0 license. LXR Cross Referencer is a free, self-installed alternative for Linux, self-hosted, and web environments.

Chatterbox TTS is another listed alternative. Code Fundi has a freemium model and a Dev plan priced at $21 a month, with 5,000 Credits/Mo, 10 Private Repo Indexes, multi-codebase search/chat, and priority support. Sourcebot is also an alternative, with a free Basic plan and a free trial.

Verdict

Choose OpenGrok if your team needs code search and history browsing across self-hosted repositories, particularly when those repositories use different revision-control systems. Its strongest case is broad navigation at no software cost; its chief trade-off is the Java deployment, indexing, and memory overhead. Teams seeking managed convenience or regex search should choose another tool.

Alternatives to OpenGrok

All alternatives
  1. 1

    Avidemux

    Free planOpen sourceWebLinuxmacOSWindows
    7.3Free plan
  2. 2Understand logo

    Understand

    APIExtensionLinuxmacOS
    7.2From $100 a month
  3. 3ast-grep logo

    ast-grep

    Free planWebAPIExtensionLinux
    7.0Free plan
  4. 4Chromium logo

    Chromium

    Open sourceAndroidiOSExtensionLinux
    6.9
  5. 5

    Semantic Designs Source Code Search Engine

    Free planAPILinuxSelf-hostedWindows
    6.7Free plan
  6. 6Code Fundi logo

    Code Fundi

    Free planWebAPIExtension
    6.6From $21 a month