Terminal AI coding assistant by Nous Research
When using qwen4-max-preview, keep
provider: custom; do not set it to anthropic, or the model name will be rewritten and return 400.Install Hermes Agent
- Run this command to install Hermes Agent. The script automatically installs dependencies like 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.
- Verify the installation. A version number confirms success.
Add a model
Choose your client and complete the configuration.
- CLI
- Desktop
1
Get an API key
- Token Plan: Token Plan API key
- Pay-as-you-go: QwenCloud API key
2
Configure the model
Run
hermes model, select the provider for your billing plan, enter the API key, and select a model.- Token Plan
- Pay-as-you-go
- Select
Qwen>Alibaba Cloud (Token Plan). - Enter the Token Plan API key and keep the default Base URL.
- Select a model. For supported models, see the Individual plan supported models and Team Edition supported models.
The provider list may include models that your plan does not support. The plan's supported model list is authoritative.
3
Verify
Run the following command to verify:
Configure with a configuration file
The provider list in hermes model includes QwenCloud from v2026.8.31. If it is not in the list, use the following steps.
1
Open or create the configuration file
- macOS / Linux / WSL2:
~/.hermes/config.yaml - Windows:
%LOCALAPPDATA%\hermes\config.yaml
2
Add the configuration
Replace
YOUR_API_KEY with the API key for that plan, and add the configuration to the model section.- Token Plan
- Pay-as-you-go
OpenAI-compatibleAnthropic-compatible
3
Verify
After saving, run
hermes chat -q "Hello" to verify.Error codes
If you encounter an error during configuration, see the FAQ for your billing plan:
- Pay-as-you-go: Error code troubleshooting
- Token Plan: Token Plan FAQ
FAQ
No QwenCloud provider in hermes model
No QwenCloud provider in hermes model
Use the configuration file.
Model is unavailable
Model is unavailable