The free tier is closed for most users.Thank you for every chat along the way. Paid models work as before, and your account, API keys, and balance stay as they are.Read why

Hermes Agent API: Use FreeTheAI as a Custom Endpoint

Hermes Agent uses FreeTheAI as a custom endpoint, set up with hermes model or in config.yaml.

WebsiteSource codeAPI reference

Steps

  1. Run the setup wizard

    In a terminal (outside a chat session) run hermes model, choose Custom endpoint, and enter the API base URL, your key, and the model name.

  2. Or edit config.yaml

    The same setup in ~/.hermes/config.yaml:

    yaml
    model:
      default: glm-5.3
      provider: custom
      base_url: https://api.freetheai.org/v1
      key_env: FREETHEAI_API_KEY
  3. Switch models later

    Inside a session, run /model custom:kimi-k3.1-pro to switch to another FreeTheAI model.

How this guide was checked: Checked against Hermes Agent's provider docs (custom endpoint) on 2026-09-29.

Tips

  • Hermes needs a model with at least 64K context. All the recommended FreeTheAI models qualify.
  • In the Hermes desktop app: open Settings (the gear), go to the Model tab, set Endpoint to Custom Endpoint, press Setup custom endpoint, keep it on Local, enter the API base URL and your key, and press Save. The model list loads by itself.

Troubleshooting

Can I keep the key out of config.yaml?

Yes. Set key_env to an environment variable name, such as FREETHEAI_API_KEY, and export your key there.

Common errors

  • 401: the key is wrong or incomplete. Paste the whole key.
  • 403: follow a provider of the model, or confirm your email.
  • 404: the model ID or URL is wrong.
  • 429: daily limit reached, or too many requests at once.

More guides: Coding tools

All setup guides

Did this guide work for you?