Get repowise running on your codebase in under 5 minutes.
For the full CLI reference, web UI docs, MCP integration, and troubleshooting, see the User Guide.
pip install "repowise[anthropic]"Or substitute openai, gemini, litellm, or all depending on your LLM provider.
For the Codex CLI subscription flow, no provider SDK or API key is required:
pip install repowise
npm install -g @openai/codex
codex loginRequirements: Python 3.11+, Git.
export ANTHROPIC_API_KEY="sk-ant-..."Or OPENAI_API_KEY, GEMINI_API_KEY — whichever provider you installed.
If you use Codex as the LLM provider, authenticate the Codex CLI instead:
codex login statusOn Windows PowerShell:
$env:ANTHROPIC_API_KEY = "sk-ant-..."cd /path/to/your-repo
repowise initRepowise will walk you through an interactive setup — choose a provider, review the cost estimate, and confirm. It parses every file, builds a dependency graph, indexes git history, and generates wiki pages.
Codex users can force project-local MCP/hooks setup and use the Codex CLI provider in one command:
repowise init --codex --provider codex_cli --yesA typical run on a ~500-file codebase takes 5-15 minutes.
Want to skip LLM costs? Use --index-only to just parse and analyze without generating docs:
repowise init --index-onlyOnce init completes, you have several ways to use the wiki:
Search from the terminal:
repowise search "authentication"
repowise search "how are errors handled" --mode semanticBrowse in a web UI:
repowise serve
# API on http://localhost:7337, Web UI on http://localhost:3000If Node.js 20+ is installed, the web UI starts automatically. Otherwise, use Docker (see below).
Connect to your AI editor (Claude Code, Codex, Cursor, Cline, Windsurf):
repowise mcp --transport stdioAutomatic for Claude Code:
repowise initalready registers the MCP server and installs a PostToolUse hook in~/.claude/settings.json. Broad or zero-resultGrep/Globsearches can receive graph context, and git operations can notify the agent when the wiki is stale.
Claude Code plugin (one-command): install from the marketplace to get the MCP server, the hook, and
/repowise:*slash commands together:/plugin marketplace add repowise-dev/repowise /plugin install repowise@repowise
Automatic for Codex: run
repowise init --codexto write project-local.codex/config.toml,.codex/hooks.json, and managedAGENTS.md. See Codex Integration.
Cut your agent's context spend (optional):
repowise distill pytest -x # compact errors-first output; raw recoverable via `repowise expand`
repowise saved # tokens & dollars saved so farDistill compresses noisy command output (tests, builds, git, searches) before
the agent reads it — 60–90% fewer tokens on noisy commands, with zero
error-line loss (measured on a public OSS repo). Opt into the Claude Code
rewrite hook at init (or repowise hook rewrite install) to apply it
automatically, with each rewrite shown for approval. See Distill.
After pulling changes or editing code:
repowise updateOr install a post-commit hook for automatic sync:
repowise hook installOr run continuous sync while you work:
repowise watchWorking with git worktree? New worktrees seed their index from your main checkout automatically on the first repowise init or repowise update; no re-indexing. See WORKTREES.md.
See Auto-Sync for all sync methods (hooks, file watcher, GitHub/GitLab webhooks, polling).
If your project spans multiple repos, initialize a workspace instead:
cd my-workspace/ # parent dir containing backend/, frontend/, shared-libs/
repowise init . # scans for git repos, indexes each, runs cross-repo analysisRepowise will scan for git repos, prompt you to select which to index, and run cross-repo analysis (co-changes, API contracts, package dependencies). The MCP server serves all repos from a single instance.
repowise workspace list # show repos and their status
repowise workspace add ../new-svc # add a repo
repowise update --workspace # update all stale repos
repowise hook install --workspace # install post-commit hooks for all reposFull guide: Workspaces
Repowise includes a full web dashboard with a repository overview, wiki browser, interactive dependency graph, codebase chat, search, code ownership, hotspots, and dead code detection. In workspace mode, additional pages show a workspace dashboard, cross-repo API contracts, and co-change pairs. The overview page shows a health score, attention items, language breakdown, ownership treemap, quick actions, and a "Graph Intelligence" section with architectural communities and execution flow traces.
If you have Node.js 20+, repowise serve auto-downloads and starts the web UI:
repowise serve
# API: http://localhost:7337
# Web UI: http://localhost:3000The frontend is downloaded once (~50 MB) and cached in ~/.repowise/web/.
To skip the web UI and only run the API: repowise serve --no-ui
git clone https://github.com/repowise-dev/repowise.git
cd repowise
docker build -t repowise -f docker/Dockerfile .
docker run -p 7337:7337 -p 3000:3000 \
-v /path/to/your-repo/.repowise:/data \
-e GEMINI_API_KEY=your-key \
-e REPOWISE_EMBEDDER=gemini \
repowisegit clone https://github.com/repowise-dev/repowise.git
cd repowise && npm install
# Terminal 1: API
repowise serve --no-ui
# Terminal 2: Frontend (with hot reload)
REPOWISE_API_URL=http://localhost:7337 npm run dev --workspace packages/web| Variable | When needed | Description |
|---|---|---|
ANTHROPIC_API_KEY |
Using Anthropic | Anthropic API key |
OPENAI_API_KEY |
Using OpenAI | OpenAI API key |
GEMINI_API_KEY |
Using Gemini | Google Gemini API key |
REPOWISE_EMBEDDER |
Semantic search | Embedder: gemini, openai, or mock (default) |
REPOWISE_DB_URL |
Custom database | SQLite/PostgreSQL connection string (default: .repowise/wiki.db) |
REPOWISE_API_URL |
Frontend only | Backend URL for the web UI (default: http://localhost:7337) |
- User Guide — full CLI reference, web UI features, MCP setup, common workflows, and troubleshooting
- CLI Reference — every command with every flag
- MCP Tools — full tool reference, configuration, parameters, and examples
- Workspaces — multi-repo workspace setup and cross-repo intelligence
- Auto-Sync — hooks, file watcher, webhooks, polling
- Architecture — how repowise is built internally