Documentation Index
Fetch the complete documentation index at: https://mintlify.com/antinomyhq/forge/llms.txt
Use this file to discover all available pages before exploring further.
Common Issues
This guide covers common problems you might encounter while using Forge and their solutions.Installation Issues
Installation Script Fails
If the installation script fails:- Check your internet connection
- Ensure you have the necessary permissions (try with
sudoif needed) - Verify your system meets the requirements
- Try building from source:
npm Installation Issues
For users installing via npm:Provider Configuration Issues
Provider Login Fails
Ifforge provider login fails:
- Check API key validity: Ensure your API key is correct and active
- Network issues: Verify you can reach the provider’s API endpoint
- Run with verbose logging:
Migration from Environment Variables
If you’re experiencing issues after migrating from.env files:
- Remove old environment variables from your
.envfile - Run
forge provider loginto set up credentials properly - Restart your terminal session
Model Selection Issues
Model Not Found
/model command in the Forge CLI to see available models:
GitHub Copilot Disabled Model Error
If you see an error about GitHub Copilot models being disabled, ensure you’re using a supported model for your provider.Runtime Issues
Session Hangs or Times Out
If Forge hangs during operation:- Check if a tool is taking too long (default timeout: 300s)
- Adjust timeout if needed:
- Run with verbose logging to identify the issue:
Maximum Requests Per Turn Reached
If you see “Maximum requests per turn reached”:- This is a safety limit (default: 50 requests)
- You’ll be prompted to continue or stop
- Adjust the limit in
forge.yaml:
Tool Failures
If tools repeatedly fail:- Check the error message for specific details
- Verify file permissions for file operations
- Ensure required dependencies are installed
- Adjust failure limit in
forge.yaml:
File Operation Issues
Permission Denied Errors
- Check file/directory permissions
- Ensure you have write access to the target directory
- For restricted environments, use restricted shell mode:
File Size Limits
Forge has default limits for file operations:- Image files: 256 KB (configurable with
FORGE_MAX_IMAGE_SIZE) - Search results: 10 KB (configurable with
FORGE_MAX_SEARCH_RESULT_BYTES) - Line length: 2000 characters (configurable with
FORGE_MAX_LINE_LENGTH)
HTTP and Network Issues
Connection Timeouts
Adjust HTTP timeouts:SSL/TLS Certificate Issues
If you encounter certificate validation errors:- Add custom root certificates:
- Disable certificate validation (development only):
Retry Configuration
If you’re experiencing frequent transient errors:MCP (Model Context Protocol) Issues
MCP Server Connection Fails
If your MCP server won’t connect:- Verify server configuration:
- Check server logs: Run the MCP server command manually to see error messages
-
Validate JSON configuration: Ensure
.mcp.jsonis properly formatted - Check environment variables: MCP servers may need specific environment variables
MCP Tools Not Available
If MCP tools don’t appear in Forge:- Restart Forge after adding MCP servers
- Verify the server is running correctly
- Check server output for errors
Git Operations Issues
Git Operations Fail
If git commands fail within Forge:- Ensure git is installed and in your PATH
- Verify you have proper git credentials configured
- Check repository permissions
- For GitHub operations, ensure
ghCLI is installed and authenticated
Shell Integration Issues
ZSH Plugin Not Working
If the ZSH plugin isn’t functioning:- Verify installation: Check that the plugin is loaded in your
.zshrc - Reload shell: Run
source ~/.zshrc - Check FORGE_BIN: Ensure it points to the correct forge executable:
- Run doctor command:
Theme Issues
If the ZSH theme doesn’t display correctly:- Check Nerd Font support:
- Customize currency display:
Performance Issues
Slow Search Operations
If semantic search is slow:- Adjust search limits:
- Limit directory traversal depth in
forge.yaml:
High Memory Usage
If Forge consumes too much memory:- Reduce conversation history
- Limit max conversations:
- Reduce search result limits
Logging and Debugging
Enable Debug Logging
For detailed debugging information:Debug HTTP Requests
To debug API communication:Suppress Retry Errors
If retry error messages are cluttering output:Getting Help
If you’re still experiencing issues:- Check existing issues: Visit GitHub Issues to see if your problem has been reported
- Join Discord: Get community support on Discord
- Report a bug: Submit a bug report with:
- Forge version (
forge --version) - Operating system and version
- Steps to reproduce
- Error logs with
--verboseflag - Your
forge.yamlconfiguration (remove sensitive data)
- Forge version (