Overview
Website is Zeus’s end-to-end web development capability within Coding Mode. The agent can initialize web projects inside a sandbox, preview them in real-time, check code quality, and deploy to a persistent URL with one click. Core capabilities:- Project Initialization — Bootstrap Next.js / Vite projects inside an existing sandbox in seconds
- Live Preview — View the developing website in real-time via sandbox proxy URL
- Code Checking — TypeScript type checking + ESLint code quality validation
- One-Click Deploy — Deploy to a persistent
*.style.devURL via Freestyle API
Architecture
Component Overview
Website Tools
In Coding Mode, the agent has access to three Website-specific tools:website_init
Initializes a web project inside the existing sandbox. Does not create a new sandbox — all previous files are preserved.
Execution flow:
What gets initialized (Next.js):
create-next-app@latest— TypeScript + Tailwind + ESLint + App Router- Extra dependencies:
lucide-react,framer-motion,recharts,zustand,sonner - Background
pnpm dev --port 3000
website_deploy
Deploys the current web project to Freestyle for a persistent public URL.
Execution flow:
Deployment features:
- Persistent URL —
https://zeus-{session_id[:8]}.style.dev - Auto Build — Freestyle auto-detects framework (Next.js / Vite) and runs build
- Domain Reuse — Multiple deploys in the same session update the same domain mapping
- Zero Config — No user-provided tokens or server credentials needed
website_eslint
Checks web project code quality.
Checks performed:
- TypeScript type checking —
tsc --noEmit --pretty - ESLint checking —
next lint
Deployment System
Zeus supports three deployment targets through a unified Deploy API:Freestyle Deployment
Freestyle is the default deployment target, providing:- Sub-second deploys — API-first design, from call to live < 1 second
- Auto framework detection — Supports Next.js, Vite, Expo, and more
- Auto SSL —
*.style.devdomains come with HTTPS - Domain mapping — Same domain can point to different deployments (updates create a new deployment and remap the domain)
Deployment Flow (End-to-End)
Preview URL vs Deploy URL
Configuration
Environment Variables
Getting a Freestyle API Key
- Visit admin.freestyle.sh and sign up
- Get your API Key from the Dashboard
- Add to
apps/ai-backend/.env: