Welcome!
For development, we have a shared windows machine, via shadow.tech.
You can access the machine either from the browser or with the desktop app:
- Shadow.tech Web viewer:
- Shadow.tech desktop app:
- They claim its better, idk.
- https://shadow.tech/download/
Supposedly you can also use Window's Remote Desktop to access the machine instead, but I've not tried it. Shadow.tech claims their protocol is better optimized for lower bandwidth use & hence smoother performance.
You shouldn't need this - but just in case you stop using Shadow.tech, or make a new account, here's a guide on how to get from a blank Windows install to a Codebuff install.
Surprisingly: most guides in fact recommend running everything in an Admin PowerShell, contra to advice to not use sudo on eg: Linux/macOS.
- Install Choco: Open PowerShell as Admin, and run the command from https://chocolatey.org/install
- Install NVM: Restart PowerShell (still as Admin) and run
choco install nvm -y - Install Node: Restart PowerShell (still as Admin) and run
nvm install node - Install Codebuff: Run
npm i -g codebuff
Running into problems? Here are solutions to the most common Windows-specific issues.
Symptom:
PS C:\> codebuff
❌ Failed to determine latest version
Please check your internet connection and try againCause: Codebuff checks GitHub for the latest release on first run. This fails when:
- Corporate firewall blocks
github.com - Proxy settings not configured
- Network connectivity issues
- VPN required for external access
Solutions:
-
Verify GitHub access:
curl https://github.com/CodebuffAI/codebuff/releases.atom
If this fails, you have a network/firewall issue.
-
Configure npm proxy (if behind corporate proxy):
npm config set proxy http://your-proxy-server:port npm config set https-proxy http://your-proxy-server:port
-
Disable VPN temporarily or whitelist GitHub in your firewall
-
Clear npm cache and reinstall:
npm cache clean --force npm uninstall -g codebuff npm install -g codebuff
Reference: Issue #294
Symptom:
Bash is required but was not found on this Windows system.
Cause: Codebuff requires bash for command execution. This error appears when:
- Git for Windows is not installed
- You're not running inside WSL
- bash.exe is not in your PATH
Solutions:
-
Install Git for Windows (recommended):
- Download from https://git-scm.com/download/win
- This installs
bash.exewhich Codebuff will automatically detect - Works in PowerShell, CMD, or Git Bash terminals
-
Use WSL (Windows Subsystem for Linux):
- Provides full Linux environment with native bash
- Install:
wsl --installin PowerShell (Admin) - Run codebuff inside WSL for best compatibility
-
Set custom bash path (advanced):
- If bash.exe is installed in a non-standard location:
set CODEBUFF_GIT_BASH_PATH=C:\path\to\bash.exe
Reference: Issue #274
Symptom: Git operations (commit, rebase, complex commands) fail with syntax errors or unexpected behavior.
Cause: Complex git commands may have issues with Windows path handling or shell escaping.
Solutions:
-
Ensure Git for Windows is installed:
- Download from https://git-scm.com/download/win
- Codebuff uses bash.exe from Git for Windows for command execution
-
Use WSL for complex operations:
- Provides full Linux environment with native bash
- Install:
wsl --installin PowerShell (Admin) - Run codebuff inside WSL for best compatibility
Reference: Issue #274
Symptom:
Press ENTER to open your browser and finish logging in...
Caught exception: Error: Executable not found in $PATH: "start"
Error: Executable not found in $PATH: "start"
TLCWeb > Unable to login. Please try again by typing "login" in the terminal.
Cause:
When running Codebuff in Git Bash (MINGW64), the start command is not available in PATH. The browser auto-open feature fails.
Solutions:
-
Manually open the login URL (easiest):
- Codebuff displays the login URL after the error
- Copy the full URL starting with
https://codebuff.com/login?auth_code=... - Paste into your browser
- Complete login in browser
- Return to terminal - login will succeed
-
Use native Windows terminals:
- PowerShell:
powershell - Command Prompt:
cmd - These have
startcommand available
- PowerShell:
-
Clear cache if login still fails (per issue #299):
npm cache clean --force npm uninstall -g codebuff npm install -g codebuff
Reference: Issue #299
What it means: This is not an error - it's an informational message indicating:
- Your local binary needs to be downloaded/updated
- "error" is a placeholder version (not a real error state)
- Codebuff will automatically download the correct version
What to do:
- Wait for the download to complete: "Download complete! Starting Codebuff..."
- If download fails, check your internet connection
- If it persists, try the solutions in "Failed to determine latest version" above
Reference: Issue #299
If these solutions don't resolve your problem:
- Search existing issues: https://github.com/CodebuffAI/codebuff/issues
- Open a new issue: https://github.com/CodebuffAI/codebuff/issues/new
- Join Discord community: https://codebuff.com/discord
When reporting issues, please include:
- Windows version:
winvercommand - PowerShell/Git Bash/CMD
- Node version:
node --version - Full error message
- Steps to reproduce