Skip to content

Introduction

Code Search is a self-hosted code search and replace platform with CLI support for batch operations across repositories. It helps development teams search, analyze, and modify code across their entire codebase.

Code Search web application Code Search web application

Code Search is designed for organizations that need to:

  • Search code quickly across hundreds or thousands of repositories
  • Make bulk changes across multiple repos with automated MR/PR creation
  • Maintain consistency in large codebases with many microservices
  • Keep data private by self-hosting on their own infrastructure

Indexed Search

Sub-second search across all repositories using Zoekt, the same engine Google uses for internal code search.

Bulk Replace

Find and replace across multiple repositories. Automatically create branches and merge requests.

CLI First

Powerful command-line tool for automation, scripting, and CI/CD integration.

Web Interface

Modern web UI for searching, browsing, and managing your code search instance.

┌──────────────────────────────────────────────────────────────────────┐
│ Code Search │
├──────────────────────────────────────────────────────────────────────┤
│ │
│ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────────┐ │
│ │ CLI │ │ Web UI │ │ API │ │ Indexer │ │
│ └────┬────┘ └────┬────┘ └────┬────┘ └──────┬──────┘ │
│ │ │ │ │ │
│ └──────────────┴─────┬────────┘ │ │
│ │ │ │
│ ┌─────────▼────────┐ ┌───────────▼─────────┐ │
│ │ API Server │ │ Zoekt │ │
│ │ (Go, REST API) │ │ (Search Engine) │ │
│ └─────────┬────────┘ └─────────────────────┘ │
│ │ │ │
│ ┌────────────────────┼──────────────────────────┤ │
│ │ │ │ │
│ ┌────▼────┐ ┌───────▼──────┐ ┌────────▼──────┐ │
│ │ Redis │ │ PostgreSQL/ │ │ Git Repos │ │
│ │ (Queue) │ │ MySQL │ │ (Storage) │ │
│ └─────────┘ └──────────────┘ └───────────────┘ │
│ │
└──────────────────────────────────────────────────────────────────────┘
  1. Connect code hosts - Configure connections to GitHub, GitLab, Gitea, or Bitbucket
  2. Sync repositories - The indexer clones and indexes your repositories
  3. Search instantly - Use the CLI, Web UI, or API to search across all code
  4. Make bulk changes - Replace patterns and create merge requests automatically

Code Search is ideal for:

Organizations with many repositories benefit from centralized search. Find code patterns, track dependencies, and understand how APIs are used across services.

When renaming functions, updating API signatures, or migrating to new patterns, Code Search can apply changes across all repos and create MRs automatically.

Quickly find vulnerable code patterns, outdated dependencies, or sensitive data exposure across your entire codebase.

Help new team members discover existing code, find examples, and understand how things work across the organization.

Ready to get started?