Host and share the web app
Run t12 ui locally, on an always-on host, or in the cloud on Vercel, GitHub Actions, and Neon, with open sign-up, Sign in with GitHub, per-person connections, and teams.
t12 ui runs as a single HTTP server bound to 127.0.0.1:8790 by default. All state lives in your Neon database, and every page requires a signed-in session, even on localhost.
Choose a host
Run locally, on an always-on machine, or in the cloud on Vercel.
Sign up and connect
Create an account, then connect your own GitHub, agy, and omp.
Work in teams
Invite people as owners, members, viewers, or clients.
Expose over HTTPS
Front :8790 with a tunnel, add SMTP, and enable idle-safe updates.
| Setup | Best for | Entry point |
|---|---|---|
| Local solo | Running requests on your laptop | bin/t12 ui |
Always-on Linux (systemd) | Shared team access and auto-updates | /etc/systemd/system/t12-ui.service |
macOS (launchd) | Always-on Mac hosts with auto-updates | scripts/install-launchagents.sh |
| Docker Compose | Portable container stack with Tailscale | docker-compose.yml |
| Cloud | No machine of your own: Vercel, GitHub Actions, Neon | Host in the cloud |
| Quick evaluation | Short-lived demo over trycloudflare.com | scripts/evaluation-profile.sh |
Run locally for solo use
Set DATABASE_URL and T12_PROJECT_ENV_KEY as shown in Install turbo-12f, then start the web app. The ~/t12/home folder (overridable via --home or T12_HOME) holds only disposable scratch files:
bin/t12 uiOn first start with no Operator account, t12 ui prints a 15-minute bootstrap link (http://127.0.0.1:8790/link?b=1&t=<token>). Opening http://127.0.0.1:8790 directly on that machine also makes the very first sign-up the Operator. The Operator runs the host: the permission mode, the factory-wide agent, and the Observer.
Everyone else signs up too and gets their own workspace. Then each person connects their own accounts before starting work.
Sign up and sign in
Sign-up is open: nobody waits for an Operator. How an address is proved depends on where the factory runs.
| Where | Email sign-up | GitHub sign-up |
|---|---|---|
| SMTP is set up | A one-time link creates the account only when it is used. Asking again for an existing address mails a sign-in link and reveals nothing. | Creates the account from the primary verified GitHub email. |
No SMTP, page opened on the machine itself (127.0.0.1, localhost) or over trusted Tailscale | Created at once, on trust. A password is required because there is no mail to sign in with later. | As above. |
| No SMTP, any other address | Refused: the sign-in page hides the email form. Use GitHub, or have an Operator or team admin invite the address. | As above. |
People sign in with GitHub, a one-time email link (printed to the t12 ui terminal if SMTP is unset), email and password (t12 access set-password), or Tailscale Serve automatic login.
Sign in with GitHub
One GitHub App serves production, staging, and a local t12 ui at once, because an App takes several callback URLs. Set both variables where the factory runs, in the shell or ~/.config/t12/env of t12 ui or in the Vercel project. With either missing, the GitHub button stays off.
T12_GITHUB_CLIENT_ID=Iv23...
T12_GITHUB_CLIENT_SECRET=...
T12_GITHUB_APP_SLUG=turbo-12fT12_GITHUB_APP_SLUG is optional: it is the App's slug, used for its install link when a person has no installation.
The callback address is <public address>/api/signin/github/callback. The public address is T12_PUBLIC_URL, else the Vercel URL, else --url. For a local t12 ui, register http://127.0.0.1:8790/api/signin/github/callback on the App.
- Expire user authorization tokens: On. The factory stores the refresh token sealed and renews the token itself.
- Webhook: Off. No webhook is needed for sign-in.
- Account permission: Email addresses, read-only.
- Repository permissions: Contents, Pull requests, Issues, Administration, Repository creation, and Workflows, each read and write, plus Metadata read-only. These let runs act as the person; GitHub answers "Resource not accessible by integration" when Administration or Repository creation is missing.
- Installation: Any account. Each person installs the App once on their own account, with all repositories, so the repositories the factory creates for them are covered.
An account is matched on the numeric GitHub user id, not the login. The full setup is in docs/hosting.md.
Connect your own accounts
Connections are per person, under Connections in the sidebar (/connections). A run uses the credentials of the person who asked for it, locally and on the cloud worker alike.
| Connection | How you connect it | Used for |
|---|---|---|
| GitHub | Sign in with GitHub, or Connect GitHub in your account settings | Creating repositories, pushing branches, pull requests, and issues as you |
| agy | A Gemini API key, or your Google sign-in file, optionally under a Google Cloud project's Gemini Enterprise licence | Runs on the agy agent |
| omp | An Anthropic key, an OpenAI key, or omp's own sign-in file | Runs on the omp agent and conversation turns |
Credentials are sealed with T12_PROJECT_ENV_KEY, never logged, and never sent back to a browser. Each connection has a Test connection button that asks the provider without running anything.
A conversation needs agy or omp connected. A new project needs your own GitHub. Otherwise the server answers 409 and the page offers the connection instead of the button.
Factory-wide credentials are opt-in and Operator-only
The host's own sign-ins and tokens stand in only when the Operator sets T12_SHARED_CREDENTIALS=1, and only for Operators. Regular people always run on their own connections. The t12 command line uses the host's sign-ins.
Teams, roles, and the client view
A new account lands in its own workspace and sees only what it creates until a team lets it in. Each person has one role per team.
| Role | What they do |
|---|---|
| Owner | Administers the team: members, roles, rename, icon, projects. |
| Member | Runs and works in the team's projects. |
| Viewer | Reads the team's projects. |
| Client | Files tickets and comments on the board. On their own requests, confirms the plan, approves, and signs off. The team answers the conversation's questions. Never starts runs. |
The view of a project follows your role in the team that owns it, with no switch: clients see the client view (decisions to take, plain numbers, sign-off), everyone else the factory view.
To join a team, open /t/<team> and ask to join. The team's owners and Operators see the request with a six-character check code on the team's People page, in the notification bell, and by mail when SMTP is set up. They compare the code with the person, then approve with a role or deny. A request expires after 7 days.
Projects of your own
Anyone signed in starts or connects a project in a team where they are an owner or member. Without one, the project joins a personal workspace team made for them. Browsing and connecting repositories uses your own GitHub connection, so you see only what your account sees.
Handles, pictures, and profiles
A handle is @name: 2 to 30 lowercase letters, digits, hyphens, or underscores, unique across the factory and checked as you type. Pictures for people and teams are one of twelve generated avatars or an upload (PNG, JPEG, or GIF under 4 MB), stored as a 256 by 256 PNG.
/u/<handle> is a person's profile (/u/me is yours) with an activity heat map. /t/<team> shows the team's heat map. Both show only what the viewer may already see.
Operator controls in the web app
Signed-in Operators manage host-wide controls from t12 ui:
- Conversation permission: Switch between
review,default,auto, andturboin the composer menu. InRequest Review, every agent shell command pauses for approval. - Observer: Open the Observer drawer or
/observer, select at least one project or conversation, and let the read-only loop resolve waiting items every 10 seconds. It learns only from the confirmed answers of the person it acts for. - First Operator in the cloud: Set
T12_OPERATOR_EMAILandT12_OPERATOR_PASSWORD. The account is created once when the database has no Operator.
Host on an always-on machine
For shared team access or overnight builds, use a Linux VM or Mac with at least 4 vCPUs, 8 GB RAM, 60 GB disk, and a running Docker daemon. Run scripts/setup.sh on that host first, and put DATABASE_URL and T12_PROJECT_ENV_KEY in the service user's ~/.config/t12/env.
Launch t12-ui through mise exec because systemd does not load ~/.bashrc or ~/.zshrc. Create /etc/systemd/system/t12-ui.service:
[Unit]
Description=t12 ui
After=network-online.target docker.service
[Service]
User=factory
ExecStart=/home/factory/.local/bin/mise exec -C /home/factory/t12/current -- /home/factory/t12/current/bin/t12-ui --home /home/factory/t12/home --url https://factory.example.com
Restart=always
[Install]
WantedBy=multi-user.targetEnable and start the service:
sudo systemctl enable --now t12-uiPut secrets in ~/.config/t12/env (0600) for the service user rather than inside the systemd unit file.
Host in the cloud
The cloud setup needs no machine of your own. Vercel serves the web app and the API, a GitHub Actions worker runs the agents, and one Neon database holds all state. Both sides are stateless and read the same database.
| Part | What it does |
|---|---|
| Vercel | Serves the web app and an API function for sign-in, read views, approvals, and sign-offs. It dispatches the worker. |
| GitHub Actions worker | Runs t12-worker.yml from T12_WORKFLOW_REPO for conversation turns, confirm, run, release merge, and project connect, writing progress to the database. |
| Neon Postgres | Accounts, conversations, event logs, evidence, encrypted project variables, and cloud jobs. |
Run staging and production as separate environments with separate databases. The worker job runs in the GitHub environment production or staging, and each holds its own DATABASE_URL secret.
Store the secrets
Send DATABASE_URL and T12_PROJECT_ENV_KEY from your shell or ~/.config/t12/env to T12_WORKFLOW_REPO as GitHub secrets. The script prints neither value:
./scripts/cloud-setup.sh cone-labsReplace cone-labs with your GitHub owner. The worker refuses to start without DATABASE_URL.
Deploy to Vercel
Import the repository in Vercel and set the variables from .env.vercel.example on every environment: DATABASE_URL, T12_PROJECT_ENV_KEY, GITHUB_TOKEN (dispatches the worker), T12_WORKFLOW_REPO, T12_GITHUB_OWNER, and T12_CLOUD_ASK_MODE=worker. On staging also set T12_ENV=staging.
Enable sign-in and the first Operator
Set T12_OPERATOR_EMAIL and T12_OPERATOR_PASSWORD for the first Operator. To offer Sign in with GitHub, set T12_GITHUB_CLIENT_ID, T12_GITHUB_CLIENT_SECRET, and T12_PUBLIC_URL on each Vercel environment. Add the client pair as GitHub Actions secrets on T12_WORKFLOW_REPO so the worker can refresh a long run's token.
Runs on the cloud use each person's own connections: the workflow carries only a random per-run reference, never a secret. Without SMTP, only GitHub sign-up and invites work on a non-local address. The full guide is in docs/cloud-hosting.md.
Expose t12 ui over HTTPS
Keep t12 ui bound to 127.0.0.1:8790 behind a tunnel or reverse proxy and pass --url <public-url>.
Why --url matters for security
Passing a non-loopback --url enables Secure cookies, enforces Origin checks on POST requests, builds valid SMTP links, and disables automatic first-signup Operator promotion so only the bootstrap link claims Operator access.
Requires a Cloudflare-managed domain and cloudflared on the factory host:
cloudflared tunnel login
cloudflared tunnel create t12
cloudflared tunnel route dns t12 factory.example.com
cat > ~/.cloudflared/config.yml <<'EOF'
tunnel: t12
credentials-file: /home/factory/.cloudflared/<tunnel-id>.json
ingress:
- hostname: factory.example.com
service: http://127.0.0.1:8790
- service: http_status:404
EOF
cloudflared tunnel run t12 &
bin/t12 ui --url https://factory.example.comFor quick tests without a domain, run cloudflared tunnel --url http://127.0.0.1:8790 and pass the printed https://*.trycloudflare.com URL to --url. Do not use quick tunnels for team work because the hostname resets on restart.
Configure outbound SMTP
To email 15-minute sign-in links and invites instead of printing them to logs, add these keys to ~/.config/t12/env (0600) and restart t12 ui:
T12_SMTP_ADDR=smtp.example.com:587
T12_SMTP_USER=factory@example.com
T12_SMTP_PASSWORD=...
T12_SMTP_FROM=factory@example.comt12 ui upgrades to STARTTLS when offered, sends credentials only over TLS or a localhost relay, and times out mail after 30s.
| Provider | T12_SMTP_ADDR | Account notes |
|---|---|---|
| Google Workspace or Gmail | smtp.gmail.com:587 | Mailbox address plus an app password (requires 2-step verification) |
| Amazon SES | email-smtp.<region>.amazonaws.com:587 | SES SMTP credentials with a verified From address or domain |
| Mailgun | smtp.mailgun.org:587 | Domain SMTP login |
| Local Postfix relay | 127.0.0.1:25 | Leave T12_SMTP_USER and T12_SMTP_PASSWORD empty |
To verify delivery, submit an existing email on /signin and confirm the message arrives within one minute, or check t12 ui logs for mail to <address> failed: ....
Run the evaluation profile
To demo one project over a temporary HTTPS link (cloudflared and jq required):
scripts/evaluation-profile.sh ~/t12/home ~/t12/bakery-blogPass an optional [PORT] third argument to override 8790. The script sets merge_policy.mode to auto and qc.explorer to true on staging, opens a https://*.trycloudflare.com quick tunnel, and starts t12-ui.
Operations and recovery
- Admin socket:
t12-uilistens on<home>/admin.sock(0600, falling back to$XDG_RUNTIME_DIRor/tmp/t12-<uid>when paths exceed OS socket length limits, or$T12_ADMIN_SOCKET). - Status check:
t12-ui --statusprintsidle,phase,activeJobs,previewRunning,externalBusy, andcommit. - Drain:
t12-ui --drain --hold 45sexits3if any UI job, Observer turn, or runningt12command is active. When idle, it blocks new jobs until--shutdownrestarts the process or--holdexpires. - Preview guard: Pass
--wait-preview(or setT12_WAIT_PREVIEW=1forautoupdate.shandautoupdate-docker.sh) to defer updates whilet12 previewruns on port8800.
agy uses the desktop keyring locally, but switches to a separate token file whenever SSH_CONNECTION, SSH_CLIENT, or SSH_TTY is set. Either sign in once via ssh -t <host> agy, or strip those three variables:
env -u SSH_CONNECTION -u SSH_CLIENT -u SSH_TTY bin/t12 run --conversation <id>On a desktop, agy keeps its sign-in in the system keyring and there is no file to choose. Run DBUS_SESSION_BUS_ADDRESS=unix:path=/nonexistent agy, then /login, to make agy write ~/.gemini/antigravity-cli/antigravity-oauth-token. The keyring sign-in stays untouched.
Generate a fresh 15-minute Operator recovery link or set an Operator password from the host shell without stopping t12 ui:
bin/t12 ui --bootstrap --url https://factory.example.com
bin/t12 access set-password --email operator@example.com --operatorOmit --url when recovering on http://127.0.0.1:8790.