Environment variables
Provider API keys, embedder overrides, and runtime knobs that configure repowise's behavior at install and index time.
Most things are configured via .repowise/config.yaml (see
repowise init — it generates one for you).
The handful of settings that make sense as environment variables
are below.
LLM provider keys
Pick one. Anthropic is the default; pass --provider <name> on
init / update / mcp to switch.
| Variable | Used by |
|---|---|
ANTHROPIC_API_KEY | Default provider |
OPENAI_API_KEY | --provider openai |
GEMINI_API_KEY | --provider gemini |
OLLAMA_HOST | --provider ollama (default http://localhost:11434) |
Repowise also persists provider/model choice into .repowise/state.json
during init, so the MCP server and update runs reuse the same
provider without you re-specifying.
Embedder overrides
The embedder powers semantic search and the RAG behind get_answer.
| Variable | Notes |
|---|---|
VOYAGE_API_KEY | Voyage embeddings (highest quality on code) |
OPENAI_API_KEY | Falls back to OpenAI embeddings if VOYAGE_API_KEY is unset |
GEMINI_API_KEY | Gemini embeddings — set explicitly with --embedder gemini |
repowise init auto-detects which embedder to use based on which
key is set.
Runtime knobs
| Variable | Default | Purpose |
|---|---|---|
REPOWISE_DATA_DIR | <repo>/.repowise/ | Override the per-repo data directory. |
REPOWISE_LOG_LEVEL | INFO | Set to DEBUG for verbose logs (or WARNING to quiet down). |
REPOWISE_TELEMETRY | 1 | Set to 0 to disable anonymous usage telemetry. |
PYTHONIOENCODING | — | On Windows PowerShell, set to utf-8 if you see codec errors during indexing. |
Hosted version
If you're using repowise.dev, none of the above apply — the platform manages keys for you. The only env var you'd set client-side is the API key your editor uses to talk to the hosted MCP endpoint, which the Settings → Editor page generates automatically.
BYOK on hosted — under Settings, you can attach your own Anthropic, OpenAI, or Gemini key. Repowise never sees your LLM calls; they go directly from our infrastructure to your provider.
Install repowise
Install the repowise CLI on macOS, Linux, or Windows via pip or uv. Verify, upgrade, switch versions, or uninstall — every step.
Language support
14 languages with full AST support and dedicated resolvers — plus per-language framework awareness for Django, FastAPI, Flask, Express, Spring Boot, Rails, Laravel, and more.