# Self-host Lobe Chat

> A modern, open-source AI chat framework supporting many model providers.

- Page: https://levelrail.com/templates/lobe-chat/
- JSON: https://levelrail.com/templates/lobe-chat.json
- Category: AI
- Licence: LicenseRef-LobeHub-Community (Source available)
- Source: https://github.com/lobehub/lobehub
- Upstream docs: https://lobehub.com/docs/self-hosting/start

## Requirements
- Memory: about 512 MiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 1.135.5

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| lobe-chat | lobehub/lobe-chat | 1.135.5 | 3210 | none |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| lobe-chat | ACCESS_CODE | generated |
| lobe-chat | OPENAI_API_KEY | preset |
| lobe-chat | OPENAI_PROXY_URL | preset |

## Deploy

### CLI

```bash
levelrail-cli templates deploy lobe-chat --name my-lobe-chat
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/lobe-chat/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy Lobe Chat on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id lobe-chat for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image lobehub/lobe-chat:1.135.5 is what you deploy there.

Self-host Lobe Chat, Lobe Chat docker compose file, deploy Lobe Chat on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
