Windows¶
CodeNavi runs on Windows 11 inside Docker Desktop, with your NVIDIA GPU passed through by Docker Desktop's WSL2 backend. You install Docker Desktop, run two PowerShell lines, and from then on CodeNavi is a URL your Windows IDE talks to, http://localhost:8765. You never open a Linux shell, and there is no port proxy to configure.
AI agent installing this for someone? Follow https://codenavi.com/docs/setup-agent.md instead. It is written for agents to execute, step by step.
"No WSL" usually means "no Linux." WSL2 is the layer Docker Desktop uses to run containers and it is the only path to GPU acceleration in Docker on Windows (the legacy Hyper-V engine cannot pass a card through, so it cannot index). Docker Desktop sets WSL2 up and manages it for you.
Docker Desktop or Linux inside WSL? Pick one¶
Many Windows developers already have WSL2 and ask whether to install the Windows build or the Linux build inside their distro. Both use the same NVIDIA GPU at the same speed, because Docker Desktop also runs on WSL2. The deciding question is where your coding agent and your repositories live.
| Your setup | Install | Why |
|---|---|---|
Your agent is a Windows app: the ChatGPT desktop app (Codex), Claude Desktop, Cursor, Windsurf, VS Code, JetBrains, Antigravity. Your repositories are on a Windows drive (C:\…). |
Docker Desktop, this page | localhost:8765 reaches every Windows app with nothing to configure. The installer tests the GPU and stops with the fix if it is unusable. We certify this path on every release. |
Your agent runs in a WSL shell: Claude Code, Codex CLI or OpenCode started from Ubuntu. Your repositories are in the Linux filesystem (~/code/…). |
Linux build inside WSL, Setup | Agent, server and code share one Linux filesystem, which indexes much faster than a Windows drive read through /mnt/c. localhost:8765 works inside the distro. The installer sets up the NVIDIA Container Toolkit, or stops with the exact fix. |
| A mix: a Windows app working on code that lives inside WSL. | Either. Docker Desktop is less to maintain. | With the Linux build, a Windows app needs the two extra steps in Self-managed WSL2 install, and you redo the port proxy when the WSL IP changes. |
Not sure? Choose Docker Desktop. You can switch later: remove one install (setup.ps1 -Purge or setup.sh --purge), install the other, and index again. Run only one at a time.
Two rules hold on either path:
- The Windows NVIDIA driver is the only GPU driver. Never install a Linux GPU driver inside WSL.
- On the Linux build, keep the repository out of
/mnt/c. The installer warns when it is there.
What you need¶
- Windows 11 (Windows 10 21H2+ works the same way).
- An NVIDIA GPU, RTX 20-series or newer (compute ≥ 7.5). 24 GiB cards index at full speed; 11–16 GiB is still Tier A, just slower. Pre-RTX cards (GTX 10-series / Pascal) are not supported, the installer checks and stops.3
- A recent NVIDIA Windows driver, it carries the WSL2 CUDA runtime (≥ 570.65 for this build). Never install a Linux GPU driver inside WSL; it breaks passthrough.
- ~35 GB free disk for the image and your index: about 10 GB in the install folder and about 25 GB on the drive that holds Docker Desktop's disk image (
C:unless you moved it). The installer checks both drives before it downloads anything. No admin rights are needed to run the installer. - AMD GPUs: Windows is NVIDIA-only. AMD acceleration is a Linux path (GPU compatibility).
Install¶
-
Install Docker Desktop and start it. Wait for the whale icon to read Engine running. On Windows 11 it enables the WSL2 backend itself. Docker Desktop is free for organisations under 250 employees / USD 10M revenue; larger organisations need a paid Docker plan. The Windows installer runs on Docker Desktop only: it stops if Podman answers instead. This is the only thing you install by hand.
-
Run the install command from your trial email, PowerShell, no admin. The first line saves a script you can read, the second runs it:
curl.exe -fsSL "https://codenavi.com/trial/install/<your-token>?os=windows" -o codenavi-install.ps1 powershell -ExecutionPolicy Bypass -File .\codenavi-install.ps1It downloads CodeNavi, verifies every file against the checksums published by codenavi.com, loads the image and installs into
%USERPROFILE%\codenavi. It asks one question: the absolute path of the repository to index (Explorer's Copy as path pastes it straight in). An air-gapped package instead unpacks and runspowershell -ExecutionPolicy Bypass -File .\setup.ps1, see Air-gapped setup.Not enough space on
C:? Run$env:CODENAVI_INSTALL_DIR = 'F:\codenavi'(your own path) in the same PowerShell window before the second command. The folder holds the download and the update cache (about 18 GB). Docker keeps the loaded image and your index in its own disk image (about 25 GB). The installer checks that drive too and stops if it is short, so if it is also the full drive, move it first: Docker Desktop → Settings → Resources → Advanced → Disk image location. -
The installer proves the GPU works. It does not just look for a card, it runs a real CUDA operation inside the container. If the GPU is usable you see
GPU: enabledand the autotune picks a batch size for your VRAM. If it is not (old driver, wrong Docker backend, pre-RTX card) it stops with the exact fix rather than silently falling back to CPU, which would be ~100× slower. -
Open Connect and wire your IDE. When it finishes, open
http://localhost:8765/connect, paste the token it printed, click Build it first → to index, then pick your editor, the wizard hands you a ready-made config with the token filled in. Docker Desktop publishes the port to Windows, solocalhost:8765works from every Windows MCP client with no port proxy and nonetsh.
Updates are one command from your install folder (%USERPROFILE%\codenavi unless you chose another): .\update.ps1, see Updating CodeNavi.
Connect a Windows IDE¶
Most Windows IDEs speak MCP Streamable HTTP natively and need only the URL and the token. The connect wizard generates each of these; the shapes, for reference:
Each IDE name links to its full guide.
| IDE | Config location | Entry |
|---|---|---|
| Claude Code (Windows) | .mcp.json in project root |
{"codenavi":{"type":"http","url":"http://localhost:8765/mcp","headers":{"Authorization":"Bearer <token>"}}} |
| ChatGPT Codex app | %USERPROFILE%\.codex\config.toml |
[mcp_servers.codenavi] with url = "http://localhost:8765/mcp" and bearer_token_env_var = "CODENAVI_AUTH_TOKEN" |
| Cursor | Settings → MCP → Add server | URL http://localhost:8765/mcp, transport HTTP, same header |
| Windsurf | Settings → MCP servers | URL http://localhost:8765/mcp |
| VS Code + Cline / Continue | Extension MCP settings | URL http://localhost:8765/mcp |
| Google Antigravity | MCP servers panel | URL http://localhost:8765/mcp/<codebase> |
| JetBrains AI Assistant / Junie | MCP servers panel | URL http://localhost:8765/mcp |
Claude Desktop's Home chat is the exception: it starts local servers only as programs it runs itself, so it uses the CodeNavi Desktop extension (CodeNavi 1.3.67 or later), which runs on Claude Desktop's built-in Node.js. In PowerShell:
curl.exe -o claude.zip http://localhost:8765/plugins/claude.zip
Expand-Archive claude.zip -DestinationPath . -Force
start .\codenavi-plugin-claude\desktop-extension\codenavi.mcpb
Choose Install (it warns that the extension is unsigned), then in Settings → Extensions → CodeNavi paste CODENAVI_AUTH_TOKEN from your .env and turn on Enable: Claude Desktop leaves an extension that needed settings switched off. Start a new chat: codenavi's tools are there. The Code tab needs none of this, it connects over HTTP with the Claude Code plugin. Phones and the Connectors list need HTTPS instead: Claude Desktop connectors.
Your card, decoded¶
CodeNavi autotunes to the GPU at startup; you configure nothing.1
| VRAM | What happens |
|---|---|
| ≥ 17 GiB (RTX 4090 / 3090, A5000-class) | Full speed, encode batch 16, reranker on the GPU. A 30k-file repo indexes in minutes. |
| 11 – 16 GiB | Still Tier A, batch 1–4, reranker on the GPU; on an 11 GB card it steps to the CPU while a reindex is encoding. Slower indexing, identical search quality. |
| 8 – 10 GiB | Weights stay int8-resident, batch 2, ~23 % less indexing throughput, identical search quality.2 |
| Architecture | The image's CUDA build (cu128) covers RTX 20- through 50-series, sm_75 → sm_120. |
With 12 GiB or less, don't run a local chat model on the same card: it gets too little memory and runs mostly on the CPU. See Providers for the options.
Sharing the card with Ollama or another workload? CODENAVI_VRAM_BUDGET_GIB in Configuration tells the autotune to leave room.
Self-managed WSL2 install (no Docker Desktop)¶
If you run CodeNavi by hand inside a WSL2 distro with Docker --network=host, not the installer path above, Windows localhost does not reach it automatically, even with networkingMode=mirrored. Two extra steps, once:
- Bind to all interfaces in
~/codenavi/.env:CODENAVI_HOST=0.0.0.0, thendocker compose up -d. Verify inside WSL withss -tlnp | grep 8765, it must show0.0.0.0:8765, or the proxy below returns connection-reset because nothing listens on the WSL eth0 IP. -
Add the WSL2 → Windows port proxy from an admin PowerShell:
$wslIp = (wsl hostname -I).Trim().Split()[0] netsh interface portproxy delete v4tov4 listenport=8765 listenaddress=127.0.0.1 2>$null netsh interface portproxy add v4tov4 listenport=8765 listenaddress=127.0.0.1 connectport=8765 connectaddress=$wslIpconnectaddress=localhostdoes not work: it must be the eth0 IP, which can change on reboot; re-run the snippet (or wrap it in a logon scheduled task) if connectivity breaks. Verify from Windows:curl http://localhost:8765/health.
For a CodeNavi server on a different box, skip the proxy entirely and point the client at the server's LAN address, Remote access → Same LAN. An SSH tunnel onto localhost:8765 would collide with a port proxy if you have both.
Removing CodeNavi¶
powershell -ExecutionPolicy Bypass -File setup.ps1 -Purge in the install folder removes everything the installer created, the container, the image, the five named volumes (<name>-index, -lancedb, -data, -logs, -reports), logs\, .layer-cache\, .env and .update.conf, after listing it and asking you to type purge. Your repository is never touched; the folder itself and Docker Desktop stay. Same contract as setup.sh --purge on Linux: Setup → Removing CodeNavi.
Snags & fixes¶
| Symptom | Fix |
|---|---|
GPU present but unusable by the container |
The installer's CUDA test failed. In order: update the NVIDIA Windows driver (≥ 570.65); run wsl --update; confirm Docker Desktop → Settings → General → Use the WSL 2 based engine is on. |
compute capability < 7.5 |
A pre-RTX card. This build needs RTX 20-series or newer. To index on CPU anyway (much slower, needs lots of RAM): re-run with $env:CODENAVI_GPU_CPU_OK='1' set first. |
AMD (Radeon) card: none detected - CPU mode |
AMD cards do not work with CodeNavi on Windows. The AMD build uses ROCm through the Linux amdgpu driver (/dev/kfd), which Docker Desktop does not have. The installer warns you and CodeNavi runs on the CPU, where indexing is about 100x slower. Use an NVIDIA card, run CodeNavi on a Linux machine with the AMD card, or use a cloud GPU. |
virtualization is DISABLED |
Docker Desktop cannot start its VM. Enable Intel VT-x / AMD-V in BIOS/UEFI, then in an admin PowerShell run bcdedit /set hypervisorlaunchtype auto and reboot. |
| Container is OOM-killed during a reindex | Docker Desktop's VM defaults to about half your RAM. Create %USERPROFILE%\.wslconfig with [wsl2] on one line and memory=12GB on the next, then restart Docker Desktop. |
IDE can't reach localhost:8765 |
Confirm Docker Desktop is running and the container is up (docker compose ps in your install folder, default %USERPROFILE%\codenavi). No port proxy is needed on the Docker Desktop path. |
Raw curl http://localhost:8765/mcp closes immediately |
Expected, /mcp speaks Streamable HTTP, not REST. Smoke-test with /health. |
Everything else: Troubleshooting.