# LobeChat

[LobeChat](https://lobehub.com/de/docs/usage/start) is an open-source, modern design ChatGPT/LLMs UI/framework. This guide will walk you through the setup process.

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

## 1. Deploy LobeChat

There are multiple ways to deploy LobeChat.

To get started quickly, follow the official [Quick Start guide](https://lobehub.com/de/docs/self-hosting/start) for LobeChat.

Once installation is complete, you’ll need to configure the external provider.

## 2. Connect to cortecs

Cortecs provides **OpenAI-compatible API endpoints**, making it easy to integrate with LobeChat and many other tools. To connect:

1. Open LobeChat in your browser.
2. Go to ⚙️ **Settings** → **Language Model** → **OpenAI**.
   1. **API Key:** Your API Key
   2. **API Proxy Address:**  <code class="expression">space.vars.DEFAULT\_API\_BASE\_URL</code>
   3. Click `Get Model List`.
   4. Select Models to show

## 4. Start Chatting!

You're all set!

* Open the chat interface.
* Select your connected server's model from the model menu.
* Start chatting with your AI assistant.

<figure><img src="/files/UjEuXdudJzpA4LfVTnbM" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cortecs.ai/integration-examples/chat/lobechat.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
