# OpenClaw

[OpenClaw](https://openclaw.ai/) brings your AI agents directly into your daily conversations on WhatsApp, Telegram, or Matrix. OpenClaw is a self-hosted solution that lets you interact with your personal assistants from anywhere, keeping infrastructure under your control.

This guide will walk you through the setup process and show you how to combine **OpenClaw** with **Cortecs.**&#x20;

{% hint style="info" %}
*Before you begin: Make sure you have generated your Cortecs API key. If not, check out our* [*QuickStart*](https://docs.cortecs.ai/quickstart) *guide.*
{% endhint %}

## 1. Install OpenClaw

Run the following command in your terminal to install OpenClaw

```apache
curl -fsSL https://openclaw.ai/install.sh | bash
```

For additional installation options, refer to the [OpenClaw documentation](https://docs.openclaw.ai/install).

## 2. Complete Onboarding

After the installation completes, the onboarding process starts automatically. If this is not the case, run the following command

```
openclaw onboard --install-daemon
```

During onboarding configure the system to your liking. Answer the following options when prompted:

1. Model/auth provider: **Custom Provider**
2. API Base URL: **<https://api.cortecs.ai/v1>**
3. How do you want to provide this API key: **Paste API key now**
4. API Key: **Paste your generated Cortecs API key**
5. Endpoint compatibility: **OpenAI-compatible**
6. Model ID: Copy the model ID of your preferred model. This can be done by pressing the copy button next to the model on our [models page](https://cortecs.ai/serverlessModels). Unsure which model to select? [A section](#which-model-s-should-be-used-with-openclaw) below goes more into detail about model selection.
7. Endpoint ID: **cortecs**&#x20;
8. *... Proceed with the remainder of the configuration to your liking*

Your default model is now set up, and you are able to chat with your model using the dashboard provided by OpenClaw.&#x20;

Set up your connected communication gateway by running the following command in your terminal:

```
openclaw tui
```

## 3. Adding Multiple Models (Optional)&#x20;

You can configure multiple models using a single API key. The various models are listed in our [catalog](https://cortecs.ai/serverlessModels).

Adding new models to OpenClaw is very straightforward. The simplest approach is to prompt your default model to add new ones. By pasting the following prompt into the chat, OpenClaw is automatically able to add your model. Adapt the prompt to use a model of your liking, or add multiple if desired.&#x20;

```
Add the model claude-4-6-sonnet from provider cortecs to my config. 
Add it to the models and the agents sections in the config. 
Then restart the gateway.
```

Now you are able to switch to the new model/s using the command

```
/model claude-4-6-sonnet
```

For faster switching, you can prompt OpenClaw to assign aliases to the models. Then you can switch using your defined alias with the following commands, for example:

```
/model oss
/model opus
/model mini
```
