.env file or system environment.
API Configuration
Custom Forge API URL.Example:
URL for the workspace indexing server.Example:
Retry Configuration
Initial backoff time in milliseconds for retries.Example:
Multiplier for backoff time on each retry.Example:
Maximum number of retry attempts.Example:
Suppress retry error messages.Example:
HTTP status codes to retry (comma-separated).Example:
HTTP Configuration
Connection Settings
Connection timeout in seconds.Example:
Read timeout in seconds.Example:
Connection pool idle timeout in seconds.Example:
Maximum idle connections per host.Example:
Maximum redirects to follow.Example:
TLS Configuration
TLS backend to use:
default or rustls.Example:Minimum TLS version:
1.0, 1.1, 1.2, or 1.3.Example:Maximum TLS version:
1.0, 1.1, 1.2, or 1.3.Example:Accept invalid SSL certificates.Example:
Paths to custom root certificate files (comma-separated). Supports PEM, CRT, CER formats.Example:
Keep-Alive Configuration
Keep-alive interval in seconds. Use
none or disabled to disable.Example:Keep-alive timeout in seconds.Example:
Keep connections alive while idle.Example:
Advanced HTTP Settings
Use Hickory DNS resolver.Example:
Enable HTTP/2 adaptive window.Example:
Tool Configuration
Maximum execution time in seconds for a tool before termination.Example:
Maximum image file size in bytes (default: 256 KB).Example:
Automatically open dump files in browser.Example:
Write debug HTTP request files to specified path (absolute or relative).Example:
System Configuration
Maximum bytes for search results (default: 10 KB).Example:
Maximum characters per line for file read operations.Example:
Maximum characters per line for shell output.Example:
Custom path for Forge history file.Example:
Custom banner text to display on startup.Example:
Maximum number of conversations to show in list.Example:
Shell to use for command execution (Unix/Linux/macOS).Example:
Command processor to use (Windows).Example:
Semantic Search Configuration
Maximum number of results from initial vector search.Example:
Top-k parameter for relevance filtering during semantic search.Example:
Display Configuration
Currency symbol for cost display in ZSH theme.Example:
Conversion rate for currency display.Example:
Enable Nerd Font icons in ZSH theme. Auto-detected by default.Example:
Alternative variable for enabling Nerd Font icons (same as NERD_FONT).Example:
ZSH Plugin Configuration
Command to use for forge operations in the ZSH plugin.Example:
Logging Configuration
Log filter level using standard tracing filter syntax.Default:
forge=infowhen tracking enabledforge=debugwhen tracking disabled
forge=error- Only errorsforge=warn- Warnings and errorsforge=info- Informational messagesforge=debug- Debug informationforge=trace- Detailed tracing
Configuration Examples
Next Steps
forge.yaml Reference
Configure model behavior and workflow
Custom Rules
Define coding guidelines