> For the complete documentation index, see [llms.txt](https://docs.cortecs.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cortecs.ai/integration-examples/chat/lobechat.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
