A lightweight design agent built with libfx. Describe a page and an agent writes it as one HTML file.
TypeScript
# Required: dedicated Sign in with Vercel app.
# Register APP_URL/api/auth/callback as the exact callback URL.
# Scopes: openid profile email offline_access.
# Permissions: AI Gateway Use and Team Read Only.
APP_URL=http://localhost:3000
VERCEL_OAUTH_CLIENT_ID=
VERCEL_OAUTH_CLIENT_SECRET=
# Required: a random session encryption password, at least 32 characters.
# Example generator: node -e "console.log(require('crypto').randomBytes(32).toString('base64'))"
SESSION_SECRET=
# Required: Neon Postgres for accounts, chat ownership, turn history and design
# revisions. Use a dev branch locally, never the production branch.
DATABASE_URL=
# Required: Upstash Redis for transcripts, HTML artifacts, queued prompts,
# checkpoints, worker leases, and encrypted refresh coordination.
KV_REST_API_URL=
KV_REST_API_TOKEN=
# Optional: Redis key prefix (default fx0:v1) and default model. Set a local
# prefix (for example fx0:local) so local chats never mix with production.
# FX0_REDIS_PREFIX=fx0:local
# FX0_MODEL=anthropic/claude-opus-5.5-fast
# Optional: five sponsored Opus 5.5 Fast prompts per IP, protected by BotID.
# Disabled by default. Set both before building/deploying, and run migrations.
# The key stays server-side and is used only for explicit trial admissions.
# After the trial, generation uses the signed-in user's own OAuth team.
# FX0_FREE_PROMPTS=1
# AI_GATEWAY_API_KEY=