This document describes Windows-specific differences and additional steps required for installing the Claude Knowledge Management System on Windows.
The install.bat script provides automated installation for Windows users that matches the functionality of install.sh for Mac/Linux. However, there are some Windows-specific considerations and manual steps required.
Before running install.bat, ensure you have:
- Node.js (v18 or higher) - https://nodejs.org/
- npm (comes with Node.js)
- Git for Windows - https://git-scm.com/downloads
- Important: Install with "Git Bash" option selected
- Python (3.8+) - https://www.python.org/downloads/
- Important: Check "Add Python to PATH" during installation
- Open Command Prompt or PowerShell as Administrator
- Navigate to the coding directory
- Run the installer:
install.bat
The script will:
- Check all dependencies
- Install npm packages for main project and lib/ subdirectories
- Clone and build memory-visualizer
- Install all available MCP servers
- Create .env configuration file
- Create command wrappers (.bat files)
- Create bash wrapper scripts
- Configure Git Bash environment
- Initialize knowledge databases
The installer automatically adds the bin directory to your Windows PATH. To activate the changes:
- Close and reopen your terminal (CMD, PowerShell, or Git Bash)
- The
coding,ukb, andvkbcommands should now be available
Note: If the automatic PATH setup failed, you can add it manually:
- Press
Win+Xand select "System" - Click "Advanced system settings" → "Environment Variables"
- Under "User variables", edit "Path" → Click "New"
- Add:
C:\Users\YourUsername\coding\bin(replace with your actual path) - Click "OK" and restart your terminal
# Restart Git Bash or reload configuration
source ~/.bash_profile
# Test commands
coding --help
vkb status
ukb --help# Restart your terminal, then test
coding --help
vkb status
ukb --helpWindows requires two sets of command wrappers:
- Bash wrappers (in
knowledge-management/andbin/): Used by Git Bash - Batch wrappers (in
bin/*.bat): Used by CMD/PowerShell- These are self-detecting and automatically find the installation directory
- No manual environment variable configuration needed
- Windows uses backslashes (
\) for paths - The system internally converts to forward slashes (
/) for cross-platform compatibility - Environment variables use forward slashes (e.g.,
CODING_TOOLS_PATH=/c/Users/...)
- Unix systems use
/tmp/ - Windows uses
os.tmpdir()which typically resolves to:C:\Users\YourUsername\AppData\Local\Temp
This affects:
lib/vkb-server/index.js: PID and log files- Any temporary file operations
- Unix command
lsofdoesn't exist on Windows src/knowledge-management/GraphDatabaseService.jsincludes platform detection to skiplsofon Windows
- Windows uses CRLF (
\r\n) - Unix uses LF (
\n) - Git should be configured to handle this automatically (
core.autocrlf=true)
Git Bash users get automatic configuration via ~/.bash_profile:
export CODING_REPO="/c/Users/YourUsername/coding"
export PATH="/c/Users/YourUsername/coding/bin:$PATH"CMD/PowerShell users need to add to Windows System Environment Variables manually (see Step 2 above).
Problem: coding, ukb, or vkb commands not recognized
Solutions:
- For Git Bash: Run
source ~/.bash_profileor restart Git Bash - For CMD/PowerShell:
- Verify
C:\Users\YourUsername\coding\binis in your PATH - Restart your terminal after adding to PATH
- Verify
Problem: Error about missing files or ports in use
Solutions:
- Check if port 8080 is already in use:
netstat -ano | findstr :8080
- Kill the process using the port if needed
- Ensure memory-visualizer is built:
cd integrations/memory-visualizer npm install npm run build
Problem: Install script warns about Git Bash not in PATH
Solution:
- Reinstall Git for Windows
- During installation, select "Use Git and optional Unix tools from the Command Prompt"
- Or add Git Bash to PATH manually:
- Default location:
C:\Program Files\Git\bin
- Default location:
Problem: Access denied or permission errors during installation
Solutions:
- Run Command Prompt or PowerShell as Administrator
- Ensure antivirus isn't blocking npm or Git operations
- Check file/folder permissions in the coding directory
Problem: npm warnings about Node version
Solution:
- Check installed Node version:
node --version - Ensure you're using Node 18 or higher
- Update Node.js if needed from https://nodejs.org/
After successful installation:
C:\Users\YourUsername\coding\
├── .env # Environment configuration
├── .data\
│ └── knowledge-graph\ # Graph database storage
├── bin\
│ ├── coding.bat # Main command (CMD/PowerShell)
│ ├── ukb.bat # Update KB (CMD/PowerShell)
│ ├── vkb.bat # View KB (CMD/PowerShell)
│ ├── coding # Main command (Git Bash)
│ ├── ukb # Wrapper script (Git Bash)
│ └── vkb # Wrapper script (Git Bash)
├── knowledge-management\
│ ├── ukb # Actual ukb bash script
│ └── vkb # Actual vkb bash script
├── integrations\
│ └── memory-visualizer\ # Knowledge graph visualizer
│ └── dist\ # Built web UI
├── lib\
│ ├── knowledge-api\ # Knowledge API library
│ └── vkb-server\ # VKB server library
└── shared-memory.json # Shared knowledge storage
After installation:
-
Configure API Keys (optional):
- Edit
.envfile - Add your API keys for AI services
- Edit
-
Start Using the System:
# View knowledge base vkb start # Open browser to http://localhost:8080 # Update knowledge base ukb update # Use coding command coding --help
-
Explore Documentation:
- See
README.mdfor general usage - See
CLAUDE.mdfor development guidelines
- See
- No Network Detection: Unlike
install.sh,install.batdoesn't detect Corporate CN vs Public networks - No VSCode Extension Install: VSCode extension must be installed manually
- No Automatic MCP Configuration: MCP server configuration in Claude Desktop must be done manually
- No Hook Setup: Git hooks and status line must be configured manually if needed
If you encounter issues:
- Check this document's Troubleshooting section
- Verify all prerequisites are installed correctly
- Check the GitHub repository issues
- Ensure you're using Git Bash for the best Windows experience
The install.bat script provides core installation functionality but differs from install.sh in these areas:
| Feature | install.sh | install.bat |
|---|---|---|
| Dependency checking | ✓ | ✓ |
| Network detection | ✓ | ✗ |
| Main dependencies | ✓ | ✓ |
| Lib subdirectories | ✓ | ✓ |
| Memory visualizer | ✓ | ✓ |
| MCP servers | ✓ | ✓ (if present) |
| .env creation | ✓ | ✓ |
| Command wrappers | ✓ | ✓ (self-detecting) |
| PATH configuration | ✓ | ✓ (automated) |
| Shell configuration | ✓ | ✓ (Git Bash) |
| Knowledge DB init | ✓ | ✓ |
| VSCode extension | ✓ | ✗ (manual) |
| MCP config | ✓ | ✗ (manual) |
| Hooks setup | ✓ | ✗ (manual) |
| Status line | ✓ | ✗ (manual) |
If you need features not covered by install.bat:
- Open VSCode
- Go to Extensions (Ctrl+Shift+X)
- Search for and install relevant extensions
- Configure in
.vscode/settings.json
- Locate Claude Desktop configuration file
- Add MCP server configurations manually
- Restart Claude Desktop
- Navigate to
.git/hooks - Create hook scripts as needed
- Make them executable:
chmod +x .git/hooks/*
The Windows installation provides all core functionality needed to run the Claude Knowledge Management System. While some advanced features require manual configuration, the automated installer handles the majority of the setup process.
For the best experience on Windows, we recommend using Git Bash as your primary terminal.