A desktop coding agent with free access to frontier models.
OmniRush.ai Cloud App (ee/apps/den-web)
Frontend for the Den web app (omnirush.ai runs no hosted instance).
What it does
- Signs up / signs in users against Den service auth.
- Handles invited-org signup flows where the invited email stays locked and the user verifies access before joining.
- Lists and connects existing cloud workers.
- Sends users to the organization billing page for subscription management.
- Offers desktop handoff actions so users can open the generated worker directly in OmniRush.ai or copy the connect credentials manually.
- Calls the Den API directly at the matching
api.*origin (for example,omnirush.example.com->api.omnirush.example.com), including Better Auth traffic. - Keeps a same-origin auth proxy (
/api/auth/*) only for compatibility with already-registered auth callbacks that still land on the web host.
Current hosted user flow
- Sign in with a standard provider or accept an org invite.
- Create or select an organization without a billing gate.
- Manage billing from the organization billing page.
- Open existing workers in the desktop app with the provided deep link, or copy the URL/token into
Connect remotemanually.
Local development
- Install workspace deps from repo root:
pnpm install - Run the app:
pnpm --filter @omnirush-ee/den-web dev - Open:
http://localhost:3005
Styling
Den and desktop use Tailwind 4.3.3. Den uses @tailwindcss/postcss with Next.js;
desktop uses @tailwindcss/vite. Do not add the old Tailwind PostCSS plugin or
autoprefixer alongside it.
app/globals.css explicitly scans Den's app/components and packages/ui/src,
independent of the build's working directory. Add an @source entry when Den
starts consuming another package that contains utility classes. Theme tokens
live in app/tailwind-theme.css: the existing sRGB palette is retained to avoid
a visual redesign. The unlayered Den CSS and light-only color scheme are
intentional. Base overrides retain the previous border, placeholder and cursor
defaults; gradients use /srgb to preserve interpolation.
When bringing older UI work onto this branch, use shadow-xs for the old
shadow-sm, rounded-sm for the old bare rounded, and outline-hidden for
the old outline-none (including focus variants). Review space-* and divide-*
on lists: Tailwind 4 applies spacing/borders to preceding children instead of
following siblings. Native v4 utilities in shared packages are scanned too;
sharing theme semantics with desktop is a separate change.
Tailwind 4 requires Safari 16.4+, Chrome 111+, or Firefox 128+; see the Tailwind upgrade guide.
Optional env vars
DEN_API_BASE(server-only): upstream API base used by server-side health/readiness and compatibility auth proxy routes. Required outside local dev wrappers.DEN_AUTH_ORIGIN(server-only): Origin header sent to Better Auth endpoints when the browser request does not include one. Required outside local dev wrappers.DEN_AUTH_FALLBACK_BASE(server-only): fallback Den origin used ifDEN_API_BASEserves an HTML/5xx error.DEN_WEB_PUBLIC_ORIGIN(server/runtime): public origin used for metadata.DEN_WEB_OMNIRUSH_APP_CONNECT_URL(runtime): Base URL for "Open in App" links.- Example:
https://omnirush.example.com/app - The web panel appends
/connect-remoteand injects worker URL/token params automatically.
- Example:
DEN_WEB_OMNIRUSH_WEB_URL(runtime): URL opened by the dashboard Web tab.- default:
https://web.omnirushlabs.com
- default:
DEN_WEB_OMNIRUSH_AUTH_CALLBACK_URL(runtime): Canonical URL where the app returns after auth completes.DEN_WEB_POSTHOG_KEY(server/runtime): PostHog project key used for Den analytics.DEN_WEB_POSTHOG_HOST(server/runtime): PostHog ingest host or same-origin proxy path.- default:
/ow - set it to
https://us.i.posthog.comto bypass the local proxy
- default:
GET /api/healthreturns a shallow app health payload for container probes.
Observability
DEN_OBSERVABILITY_BACKEND selects one backend at startup: none (default), otel, or sentry.
none: no SDK initializes; den-web runtime logs are structured JSON on stdout.otel: server-only OpenTelemetry. The Next instrumentation starts the NodeSDK only whenNEXT_RUNTIME=nodejsand exports traces, metrics, and logs over OTLP HTTP/protobuf (*-otlp-protoexporters). Configure with standardOTEL_EXPORTER_OTLP_ENDPOINT, per-signal endpoint/protocol/exporter vars,OTEL_TRACES_SAMPLER/OTEL_TRACES_SAMPLER_ARG, and optionalOTEL_SERVICE_NAME(defaults toden-web).sentry: intended Vercel backend. Set serverSENTRY_DSN; optionalSENTRY_TRACES_SAMPLE_RATE,SENTRY_ENVIRONMENT,SENTRY_RELEASE, andSENTRY_DISTtune runtime events. Browser Sentry is explicit at build time withNEXT_PUBLIC_DEN_OBSERVABILITY_BACKEND=sentryandNEXT_PUBLIC_SENTRY_DSN;NEXT_PUBLIC_DEN_OBSERVABILITY_BACKEND=oteldisables browser collection because OTEL is server-only.
Direct OTLP shutdown/flush for stock next start and Vercel deployments is operational best-effort because the platform owns process shutdown timing. Sentry remains the recommended backend for Vercel-hosted Den Web.
Sentry wraps the Next config for browser Sentry builds (NEXT_PUBLIC_DEN_OBSERVABILITY_BACKEND=sentry) and for explicit source-map upload builds. Source-map uploads are disabled by default; enable them with the build-only DEN_WEB_UPLOAD_SENTRY_SOURCEMAPS=true flag and provide SENTRY_AUTH_TOKEN, SENTRY_ORG, and SENTRY_PROJECT as build credentials. Normal Docker/image builds do not need runtime DEN_OBSERVABILITY_BACKEND or SENTRY_DSN values. Never expose SENTRY_AUTH_TOKEN to the browser.
Runtime logs and telemetry scrubbing avoid request bodies, cookies, authorization headers, credentials, and target query strings. The compatibility /api/den/* route redirects legacy callers to the direct api.* origin; /api/auth/* remains an upstream proxy only for legacy auth callback compatibility and emits one structured completion/error log per request while forwarding W3C trace context.
Related Den API env vars
DEN_ORG_MODE:single_orgormulti_org. Blank/unset resolves tosingle_orgin the implemented target state; hosted/cloud deployments should setmulti_orgexplicitly.DEN_SINGLE_ORG_NAME/DEN_SINGLE_ORG_SLUG: singleton organization display name and stable slug for private single-org deployments.DEN_SINGLE_ORG_OWNER_EMAILS: comma-separated emails allowed to claim singleton organization ownership.DEN_SINGLE_ORG_ALLOW_PUBLIC_SIGNUP: whether unauthenticated users can self-serve signup into the singleton organization.- When SSO is configured on the singleton organization, auth becomes SSO-only.
DEN_REQUIRE_EMAIL_VERIFICATION: setfalsefor the single-org default to avoid signup verification-code flows; hosted multi-org should settrue.DEN_MCP_CLAIM_NAMESPACE: namespace used for MCP token claim URIs. Leave blank to useBETTER_AUTH_URL; set a stable value before issuing tokens if hosts may change. Usehttps://omnirushlabs.comto preserve the original hosted MCP claim names.DEN_BOOTSTRAP_ADMIN_EMAILS: comma-separated platform admin emails seeded byden-apion startup. Blank disables bootstrap admin seeding.
Deploy on Vercel
Recommended project settings:
- Root directory:
ee/apps/den-web - Framework preset: Next.js
- Build command:
cd ../../.. && pnpm --filter @omnirush-ee/den-web build - Output directory:
.next - Install command: use the command committed in
vercel.json
The filtered install includes Den Web's workspace dependency closure, so shared packages like @omnirush-ee/utils remain available without installing unrelated native desktop and server dependencies.
Then assign custom domain:
app.omnirushlabs.com