Quickstart
Install repowise, index your repo, and connect Claude Code in under a minute. Two paths, self-hosted (pip) or hosted (repowise.dev).
Two ways to start. Self-hosted runs entirely on your machine and your code never leaves. Hosted uses managed infrastructure and a hosted MCP endpoint.
Install
pip install repowiseuv tool install repowisePython 3.11+ required. Verify with repowise --version.
Index the repo
cd path/to/your/repo
repowise init --yesNo API key needed. Repowise parses every file to an AST, builds the dependency graph, reads your git history, scores every file for code health, and finds dead code. It then renders a complete wiki from that structure: file, module, layer and cycle pages, the architecture diagram, the repo overview, API and infra pages, and the onboarding collection. No LLM calls, no key, no network.
This is the step worth doing first, because it costs nothing and answers the question "is this useful on my codebase". If you want to be explicit that this run must not spend anything, spell it out:
repowise init --yes --no-proseThose pages are honest about where they came from. Each ends with a footer saying it was derived from structure, and the repo overview covers composition, entry points, clusters and dependencies rather than what the project does end to end. More in Deterministic wiki.
(Optional) Add a key for model-written docs
The upgrade over the structure-rendered wiki is prose that explains why, plus semantic search. Bring your own key:
export ANTHROPIC_API_KEY=sk-ant-...
# or OPENAI_API_KEY, or run fully offline with Ollama
repowise initWith a provider resolvable, init writes the wiki with a model and
shows you a cost estimate before spending anything. See
Environment variables for the full
provider list.
Already indexed without a key? You do not need to start over. Upgrade
the subsystem pages in place, a slice at a time with repowise generate --path <dir> or wholesale with repowise update --full.
Connect Claude Code
repowise init already wrote .mcp.json at the project root and
registered the server in ~/.claude/settings.json. Restart Claude
Code and you're done.
To wire up another editor, the MCP server config is:
{
"mcpServers": {
"repowise": {
"command": "repowise",
"args": ["mcp", "/path/to/your/project"]
}
}
}Drop it in ~/.cursor/mcp.json, Claude Desktop's
claude_desktop_config.json, or any other MCP-aware client.
On VS Code? The Repowise extension registers the MCP server for you and adds editor-native health signals, refactoring CodeLens, and branch risk on top.
Verify it works
In Claude Code, ask:
Give me a tour of this codebase.
The agent should call get_overview and reply with the architecture
summary. If it falls back to Grep and Read instead, the MCP server
isn't connected. See Troubleshooting.
(Optional) Browse the wiki locally
repowise serveStarts the MCP server and API on http://localhost:7337, plus a
local dashboard at http://localhost:3000: interactive graph,
hotspots, ownership, dead code, the generated wiki, decision records,
and cost tracking. The dashboard needs Node.js 20+ (auto-downloaded
and cached on first run); without it, repowise serve falls back to
API-only mode.
(Optional) Auto-sync on commit
repowise hook installInstalls a post-commit git hook that runs repowise update
automatically. The wiki stays current without you thinking about it.
Other sync methods (file watcher, GitHub webhook, polling) live in
Auto-sync.
Sign in
Open repowise.dev and sign in with GitHub.
Index a repo
Click + Index a new repo and paste a GitHub URL. Public repos are free; private repos need the Repowise GitHub App installed (one click from the same dialog).
Indexing runs on managed infrastructure. You'll get an email when it's done, typically 10 to 30 minutes for the first index, seconds for each subsequent push (auto-synced via webhook).
Connect your editor
Open Settings → Editor, mint an API key, and copy the snippet for Claude Code, Cursor, Claude Desktop, VS Code, or Windsurf. Paste it into your MCP client config and restart.
Verify it works
Ask your agent: "What does this codebase do?" It should call
get_overview against the hosted endpoint and answer in one round-trip.
Self-hosted vs hosted feature parity. You get every CLI command, every MCP tool, the full dashboard. The hosted version adds managed indexing, push-sync via webhooks, federated cross-repo intelligence, and a security scanning layer. See Hosted vs self-hosted.
If your product spans several repos, index them as a workspace and get cross-repo co-changes, API contract extraction, and federated MCP queries.
Lay out the parent directory
my-workspace/
├── backend/
├── frontend/
└── shared-libs/Each subdirectory must be its own git repo.
Initialise
cd my-workspace/
repowise init .Repowise scans for git repos, asks which to include, indexes each, then runs cross-repo analysis (co-change detection, API contract matching, package dependency mapping).
Serve the workspace
repowise serveThe dashboard shows aggregated stats, repo cards, contracts, and
co-change pairs. The MCP server is federated, so pass repo="backend"
or repo="all" to any of the ten tools.
Connect Claude Code
Same .mcp.json is written at the workspace root.
Full guide: Workspaces.
What to do next
- Skim the ten MCP tools so you know what your agent can ask for.
- Read How it works for the four intelligence layers behind those tools.
- Set up Auto-sync so the wiki stays current.
- Browse the CLI reference for all the commands.
Stuck? Run repowise doctor. It checks API keys, store drift,
hook installation, and MCP registration. repowise doctor --repair
fixes most issues automatically.
What is repowise
Repowise indexes your codebase into five intelligence layers (graph, git, wiki, decisions, code health) and exposes them to AI agents through ten task-shaped MCP tools. The why your AI agent has been missing.
Set up with your agent
Hand this page to Claude Code, Cursor, Codex, or any coding agent and it can install repowise, index the repo, and wire up MCP on its own. Includes copy-pasteable prompts, the Claude Code plugin, slash commands, skills, and machine-readable docs endpoints.