Skip to main content

Hermes Agent

Hermes Agent is an open-source terminal AI programming assistant. It supports intelligent conversation and code assistance by allowing the integration of custom models.

Prerequisites

  • You have activated a TCB environment and obtained the environment ID cloudBaseEnvID.

  • Enable the required model in the AI console.

  • Obtain the Base URL and API Key in the AI console.

codebuddy

Configuration Steps

The system guides you through entering the API Key and model name step by step via the command-line interactive menu. This method is recommended for initial configuration.

  1. Run the following command in the terminal to start up the configuration wizard.
hermes model

hermes.png

  1. Select Custom endpoint (enter URL manually) and fill in the interactive form below according to the table.
FieldDescription
API Base URLThe request address for the large model API, which is obtained in the AI console and has the format https://{{cloudBaseEnvID}}.api.tcloudbasegateway.com/v1/ai/cloudbase.
API KeyThe key for calling the large model, which is obtained in the AI console.
API compatibility modeSelect "1" Auto-detect
Model NameThe large model identifier. Copy the ID of an enabled model from the model list in the AI console and enter it here, for example, hy3-preview.

hermes2.png

  1. You can start using it after the configuration is complete.

Common Error Troubleshooting

Error MessageSolution
404 AI_MODEL_NOT_FOUNDThe Base URL is entered incorrectly. Go to the AI console to copy the correct Base URL.
401 Authentication FailedThe API Key is entered incorrectly or may have been deleted.
429 Token usage exceeded quotaAn incorrect large model name is configured, or the large model is not enabled in the AI console.