Terminal AI coding assistant by Nous Research
Hermes Agent is a terminal AI coding tool by Nous Research. Connect it to Qwen Cloud using pay-as-you-go, Coding Plan, or Token Plan (Team Edition).
Use the
Replace
Replace
Replace
After completing the configuration, run the following command to send a test message:
If a normal response is returned, the configuration is successful. To switch models, specify the model using the
If you encounter errors during configuration, refer to the FAQ documentation for the corresponding billing plan:
Hermes Agent uses OpenRouter as the default inference provider. When connecting to Qwen Cloud,
Install Hermes Agent
- Run the following command in the terminal to install Hermes Agent. The installation script automatically installs dependencies such as Python and Git.
Windows does not support native installation. Install WSL2 first, then run the above command in WSL2.
- After installation, reload the terminal environment.
- Run the following command to verify the installation. A version number in the output indicates a successful installation.
Configure access credentials
Use the hermes config set command to configure access parameters. Enter the Base URL and API Key corresponding to your chosen plan:
- Token Plan (Team Edition): Seat-based subscription; token consumption deducts Credits.
- Coding Plan: Fixed monthly subscription, metered by model invocation count.
- Pay-as-you-go: Post-paid based on actual usage.
Token Plan (Team Edition)
Replace YOUR_API_KEY with the Token Plan (Team Edition) dedicated API Key. For available models, refer to Token Plan (Team Edition) supported models.
Coding Plan
Replace YOUR_API_KEY with the Coding Plan dedicated API Key. For available models, refer to Coding Plan supported models.
Pay-as-you-go
Replace YOUR_API_KEY with your Qwen Cloud API Key. For available models, refer to OpenAI compatible - Supported models.
Verify configuration
After completing the configuration, run the following command to send a test message:
-m parameter:
FAQ
Error codes
If you encounter errors during configuration, refer to the FAQ documentation for the corresponding billing plan:
- Pay-as-you-go: Error codes and troubleshooting
- Coding Plan: Coding Plan FAQ
- Token Plan (Team Edition): Token Plan (Team Edition) FAQ
Still connecting to OpenRouter after configuration
Hermes Agent uses OpenRouter as the default inference provider. When connecting to Qwen Cloud, model.provider must be set to custom. Run the following command to verify: