Codumentor logo Codumentor

Getting Started

Get Codumentor up and running in minutes. This guide covers the fastest paths to your first conversation.

Download the pre-built executable from the releases page.

Linux

chmod +x codumentor
./codumentor

Windows

codumentor.exe

On first run, Codumentor looks at the current directory and offers a short menu of setup options before creating codumentor.yaml:

A sensible default is pre-selected for the situation, but you can always pick the other option. Once the config is created, Codumentor begins ingesting the repositories listed in it. When ingestion completes, the terminal UI launches and drops you into an interactive session.

Option 2: From Source

Prerequisites

Setup

# Clone the repository
git clone https://gitea.ardinsys.hu/kschaffer/Codumentor.git
cd Codumentor

# Create and activate a virtual environment
python -m venv .venv
source .venv/bin/activate        # Linux / macOS
# .venv\Scripts\activate         # Windows

# Install dependencies
pip install -r requirements.txt

Configure

Set your API key as an environment variable:

export OPENAI_API_KEY="sk-..."

Create a codumentor.yaml in the project root with the repositories you want to index:

repos:
  - "https://github.com/your-org/your-repo.git"
  - "/path/to/local/repo"

models:
  embedding: "text-embedding-004"
  agent: "gemini-2.0-flash"

Ingest and Chat

# Index your repositories
python -m codumentor.cli.main ingest

# Launch the terminal UI (default with no subcommand)
python -m codumentor.cli.main

Quick Query

Ask a single question without entering the interactive TUI (print mode, -p):

python -m codumentor.cli.main -p "What does the AuthMiddleware class do?"

Web UI

Codumentor includes a React-based web interface with streaming responses, tool visualization, and plugin support.

# Build the UI (first time only)
cd ui && npm install && npm run build && cd ..

# Start the API server
python -m codumentor.cli.main api

Open http://127.0.0.1:2638/app in your browser.

Next Steps