Use Alibaba Cloud Model Studio models in Hermes Agent.
Quick Start
Choose your client and complete the configuration.
- CLI
- Desktop
- 1
Get an API key
- Token Plan Personal Edition: Create or view API Key
- Token Plan Team Edition: Assign a seat and get the API Key
- Pay-as-you-go: Model Studio API key
- Coding Plan: Coding Plan API key
- 2
Configure the model
Runhermes model, select the provider for your billing plan, enter the API key, and select a model.- Token Plan
- Pay-as-you-go
- Coding Plan
- 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 Personal Edition 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 Alibaba Cloud Model Studio 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
- macOS / Linux / WSL2:
- 2
Add the configuration
ReplaceYOUR_API_KEYwith the API key for that plan (and{WorkspaceId}for pay-as-you-go), and add the configuration to themodelsection.- Token Plan
- Pay-as-you-go
- Coding Plan
OpenAI-compatibleAnthropic-compatible - 3
Verify
After saving, runhermes chat -q "Hello"to verify.
Error codes
If you encounter an error during configuration, see the FAQ for your billing plan:
- Token Plan: Personal Edition FAQ · Team Edition FAQ
- Pay-as-you-go: Error codes
- Coding Plan: Coding Plan FAQ
FAQ
No Model Studio provider in hermes model
No Model Studio provider in hermes model
Use the configuration file.
Model is unavailable
Model is unavailable
How do I use a savings plan?
How do I use a savings plan?
Savings plans use the same access method as Pay-as-you-go. They automatically deduct eligible usage charges. For deduction rules, see Savings plans.