OpenGrok icon

OpenGrok

Search and Discovery

Self-hosted source code search and cross-reference engine with web UI, REST API, and SCM history support.

At a Glance

Pricing

Free tier available

Get started with OpenGrok at no cost with Full feature set under CDDL license and Self-hosted deployment.

Engagement

Available On

Linux
macOS
Windows
Web
API

About OpenGrok

OpenGrok is an open-source, self-hosted code search and cross-reference engine. It indexes large mono-repos or many projects and provides fast full-text, definition/identifier, path, and history search via a web UI and REST API. It integrates with Universal Ctags for language-aware cross-references and understands history from many SCMs (Git, Mercurial, Subversion, Perforce, ClearCase, and more). Deploy it as a Java webapp (WAR) on Tomcat/GlassFish, point it at your source roots, and use the indexer to keep results fresh with incremental updates. Features include syntax-highlighted browsing with x-refs, per-project configuration, a type-ahead suggester, blame/annotate views, downloadable files, and Docker-based setups for quick starts. Licensed under CDDL and actively maintained by Oracle and the community.

Demo Video

OpenGrok Demo Video
Watch on YouTube

Community Discussions

Be the first to start a conversation about OpenGrok

Share your experience with OpenGrok, ask questions, or help others learn from your insights.

Pricing

FREE

Free Plan Available

Get started with OpenGrok at no cost with Full feature set under CDDL license and Self-hosted deployment.

  • Full feature set under CDDL license
  • Self-hosted deployment
  • Community support via GitHub Discussions/Issues
View official pricing

Capabilities

Key Features

  • Full-text, definition, identifier, path, and history search
  • Language-aware cross-references via Universal Ctags
  • Incremental indexing and per-project configuration
  • Web UI with syntax highlighting and quick in-file navigation
  • SCM history views: annotate/blame, diffs, directory-level changes
  • REST API for programmatic search and integration
  • Type-ahead search suggester
  • Docker image and OS-specific helper scripts
  • Authentication/authorization plugin framework
  • Lucene-based indexing with tunable performance options

Integrations

Universal Ctags
Git
Mercurial
Subversion
Perforce
ClearCase
Bazaar
Monotone
AccuRev
Razor
RCS
SCCS
Teamware
Apache Tomcat
GlassFish
Docker
API Available
View Docs