Supported provider families
Place these variables in the Hermes environment file for your environment (for example,
environments/dev/.env or environments/live/.env). Never commit API keys to version control.
Add a provider key
1
Generate an API key
Choose your provider and create an API key in that provider’s dashboard.
2
Add the key to your environment file
Open the
.env for your environment (root .env for local dev, or environments/<name>/.env per environment). Add the provider’s documented environment variable (for example, ANTHROPIC_API_KEY, OPENAI_API_KEY, or AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY).3
Restart Fox
On your local machine:On a server:
4
Verify the setup
Run the doctor command to confirm Fox can reach the provider:
Bedrock and AWS IMDS
By default,VULPY_IMDS_LOCK=1 installs an nft reject rule that blocks 169.254.169.254 for the host and all containers. This prevents Fox from silently using the EC2 or Lightsail VM IAM role to access AWS services.
If you want Bedrock to authenticate through the VM role instead of explicit keys, set VULPY_IMDS_LOCK=0 before you start Fox. Otherwise, pass explicit Bedrock credentials via environment variables as described above. See the IMDS lock page for full details.
Rotating keys
Rotate keys at the provider dashboard, then update the value in your.env file and restart Fox using the same down/up commands. The project .gitignore already excludes .env files, so keys stay out of version control. Never commit credentials.
Reference
For provider-specific setup, model selection, and billing details, consult the official documentation:IMDS Lock
Learn how the IMDS lock works and when to disable it.
Fox Overview
Return to the Fox operator overview and core concepts.