CodeWiki
English · 简体中文 · Usage Guide · Design · Benchmarks · Changelog
CodeWiki is a single-user code intelligence platform for AST-based repository analysis, GraphRAG retrieval, source-grounded wiki generation, and LiteLLM-powered Q&A.
Screenshots
Highlights
- Analyze Python, TypeScript/TSX, JavaScript/JSX, Java, Go, Rust, C, C++, and C#.
- Build deterministic code graphs for imports, definitions, calls, routes, inheritance, source references, and configuration usage.
- Generate DeepWiki-style catalogs and pages with source citations, diagrams, translations, incremental updates, and browser-side exports.
- Ask GraphRAG-grounded questions through the Web UI, CLI, HTTP API, or MCP server.
- Use Lite Mode for a project-local, no-LLM graph index optimized for AI agent context, traces, impact analysis, and MCP tools.
- Use SQLite by default, or PostgreSQL with full-text search and optional pgvector vector search.
Quick Start
Install from PyPI:
pip install codewiki
codewiki serve
Open http://127.0.0.1:8000, register a repository, run analysis, then generate a
wiki or ask questions.
Run with Docker Compose:
docker compose up --build
The packaged Python app includes the built frontend. A source checkout is only needed for development or Docker-based local runs.
Common Commands
codewiki repos add . --name my-repo
codewiki analyze .
codewiki graphrag build . --embeddings
codewiki wiki catalog .
codewiki wiki pages .
codewiki ask --repo my-repo "How does the main workflow fit together?"
codewiki mcp
Most repository arguments accept an id, id prefix, registered name, path, or Git URL.
Use --json for machine-readable output.
Lite Mode
Lite Mode creates a project-local .codewiki/codewiki-lite.sqlite3 index and skips
LLM, Wiki, GraphRAG chunk, and Web UI workflows. It is intended for local AI assistants
that need fast symbol search, source context, call traces, and affected-file analysis.
codewiki lite index .
codewiki lite query AuthService
codewiki lite context "how authentication works"
codewiki lite trace LoginForm createSession
codewiki lite callers generate_page
codewiki lite affected src/auth.py
codewiki lite agents install . --target all
codewiki mcp --lite --path .
codewiki lite status reports pending file changes. codewiki lite sync refreshes the
index, and codewiki lite watch keeps it fresh with a polling watcher. MCP Lite Mode
catches up an existing index on startup unless --no-sync is passed.
codewiki lite agents install can write Codex CLI and Claude Code MCP config plus
agent instructions for the project.
Configuration
CodeWiki defaults to SQLite:
CODEWIKI_DATABASE_URL=sqlite+aiosqlite:///./data/codewiki.sqlite3
PostgreSQL is also supported:
CODEWIKI_DATABASE_URL=postgresql+psycopg://codewiki:codewiki@localhost:5432/codewiki
Configure LLM profiles with codewiki config or .env:
codewiki config
codewiki config --set CODEWIKI_LLM__DEFAULT__MODEL=openai/gpt-4.1
codewiki config --profile qa --model openai/gpt-4.1 --api-key "$OPENAI_API_KEY"
Documentation
- Usage Guide: installation, Docker, database setup, wiki workflow, LLM profiles, CLI, MCP, HTTP API, and supported languages.
- Design Notes: architecture and feature design.
- Benchmarking Guide and Benchmark Report: benchmark workflow and current results.
- Changelog: release history.
Development
make install
make start
make lint
make typecheck
make test
make build
Default local URLs:
- Backend:
http://127.0.0.1:8000 - Frontend:
http://127.0.0.1:5173
Python Typing
Python type checking uses mypy with a gradual configuration in pyproject.toml.
New public service, repository, API helper, and CLI helper functions should include
explicit parameter and return types. Prefer dataclasses, Pydantic models, TypedDict,
or Protocol over broad dict[str, Any] when data crosses module boundaries. Keep
Any near integration edges such as LLM JSON payloads, SQLAlchemy JSON columns, and
third-party parser output.
License
MIT
Metadata
Release files for codewiki 0.6.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| codewiki-0.6.5.tar.gz | 1.9 MB | With provenance | Details for codewiki-0.6.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| codewiki-0.6.5-py3-none-any.whl | Python 3 | none | any | Details for codewiki-0.6.5-py3-none-any.whl |
Total release size: 3.8 MB
Release files / codewiki-0.6.5.tar.gz
| Download URL | codewiki-0.6.5.tar.gz |
|---|---|
| Size | 1.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f8ec4610f2084980da2049f527bf5214e322367553dc8784b26e1114e7769588
|
|
BLAKE2b-256 checksum How to use checksums |
655804922ef8520da4c9555c0305cf6ce3f45ece956e1bc67d442a1b45d30ff2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 7, 2026.
Transparency logRelease files / codewiki-0.6.5-py3-none-any.whl
| Download URL | codewiki-0.6.5-py3-none-any.whl |
|---|---|
| Size | 1.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c473d2363dd3ba60ca1a192f4d288ad08d3817a97c5e926a85b4013cb8f25e60
|
|
BLAKE2b-256 checksum How to use checksums |
b834c6d94d60dbc54c52aacc1d0ed2f697003e0eff590a558d1382a95a2c1269
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 7, 2026.
Transparency logSecurity for codewiki 0.6.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for codewiki-0.6.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 7, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.