Config File Location
The configuration file is located at:Configuration Schema
The configuration file uses the following structure:Configuration Options
The default port to use for HTTP webhook servers when using the
ahh webhook command.The default port to use for HTTPS webhook servers when using the
ahh webhook command.An array of Discord webhook configurations. Each webhook object contains:
name(string): A friendly name to identify the webhookurl(string): The full Discord webhook URL
The name of the default Discord webhook to use when sharing content. Must match one of the webhook names in the
DISCORD_WEBHOOKS array.Default Configuration
When first created, the config file contains these default values:How Configuration is Loaded
Ahh CLI loads configuration using the following process:- Checks if
~/.ahh/ahh.config.jsonexists - If it doesn’t exist, creates it with default values
- If it exists, reads and parses the JSON file
- Merges the file contents with default values (file values take precedence)
- Validates the configuration against the schema
All configuration options are optional. If a value is missing from your config file, Ahh will use the default value.
Manual Configuration
You can manually edit the configuration file with any text editor:Example: Custom Port Configuration
Example: Custom Port Configuration
Example: Multiple Discord Webhooks
Example: Multiple Discord Webhooks
Related Commands
- Discord Webhooks Configuration - Learn how to configure Discord webhooks using the CLI
- share-discord - Share content to Discord using configured webhooks
- webhook - Start a webhook server using configured ports
