Skip to Content
turbo-12f
Getting started

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.

How-to guide

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.

Step 1

Choose a host

Run locally, on an always-on machine, or in the cloud on Vercel.

Step 2

Sign up and connect

Create an account, then connect your own GitHub, agy, and omp.

Step 3

Work in teams

Invite people as owners, members, viewers, or clients.

Step 4

Expose over HTTPS

Front :8790 with a tunnel, add SMTP, and enable idle-safe updates.

SetupBest forEntry point
Local soloRunning requests on your laptopbin/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-updatesscripts/install-launchagents.sh
Docker ComposePortable container stack with Tailscaledocker-compose.yml
CloudNo machine of your own: Vercel, GitHub Actions, NeonHost in the cloud
Quick evaluationShort-lived demo over trycloudflare.comscripts/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 ui

On 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.

WhereEmail sign-upGitHub sign-up
SMTP is set upA 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 TailscaleCreated at once, on trust. A password is required because there is no mail to sign in with later.As above.
No SMTP, any other addressRefused: 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-12f

T12_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.

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.

ConnectionHow you connect itUsed for
GitHubSign in with GitHub, or Connect GitHub in your account settingsCreating repositories, pushing branches, pull requests, and issues as you
agyA Gemini API key, or your Google sign-in file, optionally under a Google Cloud project's Gemini Enterprise licenceRuns on the agy agent
ompAn Anthropic key, an OpenAI key, or omp's own sign-in fileRuns 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.

RoleWhat they do
OwnerAdministers the team: members, roles, rename, icon, projects.
MemberRuns and works in the team's projects.
ViewerReads the team's projects.
ClientFiles 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, and turbo in the composer menu. In Request 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_EMAIL and T12_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.target

Enable and start the service:

sudo systemctl enable --now t12-ui

Put 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.

PartWhat it does
VercelServes the web app and an API function for sign-in, read views, approvals, and sign-offs. It dispatches the worker.
GitHub Actions workerRuns t12-worker.yml from T12_WORKFLOW_REPO for conversation turns, confirm, run, release merge, and project connect, writing progress to the database.
Neon PostgresAccounts, 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-labs

Replace 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.com

For 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.com

t12 ui upgrades to STARTTLS when offered, sends credentials only over TLS or a localhost relay, and times out mail after 30s.

ProviderT12_SMTP_ADDRAccount notes
Google Workspace or Gmailsmtp.gmail.com:587Mailbox address plus an app password (requires 2-step verification)
Amazon SESemail-smtp.<region>.amazonaws.com:587SES SMTP credentials with a verified From address or domain
Mailgunsmtp.mailgun.org:587Domain SMTP login
Local Postfix relay127.0.0.1:25Leave 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-blog

Pass 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

Next steps

On this page