|
|
||
|---|---|---|
| branding | ||
| .env.example | ||
| .gitignore | ||
| docker-compose.yml | ||
| Makefile | ||
| README.md | ||
| setup.sh | ||
AIDO — Onyx Community Edition White-Label (Livtec AG)
A clean, upgrade-friendly white-label of Onyx Community Edition. The logo, product name (AIDO), favicon, documentation links and every user-visible "Onyx" reference are rebranded — while every backend and infrastructure service still runs the official Onyx Docker images.
Community Edition only. This rebrands at the open-source default level. It does not enable or depend on Onyx's Enterprise white-label feature (the
enterprise-settings/eecode paths). No commercial features are used.
How it works (the approach)
Onyx bakes its branding into the web frontend build — the name is a hardcoded
|| "Onyx" fallback, the logo is an inline SVG React component, and ~180 UI strings
are compiled into the JS bundle. Pure runtime injection (env vars / volume mounts)
therefore can't fully rebrand it. So we use a thin-overlay model:
┌─────────────────────────────────────────────────────────────────────┐
│ branding/branding.config.json ← single source of truth (you edit) │
│ │ │
│ ▼ node branding/apply-branding.mjs │
│ ./web ← branding baked in (logo, favicon, name, links) │
│ │ │
│ ▼ docker compose build web_server │
│ livtec/aido-web:local ← the ONLY image we build │
└─────────────────────────────────────────────────────────────────────┘
backend · model-server · code-interpreter · postgres · redis ·
opensearch · minio · nginx → ALL pulled from official images
Because everything except the web image comes straight from upstream, taking a new Onyx release is a re-checkout + re-run, not a fork to maintain (see Upgrading Onyx).
Layout
| Path | Purpose |
|---|---|
branding/branding.config.json |
Single source of truth — name, assets, links, emails, rename rules. |
branding/apply-branding.mjs |
Applies the overlay into ./web (fetch assets, swap logos, repoint favicon, codemod strings). |
branding/templates/ |
Logo React components (filled from the config at apply time). |
branding/assets/ |
Offline fallback copies of the fetched brand images. |
docker-compose.yml |
One self-contained stack. Branded web built from ./web; everything else (incl. minio) uses official Onyx images. |
Makefile |
make setup / rebrand / apply / build / up / down / verify. |
.env.example |
Deployment env template (Onyx's standard vars — not branding). |
web/, data/ |
Upstream Onyx checkout (sparse: web + deployment/data/nginx), fetched by make setup. Git-ignored. |
Quick start
# 0a. one-time: fetch the upstream Onyx sources (sparse checkout)
make setup
# 0b. one-time: copy the env template and set real secrets
cp .env.example .env
# In .env, set at minimum:
# USER_AUTH_SECRET → REQUIRED, the API won't start blank: openssl rand -hex 32
# MINIO_ROOT_PASSWORD / S3_AWS_SECRET_ACCESS_KEY → strong values
# AUTH_TYPE → `disabled` for a quick local run, or oidc/basic for real auth
# HOST_PORT → optional, defaults to 3000
# 1. apply branding, build the branded web image, start the whole stack
make rebrand
# …or step by step:
make apply # bake branding into ./web
make build # build livtec/aido-web:local
make up # start the full stack (one docker-compose.yml)
make logs # follow the web container
make verify # assert no stray "Onyx" remains in the shipping source
make down # stop
Requires Docker + Docker Compose v2 and Node ≥ 18 (for the apply script).
Accessing the app
Once the stack is healthy, open:
http://localhost:3000
-
Port — defaults to
3000(nginx → web). Change it by settingHOST_PORTin.env(e.g.HOST_PORT=8088) andmake restart. In production the nginx Traefik labels route via your${FQDN}instead. -
Login — depends on
AUTH_TYPEin.env:disableddrops you straight in (good for a quick local check);oidc/basicpresent a login screen. The first account to register becomes the admin. -
First boot takes a few minutes. The model server downloads embedding models (a few GB) and
api_serverwaits on OpenSearch + minio + Postgres, so it's the last to go green — nginx only starts serving onceapi_serveris healthy. Watch progress with:make logs # follow the web container docker compose -f docker-compose.yml ps # see every service's health -
Health checks (handy for confirming it's actually up, not just the UI shell):
curl -I http://localhost:3000/ # web UI → 200 curl http://localhost:3000/api/health # backend via proxy → {"success":true,"message":"ok",...} -
Not loading? If the page shows a branded "backend is currently unavailable" banner,
api_serverisn't healthy yet — give it another minute, or checkdocker compose -f docker-compose.yml logs api_server. The most common causes are an emptyUSER_AUTH_SECRETor a port already in use on the host (HOST_PORT).
Updating the branding
Everything is driven by branding/branding.config.json — you never hand-edit
files under onyx/.
| To change… | Edit in branding.config.json |
|---|---|
| Product name | brand.name |
| Logo / wordmark / favicon | assets.*.url (remote) — fetched on next apply. Or drop files in branding/assets/ and run with --no-fetch. |
| Documentation / help / legal links | links.* and rename.literals |
| A specific phrase swap | rename.literals (exact string) |
| The global name swap | rename.word (whole-word, case-sensitive) |
Then:
make apply && make build && make restart
The codemod is surgical: it replaces whole-word, capitalised Onyx only — it
never touches code identifiers (OnyxDocument, SvgOnyxLogo, OnyxBot), lowercase
package refs (@onyx/…, onyx.app, onyx.ico), tests or stories. make verify
confirms the result.
Swapping assets without network access
The apply script fetches the asset URLs and also caches them into branding/assets/.
If you're offline, run node branding/apply-branding.mjs --no-fetch and it uses those
cached files. To use brand-new files, drop them into branding/assets/ (matching the
dest basenames: mark.png, wordmark.png, favicon.png) and run --no-fetch.
The AIDO wordmark already contains the symbol, so the composed "logo + wordmark" component renders the wordmark only to avoid a duplicated mark. If you supply a text-less wordmark later, restore the upstream composition in
branding/templates/onyx-logo-typed.tsx.
German UI / i18n (temporary)
Onyx has no released multi-language support yet (official ETA Q4 2026 / Q1 2027). As a stop-gap, this overlay backports Onyx's own end-user i18n PR (#12558) — react-i18next, with a language switcher under Settings → Appearance and instant switching. It covers the end-user UI only; the Admin panel stays English (that's the PR's own scope).
It's wired into the overlay, config-driven from branding.config.json → i18n:
- Locked to a release tag —
upstream.pinnedCommitandi18n.baseCommitare both set to the same Onyx release (currentlyv4.5.2), not a raw commit. make applygit applysbranding/i18n/end-user-i18n.patchonto that checkout before the branding codemod, then rebrandsOnyx→AIDOinside every bundled dictionary (web/public/locales/{de,en,es,fr,pt}/common.json).- Because the patch is re-synced against that exact release (
i18n.baseCommit), it applies with zero conflicts. It will not apply to a different Onyx version — that's why the deployment must run the pinned release (see the re-sync note below).
Coverage: the core user UI plus the full onboarding flow and app shell are translated. A handful of components that v4.5.2 restructured more heavily (the chat greeting, some sidebar/modal/model-selector text) still show English — wiring those to the dictionary is bespoke per-component work (a few are logic refactors, not simple string wraps), added incrementally. Un-wrapped strings always fall back to English, so the app is guaranteed to build and run; coverage only grows.
Editing the German translations
Edit branding/i18n/locales/de.json — the client-editable source dictionary (JSON,
keys grouped by area: chat, sidebar, auth, onboarding, …). make apply copies it
over the bundled dictionary, so your edits persist across make setup (don't edit
web/public/locales/** directly — the overlay regenerates it). Then
make apply && make build && make restart.
branding/i18n/MISSING-de.md lists the dictionary keys that are still English (currently
~12 non-admin keys — the German draft is ~98% complete).
Two kinds of "missing": editing the dictionary fixes keys that are wired for translation but lack a German value. Text in the components that were kept at v4.5.2 during the re-sync (the never-break-UI ones) is not wired — it shows English no matter what the dictionary says, and only a component-wrapping pass (dev work) adds it. So dictionary edits refine coverage; they don't reach the un-wrapped components.
Which languages appear
The UI language selector is limited to i18n.languages in branding.config.json
(currently ["de", "en"]). make apply strips every other bundled language (es/fr/pt)
from i18n.ts and the Settings selector. To offer another language: add its code to that
list and a dictionary at branding/i18n/locales/<code>.json.
Retiring it (when official i18n ships)
Set i18n.enabled: false in branding.config.json, bump upstream.pinnedCommit
forward, and re-run make setup && make apply. Your de/common.json carries over to the
official feature, so migration is essentially free.
Upgrade / re-sync note: this is a large feature patch pinned to one release. To move to a newer Onyx while official i18n isn't out yet, the patch must be re-synced onto the new release tag (cherry-pick PR #12558 onto the tag, resolve conflicts against upstream's refactors, regenerate
end-user-i18n.patch, bump both pins). This is the per-release maintenance step — cheapest done one release at a time rather than skipping several.make applyfails loudly if the checkout isn't ati18n.baseCommit, so it never applies half-way. Lock your image tags to the pinned release and only move after the re-sync is prepared.
Upgrading Onyx
Because we don't fork, upgrading is mechanical:
# 1. check out the new upstream release into ./onyx
cd onyx
git fetch --all --tags
git checkout <new-tag-or-commit> # e.g. a tagged release
cd ..
# 2. bump the pin in branding/branding.config.json → upstream.pinnedCommit
# 3. re-apply + rebuild
make apply && make build && make restart
# 4. sanity check
make verify
Pin IMAGE_TAG in .env to the same release so the official backend/model
images match the web build you're compiling. Three things to watch after an upgrade:
- Logo component paths — if upstream moves the logo files,
make applyprints alogo target missingwarning. Update the paths inapply-branding.mjs → logoInstalls. - New unbranded strings — if upstream adds new "Onyx" copy, the global word rule
catches it automatically; review
make verifyoutput and the apply summary. - Base image / Docker Hardened Images — Onyx's web
Dockerfilebases on DHI (dhi.io/node:*), which needs a paid Docker subscription +docker login dhi.io, somake buildfails with a registry-login error without it.make applyautomatically rewrites thoseFROMlines to the equivalent public Docker Hubnodeimages and sets the runtime to the non-rootnodeuser — no login required. If a future upstream change renames the base andmake applywarns "no dhi.io base images ... nothing to swap", updatebranding.config.json → build.baseImageReplacements.
What gets rebranded (touchpoints)
- Product name — the
|| "Onyx"resolution fallbacks (settings/hooks.ts,settings/lib.ts) →AIDO; this also drives the browser tab title. - All UI strings — ~180 user-visible "Onyx" references across ~96 files (chat, onboarding, admin panels, modals, auth screen, error pages…).
- Logo — the in-app symbol + wordmark components (incl. the inline
OnyxLogoTypeIconused on the error/health pages) render the AIDO assets. - Favicon —
public/onyx.icoreplaced andDynamicMetadatarepointed to/branding/favicon.png. - Documentation & community links —
DOCS_BASE_URL/docs.onyx.app, the Onyx Discord URL,www.onyx.applinks andsupport@onyx.app→ Livtec destinations (seerename.literals). - Notification bell — its text is generated by the backend (the official image we don't rebuild), so it's rebranded at render time in the web image: any "Onyx" in a notification is rewritten to the brand name, and upstream/EE product notifications (permissions-migration announcement, license/trial warnings) are suppressed. See Notifications below.
Notifications
Driven by branding.config.json → notifications:
| Key | Effect |
|---|---|
sanitize: true |
Rewrites "Onyx" → brand name in any notification title/description at render time. |
suppressTypes: [...] |
Hides whole categories (feature_announcement, release_notes, license_expiry_warning, two_day_trial_ending). Empty the list to show everything (still sanitized). |
Operational notifications (reindex, approvals, connector errors, scheduled tasks)
are always kept. The apply script generates web/src/lib/branding-runtime.ts from
these values and routes the notifications hook through it.
Minor note: suppression hides items from the panel; the bell's unread count comes from a separate backend summary endpoint, so a suppressed-but-unread item can still nudge the counter. If you'd rather keep perfect counts, set
suppressTypes: []— sanitization alone removes the "Onyx" wording with no count impact.
Known limitations / notes
- Deep doc paths (e.g.
/admins,/deployment/...) consolidate onto the single Livtec help URL you provided; sub-pages won't exist there unless you publish them. - Theme colors from the old Lobe config are not applied (they were outside the agreed logo/name/favicon/links scope and Onyx's theming differs). The AIDO logo already carries the brand colors. Color theming can be added as a follow-up.
- Tests / stories intentionally keep the literal "Onyx" (they assert the upstream default). They are excluded from the production Docker build, so this is harmless.
- Backend/API identifiers, cookies (
onyx_tid) and internal names are unchanged — they are not user-visible and renaming them would risk breaking the official images.