Common Issues
Solutions for the most common problems you'll encounter with Forge.
When something isn't working, start here. Most problems are solved by one of the fixes below.
First Step: Run forge doctor
Before debugging manually, run diagnostics:
bashforge doctor
This checks your config file, authentication, API connectivity, token validity, Claude CLI installation, and MCP registration. If any check fails, the output tells you exactly what to fix.
Authentication Issues
"Not logged in" or "No credentials found"
Cause: You haven't authenticated yet, or the config file was deleted.
Fix:
bashforge login
Login hangs after opening browser
Cause: The browser opened but the CLI can't detect the completed auth flow.
Fix:
- Copy the URL from the terminal output
- Paste it into your browser manually
- Complete the login and enter the device code
- Return to the terminal — it should detect the authorization
If it still hangs, press Ctrl+C and try again.
"Token expired" or 401 errors
Cause: Your access token has expired.
Fix: The CLI auto-refreshes tokens on 401 responses. If auto-refresh fails (e.g., refresh token is also expired):
bashforge login
Wrong team or user
Cause: You're authenticated as a different user than expected.
Fix:
bashforge whoami
If the user is wrong:
bashforge logout forge login
CLI Command Issues
"Ticket not found" (404)
Cause: The ticket ID doesn't exist or belongs to a different team.
Fix:
- Double-check the ticket ID (format:
aec_...or shorthand likeT-001) - Verify you're on the correct team with
forge whoami - Check the ticket exists in the web app
"Invalid status transition" or "Cannot X from Y"
Cause: The command you're running isn't valid for the ticket's current status.
Fix:
bashforge show <id>
Check the current status, then refer to the Ticket Lifecycle to see which commands work at which status.
Common examples:
forge reviewonly works on Dev-Refining ticketsforge developonly works on Forged or Executing tickets
"Not a git repository"
Cause: You're running a command that needs git context (like forge develop) from outside a git repository.
Fix:
bashcd /path/to/your/project
Ensure you're in the root of a git repository (the directory containing .git).
Command not found: forge
Cause: The CLI isn't installed globally, or it's not in your PATH.
Fix:
bashnpm install -g forge-aec
If already installed, check your PATH:
bashwhich forge
MCP Issues
Tools not showing up in Claude Code
Cause: MCP server isn't registered, or the AI assistant needs a restart.
Fix:
bashforge mcp install
Then restart Claude Code (or your AI assistant) completely.
MCP server crashes on startup
Cause: Usually a Node.js version issue.
Fix:
bashnode --version
Ensure you're on Node.js 20+. If not:
bashnvm install 20 nvm use 20
MCP tools return "Not authenticated"
Cause: The MCP server can't find your credentials.
Fix:
bashforge login forge doctor
The MCP server reads credentials from ~/.forge/config.json. If the file is missing or empty, re-authenticate.
.mcp.json not detected
Cause: The config file isn't in the project root.
Fix: Ensure .mcp.json is at the same level as your .git directory:
your-project/
├── .git/
├── .mcp.json ← here
├── src/
└── package.json
Web App Issues
Can't approve a ticket
Cause: Only the PM who created the ticket (or a team admin) can approve it. The ticket must also be in Review status.
Fix:
- Check the ticket status — it must be in Review
- Verify you're the ticket creator
- If the ticket needs re-baking first, click Re-bake before approving
Re-bake fails or produces the same spec
Cause: No developer Q&A was submitted, so there's no new context to incorporate.
Fix:
- Ensure the developer has submitted a review session (check for Q&A pairs in the ticket detail)
- If Q&A is present but the spec didn't change meaningfully, the original spec may already be comprehensive
Attachments fail to upload
Cause: File size or format issue.
Fix:
- Check file format: PNG, JPG, GIF, WebP, PDF, DOC, DOCX
- Maximum 5 attachments per ticket
- Ensure file isn't corrupted
Platform Issues
Windows permission warnings on config file
Cause: Windows doesn't support Unix-style file permissions (0600). The CLI warns about this but continues working.
Fix: This is expected and harmless on Windows. The warning is informational only.
Slow API responses
Cause: Network latency or AI generation in progress.
Fix:
- Check your network connection
- AI-powered operations (spec generation, question generation) take longer — this is normal
- If the API is consistently slow, check
forge doctorfor connectivity issues