> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cerasai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Use CerasAI with Hermes Agent

> Connect Hermes Agent directly to CerasAI through the OpenAI Chat Completions API.

## Before you begin

Install Hermes Agent CLI, create a key on the
[API Keys](https://console.cerasai.cloud/keys) page, and choose a model on the
[Models](https://console.cerasai.cloud/models) page.

**1. Set your API key**

Add your key to `~/.hermes/.env`:

> [accordion] Hermes API key configuration
>
> ```bash ~/.hermes/.env theme={"system"}
> CERASAI_API_KEY=your-key
> ```

**2. Configure CerasAI**

The configuration uses `deepseek-ai/DeepSeek-V4.1-Flash-1017` as an example.

Merge into `~/.hermes/config.yaml`, keeping existing providers. Set
`context_length` to match your model, with a minimum of
[64,000 tokens](https://hermes-agent.nousresearch.com/docs/getting-started/quickstart).

> [accordion] Hermes configuration
>
> ```yaml ~/.hermes/config.yaml theme={"system"}
> providers:
>   cerasai:
>     api: https://api.cerasai.cloud/v1
>     key_env: CERASAI_API_KEY
>     transport: chat_completions
>     default_model: deepseek-ai/DeepSeek-V4.1-Flash-1017
>     discover_models: false
>     context_length: 1048576
>     models:
>       deepseek-ai/DeepSeek-V4.1-Flash-1017:
>         context_length: 1048576
>         supports_reasoning: true
> model:
>   default: deepseek-ai/DeepSeek-V4.1-Flash-1017
>   provider: custom:cerasai
> agent:
>   reasoning_effort: high
> ```

To add another model or tier, copy the entry under `providers.cerasai.models`.
Use its ID from the [model catalog](https://console.cerasai.cloud/models) as the new key,
and set `context_length` to match the model. Reopen Hermes to load the changes.

**3. Start a conversation**

Run `hermes` to start a conversation.

## Model and reasoning effort

* **Model and tier:** Use `/model` to switch in the current conversation.
* **Reasoning effort:** Use `/reasoning` to select **low**, **high**, or **max**. The default is **high**.

Issues common to every agent are listed under [Common issues](https://docs.cerasai.com/agent-integrations#common-issues).

## Resources

* [Hermes Agent documentation](https://hermes-agent.nousresearch.com/docs/user-guide/sessions)
* [CerasAI models](https://console.cerasai.cloud/models)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.