docs/self-hosting/advanced/desktop.mdx
LobeHub Desktop provides users with an enhanced experience while also expanding the capabilities of LobeHub, allowing users to utilize LobeHub in offline environments. This document will guide you on how to configure LobeHub Desktop and connect it to your self-hosted instance.
LobeHub Desktop is built using Electron and supports the following operating systems:
The version release of LobeHub Desktop follows this logic:
If you wish to access the latest features, you can use the Beta version; if you prioritize stability, please use the Stable version.
LobeHub Desktop can connect to your self-hosted LobeHub instance, allowing you to use your self-hosted configuration on the desktop.
Before connecting the desktop to your self-hosted instance, ensure that your self-hosted instance is correctly configured with the OIDC-related environment variables.
<Callout> Please ensure that your self-hosted instance version is 1.83.6 or higher to support desktop connection features. </Callout>You need to add the following two environment variables, ENABLE_OIDC and JWKS_KEY, to your self-hosted instance:
ENABLE_OIDC=1
Click the button below to generate JWKS_KEY:
Add the generated environment variables to your deployment configuration.
<Callout>If you have already configured OIDC_JWKS_KEY, no changes are needed. The system will automatically fall back to OIDC_JWKS_KEY for backward compatibility.</Callout>
If you are deploying LobeHub using one-click deployment methods (such as Vercel, Railway, etc.), you need to:
APP_URL environment variable is set to your domain URL, which is crucial for correctly handling authentication callbacks.https://your-LobeHub-instance.com).Issue: After clicking the authorization button, a 502 Bad Gateway error occurs when redirected to the /oidc/consent path.
Solution:
ENABLE_OIDC=1 and JWKS_KEY environment variables.JWKS_KEY is in valid JSON format without extra single quotes.If you are using Nginx as a reverse proxy, the issue may be due to oversized request headers. You can try adding the following settings to your Nginx configuration:
proxy_buffer_size 16k;
proxy_buffers 8 16k;
proxy_busy_buffers_size 32k;
Issue: Encountering the error "redirect_uri did not match any of the client's registered redirect_uris" during the authorization process.
Solution:
Check if the APP_URL environment variable matches the URL you are accessing.
Issue: On macOS, the application hangs for a long time or crashes after startup.
Solution:
arm64 version.x64 version.LobeHub-Beta-1.83.6-arm64.dmg or LobeHub-Beta-1.83.6-arm64-mac.zipLobeHub-Beta-1.83.6-x64.dmg or LobeHub-Beta-1.83.6-mac.zipIssue: When using a Docker-deployed server, the desktop client cannot load avatars or other image resources after connecting.
Solution: