> ## 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 omp

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

## Before you begin

Install omp 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**

Export your key:

```bash theme={"system"}
export CERASAI_API_KEY="your-key"
```

**2. Configure CerasAI**

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

Add to `~/.omp/agent/models.yml`. Keep existing providers and set the token
limits to match your model.

> [accordion] omp configuration
>
> ```yaml ~/.omp/agent/models.yml theme={"system"}
> providers:
>   cerasai:
>     baseUrl: https://api.cerasai.cloud/v1
>     api: openai-completions
>     apiKey: CERASAI_API_KEY
>     models:
>     - id: deepseek-ai/DeepSeek-V4.1-Flash-1017
>       name: deepseek-ai/DeepSeek-V4.1-Flash-1017
>       reasoning: true
>       thinking:
>         mode: effort
>         efforts:
>         - low
>         - high
>         - max
>         defaultLevel: high
>         effortMap:
>           low: low
>           high: high
>           max: max
>       contextWindow: 1048576
>       maxTokens: 393216
>       compat:
>         supportsReasoningEffort: true
>         thinkingFormat: openai
>         reasoningDisableMode: none-effort
>         maxTokensField: max_tokens
>         reasoningEffortMap:
>           low: low
>           high: high
>           max: max
> ```

To add another model or tier, copy the entry in `providers.cerasai.models`.
Set `id` and `name` to the ID from the [model catalog](https://console.cerasai.cloud/models),
and adjust `contextWindow` and `maxTokens` to match the model. Reopen omp to load the changes.

**3. Start a conversation**

Run the following command:

```bash theme={"system"}
omp --provider cerasai --model deepseek-ai/DeepSeek-V4.1-Flash-1017 --thinking high
```

## Model and reasoning effort

* **Current model and tier:** Use `/switch cerasai/<model-id>:high`.
* **Default model:** Use `/model`.
* **Reasoning effort:** Press **Shift+Tab** to choose **low**, **high**, or **max**.

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

## Resources

* [omp documentation](https://github.com/can1357/oh-my-pi/blob/main/docs/models.md)
* [CerasAI models](https://console.cerasai.cloud/models)


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