Common issues and solutions for Forge CLI
Problem: forge: command not found after installation.
Solutions:
echo 'export PATH="$PATH:$HOME/.forge/bin"' >> ~/.bashrc
source ~/.bashrc%USERPROFILE%\.forge\bin to your User PATH~/.zshrc instead of ~/.bashrcProblem: "Cannot be opened because the developer cannot be verified"
Solution:
xattr -d com.apple.quarantine ~/.forge/bin/forgeProblem: Permission errors on macOS/Linux.
Solution:
chmod +x ~/.forge/bin/forgeProblem: EACCES permission error with npm.
Solutions:
sudo npm install -g @rightnow/forge-clicurl -fsSL https://releases.rightnowai.co/forge/install.sh | bashProblem: "Not authenticated" when running commands.
Solution: Sign in first:
forge loginProblem: Browser doesn't open automatically during login.
Solutions:
Problem: Authentication errors after being logged in.
Solution: Re-authenticate:
forge logout
forge loginProblem: "Backend unreachable" or connection errors.
Solutions:
forge health to verify backend statusProblem: Operations timing out.
Solution: Increase the timeout:
forge config set api.timeout 60000Problem: AI couldn't generate a working kernel.
Solutions:
forge optimize --qualityforge optimize --format tritonforge browse --task <id>Problem: Optimization results are slower than expected.
Solutions:
forge optimize --quality --no-early-stoptorch.compile() as baseline which is harder to beatforge optimize --gpu H100Problem: Optimization is running for too long.
Solution: Use turbo mode:
forge optimize --turboProblem: "Insufficient credits" error.
Solutions:
forge creditsProblem: Credit balance seems incorrect.
Solution: Refresh your session:
forge logout
forge login
forge creditsIf all else fails, reset Forge completely:
forge logout
forge config reset -y
forge session clean --days 0 -y
forge loginBefore reaching out: Run forge --version and include your OS, error messages, and steps to reproduce.