AI Engineering Workspace
PartialChat, files, terminal and preview in one place. Chat sessions run on a durable Postgres-backed queue (chat only: no tools or shell). Live models need an API key; the terminal is unavailable.
Project files
read-only- ..
- acceptance-center-desktop.png
- acceptance-center-mobile.png
- acceptance-center-tablet.png
- access-authed-desktop.png
- access-desktop.png
- access-mobile.png
- ai-chat-authed-desktop.png
- ai-chat-authed-mobile.png
- cc-ai-studio-desktop.png
- cc-ai-studio-mobile.png
- cc-applications-desktop.png
- cc-applications-mobile.png
- cc-billing-desktop.png
- cc-billing-mobile.png
- cc-command-center-desktop.png
- cc-databases-desktop.png
- cc-databases-mobile.png
- cc-deployments-desktop.png
- cc-deployments-mobile.png
- cc-domains-desktop.png
- cc-domains-mobile.png
- cc-hosting-desktop.png
- cc-hosting-mobile.png
- cc-instances-desktop.png
- cc-instances-mobile.png
- cc-integrations-desktop.png
- cc-integrations-mobile.png
- cc-managed-desktop.png
- cc-managed-mobile.png
- cc-overview-desktop.png
- cc-overview-mobile.png
- cc-owner-overview-desktop.png
- cc-packages-desktop.png
- cc-servers-desktop.png
- cc-servers-enrollment-desktop.png
- cc-servers-mobile.png
- cc-settings-desktop.png
- cc-settings-mobile.png
- cc-super-admin-desktop.png
- cc-super-admin-mobile.png
- cc-team-desktop.png
- cc-team-mobile.png
- cc-terminal-desktop.png
- cc-terminal-mobile.png
- central-integration-desktop.png
- central-integration-mobile.png
- command-center-desktop.png
- command-center-mobile.png
- contact-desktop.png
- contact-mobile.png
- customer-domains-desktop.png
- customer-domains-mobile.png
- dashboard-desktop-dark.png
- dashboard-desktop.png
- dashboard-mobile.png
- dashboard-tablet.png
- deployments-desktop.png
- deployments-mobile.png
- design-studio-authed-desktop.png
- design-studio-desktop.png
- design-studio-mobile.png
- desktop-dashboard.png
- docs-desktop-dark.png
- docs-desktop.png
- docs-mobile.png
- docs-tablet.png
- domains-desktop.png
- domains-mobile.png
- editor-authed-desktop.png
- editor-authed-mobile.png
- engines-authed-desktop.png
- engines-authed-mobile.png
- engines-desktop.png
- engines-mobile.png
- engines-public-desktop.png
- files-desktop.png
- files-mobile.png
- get-started-authed-desktop.png
- get-started-desktop.png
- get-started-mobile.png
- infrastructure-desktop.png
- infrastructure-mobile.png
- integrations-authed-desktop.png
- integrations-desktop.png
- integrations-mobile.png
- landing-desktop-alt-theme.png
- landing-desktop-dark-full.png
- landing-desktop-dark.png
- landing-desktop-full.png
- landing-desktop-hero.png
- landing-desktop.png
- landing-mobile-full.png
- landing-mobile-hero.png
- landing-mobile.png
- landing-tablet-full.png
- landing-tablet.png
- login-desktop.png
- login-mobile.png
- marketplace-desktop.png
- marketplace-mobile.png
- mobile-dashboard.png
- monitoring-desktop.png
- monitoring-mobile.png
- packages-desktop.png
- packages-mobile.png
- pricing-desktop-dark.png
- pricing-desktop.png
- pricing-mobile.png
- pricing-tablet.png
- progress-desktop-dark.png
- progress-desktop.png
- progress-mobile.png
- project-detail-desktop.png
- projects-desktop.png
- projects-mobile.png
- settings-desktop.png
- settings-endpoints-desktop.png
- settings-mobile.png
- status-desktop-dark.png
- status-desktop.png
- status-mobile.png
- status-tablet.png
- tablet-dashboard.png
- terminal-desktop.png
- terminal-mobile.png
- web-after-demo-complete-desktop.png
- web-after-demo-complete-mobile.png
- web-after-demo-running-desktop.png
- web-after-demo-running-mobile.png
- web-after-desktop-dark.png
- web-after-desktop-light.png
- web-after-hero-interactive-desktop.png
- web-after-hero-interactive-mobile.png
- web-after-mobile-dark.png
- web-after-mobile-light.png
- web-after-reduced-motion-desktop.png
- web-after-tablet-dark.png
- web-after-tablet-light.png
- web-before-desktop-dark.png
- web-before-desktop-light.png
- web-before-mobile-dark.png
- web-before-mobile-light.png
- web-before-tablet-dark.png
- web-before-tablet-light.png
- web-services-detail-ai-desktop.png
- web-services-detail-ai-mobile.png
- web-services-detail-desktop.png
- web-services-detail-mobile.png
- web-services-index-desktop.png
- web-services-index-mobile.png
- wizard-desktop.png
- wizard-mobile.png
- wizard-review-desktop.png
- workspace-desktop-dark.png
- workspace-desktop.png
- workspace-mobile.png
- zloud-brand-landing-desktop.png
- zloud-brand-landing-mobile.png
- zloud-landing-desktop.png
- zloud-landing-mobile.png
- zloud-landing-tablet.png
- zloud-login-mobile.png
- zloud-login-trusted-desktop.png
- zloud-login-trusted-mobile.png
- zloud-trusted-landing-desktop.png
- zloud-trusted-landing-mobile.png
app/src/app/(app)/login/page.tsx
1"use client";2import { useEffect, useState } from "react";3import { Lock } from "lucide-react";4import { Card, Notice } from "@/components/ui";56export default function Login() {7 const [insecure, setInsecure] = useState(false); const [httpsUrl, setHttpsUrl] = useState("");8 useEffect(() => { if (location.protocol === "https:" && !/^[\d.]+$|^\[|^localhost$/.test(location.hostname)) setMode("password"); if (location.protocol === "http:") { setInsecure(true); setHttpsUrl(`https://${location.hostname}:8443/login`); } }, []);9 const [mode, setMode] = useState<"password" | "token">("token"); const [email, setEmail] = useState(""); const [pw, setPw] = useState(""); const [np, setNp] = useState(""); const [totp, setTotp] = useState(""); const [need, setNeed] = useState<"" | "change" | "mfa">(""); const [token, setToken] = useState(""); const [err, setErr] = useState(""); const [busy, setBusy] = useState(false);10 async function submit(e: React.FormEvent) {11 e.preventDefault(); setBusy(true); setErr("");12 const r = await fetch("/api/auth/login", { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify(mode === "token" ? { token } : { email, password: pw, ...(need === "change" ? { newPassword: np } : {}), ...(need === "mfa" ? { totp } : {}) }) });13 if (r.ok) { location.href = "/console"; return; }14 const j = await r.json().catch(() => ({})); if (j.mustChange) setNeed("change"); else if (j.mfaRequired) setNeed("mfa");15 setErr(j.mustChange && !np ? "" : j.error || "Sign-in failed"); setBusy(false);16 }17 if (insecure) return <div className="mx-auto mt-10 max-w-md space-y-4"><Card><div className="flex items-center gap-2"><Lock size={18} aria-hidden /><h1 className="text-lg font-semibold">Sign in requires HTTPS</h1></div>18 <p className="mt-2 text-sm text-muted">Sign-in, credentials and administration are disabled over plain HTTP. Use the encrypted endpoint instead.</p>19 <a className="btn btn-primary mt-4" href={httpsUrl}>Continue over HTTPS</a>20 <p className="mt-3 text-xs text-muted">The certificate is self-signed for this IP, so your browser will show a warning until a domain and CA-issued certificate exist. Verify the fingerprint published in the deployment notes before accepting it.</p></Card></div>;21 return <div className="mx-auto mt-10 max-w-md space-y-4">22 <Card><form onSubmit={submit} className="space-y-4">23 <div className="flex items-center gap-2"><Lock size={18} aria-hidden /><h1 className="text-lg font-semibold">Sign in</h1></div>24 <div role="tablist" className="flex gap-2 text-sm"><button type="button" role="tab" aria-selected={mode === "password"} className={"btn " + (mode === "password" ? "btn-primary" : "")} onClick={() => setMode("password")}>E-mail & password</button><button type="button" role="tab" aria-selected={mode === "token"} className={"btn " + (mode === "token" ? "btn-primary" : "")} onClick={() => setMode("token")}>Access token</button></div>25 {mode === "password" ? <>26 <p className="text-sm text-muted">Password sign-in is available only over trusted HTTPS. Zoo IAM (OIDC + MFA) replaces it once the dedicated client exists.</p>27 <label className="block text-sm font-medium" htmlFor="em">E-mail</label><input id="em" className="input" type="email" autoComplete="username" value={email} onChange={e => setEmail(e.target.value)} required />28 <label className="block text-sm font-medium" htmlFor="pw">{need === "change" ? "Temporary password" : "Password"}</label><input id="pw" className="input mono" type="password" autoComplete="current-password" value={pw} onChange={e => setPw(e.target.value)} required />29 {need === "change" && <><div role="status" className="text-sm text-muted">This is a one-time temporary password. Choose a new password (at least 12 characters, three character classes). The temporary one stops working immediately.</div>30 <label className="block text-sm font-medium" htmlFor="np">New password</label><input id="np" className="input mono" type="password" autoComplete="new-password" minLength={12} value={np} onChange={e => setNp(e.target.value)} required /></>}31 {need === "mfa" && <><label className="block text-sm font-medium" htmlFor="tp">Authentication code</label><input id="tp" className="input mono" inputMode="numeric" autoComplete="one-time-code" maxLength={6} value={totp} onChange={e => setTotp(e.target.value)} required /></>}32 </> : <>33 <p className="text-sm text-muted">Interim access using the local administrator token.</p>34 <label className="block text-sm font-medium" htmlFor="tok">Access token</label>35 <input id="tok" className="input mono" type="password" autoComplete="current-password" value={token} onChange={e => setToken(e.target.value)} required /></>}36 {err && <div role="alert" className="text-sm text-[var(--err)]">{err}</div>}37 <button className="btn btn-primary w-full justify-center" disabled={busy}>{busy ? "Signing in…" : "Sign in"}</button></form></Card>38 <Notice tone="info" title="Encrypted, self-signed">TLS uses a self-signed certificate for this IP. Do not reuse this token elsewhere.</Notice></div>;39}40
Conversation
PartialSign in to start AI sessions.
Task checklist
- Application shell deployed
- Persistent projects
- Agent runtime
- Sandboxed terminal
Execution activity
No agent sessions. Git HEAD 0eebc42 on master.
Approval requests
None pending.