HermesAgents Model Configuration Guide
1. Overview
This document explains how to configure a custom model provider in HermesAgents. After the configuration is complete, HermesAgents will send model requests to the specified API endpoint and use the selected model to complete Agent tasks.2. Prerequisites
Before you start, make sure you have the following:- HermesAgents installed on your device.
- A valid API Key.
- The API service endpoint.
- The model name you want to use.
- A working terminal or command-line environment.
3. Open Terminal
Open a terminal or command-line tool on your local device. macOS or Linux users can use Terminal. Windows users can use Command Prompt, PowerShell, or the terminal inside their development environment.4. Configuration Command Format
The HermesAgents configuration command usually follows this format:set should be placed before the configuration key.
5. Configure the Model Provider
Run the following command:6. Configure the API Base URL
Run the following command:/v1. You do not need to manually add /chat/completions.
Recommended:
text
text
7. Configure the API Key
Run the following command:YOUR_API_KEY with your actual API Key.
Example:
Bearer prefix unless HermesAgents explicitly requires a full Authorization header.
If you prefer to configure the API Key through an environment-variable-style setting, you can also use:
8. Configure the Model Name
Run the following command:9. Full Configuration Example
text
10. Full Command Example
11. Verify the Configuration
After completing the configuration, you can run a HermesAgents task or start a test session. If the configuration is correct, HermesAgents should be able to call the specified API endpoint and return model responses successfully.12. Troubleshooting
1. Authentication Failed
Check whether your API Key is valid. You can reset the API Key by running:2. API Request Failed
Check whether the API Base URL is correct:text
/chat/completions.
Correct example:
text
text
3. Model Provider Not Recognized
Make sure the model provider has been set to:4. Model Not Found
Check whether the model name is correct. It is recommended to run the following command again:5. Network Error
Make sure your device can access the API endpoint. If the request fails, check your firewall, proxy, or VPN settings.13. Notes
HermesAgents uses a configuration style similar to OpenAI-compatible APIs. For custom model providers, the API Base URL usually ends with/v1.
Recommended format:
text
model.api_key.
The model provider should be set to:
text