Prerequisites & Tool Setup

Trinity relies on a few command-line tools to create projects, manage repositories, and run AI agents. This page covers what you need and how to set it up.

Trinity checks for these tools contextually — when you enter a workspace, open a project, create a project, start a run, or delete a project, you'll see a clear message if something is missing, along with the exact command to fix it. You never have to install anything up front and guess at what's needed: Trinity tells you which tool, and offers to install it in place.

Installing Trinity

Pick your platform from the downloads page — Trinity ships three artifacts: macOS Apple Silicon, Linux x86_64, and Linux arm64.

macOS (Apple Silicon)

Download the .dmg, open it, drag Trinity to your Applications folder, and double-click to launch. Trinity is code-signed with our Developer ID and notarized through Apple, so there's no quarantine workaround needed.

Linux

Download the .deb package matching your architecture (amd64 for x86_64, arm64 for ARM) and install it:

sudo dpkg -i Trinity_*.deb

Required Tools

Git

Git is required for all project operations — creating repos, managing branches, and running worktrees for parallel execution. Trinity needs git 2.31 or newer: it protects the git commands it runs with settings that older versions silently ignore. If your git is older, Trinity reports it as too old and shows the command to update it (brew install git on macOS, sudo apt install git on Debian/Ubuntu, or your distribution's newer git package).

macOS:

xcode-select --install

A system dialog will appear — click Install and wait for it to complete. This installs Git along with other developer tools Trinity uses.

Linux (Debian/Ubuntu):

sudo apt install git

Linux (Fedora):

sudo dnf install git

Configure your identity (required for commits, both platforms):

git config --global user.name "Your Name"
git config --global user.email "[email protected]"

Trinity checks the version and this identity when you create or import a project. If name or email aren't set, you'll be prompted to configure them.

Connecting a GitHub account

Repository creation, pull requests, and every other GitHub operation Trinity performs run through Trinity's own REST client, authenticated with whichever account you connect — the gh binary itself is never spawned to do this work. The primary way to connect an account is Sign in with GitHub: an OAuth device flow where Trinity shows a short code, you enter it on github.com, and Trinity finishes connecting the account — no CLI and no token to create. Other hosts (GitLab, Bitbucket, self-hosted GitLab/Forgejo) use an access token instead. See Signing In for the full setup screen and Creating Your First Project for where this fits in project setup.

The GitHub CLI (gh) is optional, and useful in two situations:

  • As a way to obtain a credential. If you don't have gh yet, Trinity's setup screen offers Install & sign into the GitHub CLI as one path to a connected account, walking you through the install and gh auth login in-place.
  • To reuse an already-authenticated CLI session. If gh is already signed in on your machine, Trinity offers Use @you or Auto-import from your CLIs to lift that session's token straight into Trinity's own keyring, so you don't have to sign in again inside the app.

Either way, once an account is connected, Trinity authenticates git operations itself via its own GIT_ASKPASS helper — gh's own credential state is no longer consulted.

If you'd rather install gh manually first:

macOS (Homebrew):

brew install gh

Linux (Debian/Ubuntu):

(type -p wget >/dev/null || sudo apt install wget) \
  && sudo mkdir -p -m 755 /etc/apt/keyrings \
  && out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg \
  && cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
  && sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
  && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
  && sudo apt update \
  && sudo apt install gh

Or see cli.github.com for other distributions.

Authenticate (both platforms):

gh auth login

Follow the prompts to authenticate with your GitHub account.

Route git through gh (ambient identity only)

gh auth setup-git

An account connected through Trinity — by OAuth device flow, by PAT, or by auto-importing an already-authenticated gh/glab/tea session — authenticates git operations through Trinity's own GIT_ASKPASS helper and never touches git's own credential helper, so this step isn't part of that path.

It matters only for the ambient git identity — git operations that run under your machine's own, unbound identity rather than a Trinity-connected account. There, gh auth login only authenticates the gh CLI itself; git's own credential helper still needs to be told to ask gh for a token. Without setup-git, push and fetch over HTTPS will silently prompt for a username on stdin, which has no terminal to answer it and will hang waiting forever. If you rely on the ambient identity, run this once so the credential helper is routed.

Delete Permissions

If you want to use the Delete Project feature (in Project Settings > Danger), the GitHub repo deletion it performs needs the delete_repo scope on your connected GitHub token — not on the gh CLI itself. This scope isn't granted by default.

If you connected your account via the GitHub CLI (Install & sign into the GitHub CLI, or lifting an already-authenticated session with Use @you / Auto-import), add the scope to that CLI session and then re-import the account so Trinity picks up the refreshed token:

gh auth refresh -s delete_repo

Then reconnect the account in Trinity — raising gh's own scope doesn't reach Trinity until the account is re-imported, because the token Trinity stored is a one-time snapshot. If you connected another way (OAuth device flow, a manual token, or a non-GitHub host), reconnect the account with a token that carries delete_repo instead.

Trinity will prompt you for this if needed when you try to delete a project.

Claude Code CLI

Claude Code is the AI agent that powers Trinity's story execution. It's the engine behind the Analyst, Implementer, Auditor, and Documenter phases — the thing that actually writes, reviews, and tests your code.

Trinity checks for it as soon as your model tiers resolve to it — on the way into a workspace, and again when you open a project whose own tiers name it, unless one of your other machines already has it. That check blocks the work surfaces until it clears, and it offers both fixes on the spot: install Claude Code inline, or move those tiers onto the Codex CLI if that's the one you already have. The same binary is what the in-app help assistant runs on, which is why the workspace-level check comes before you've opened any project at all.

Step 1: Install Claude Code

macOS (Homebrew):

brew install --cask claude-code

Any platform (curl):

curl -fsSL https://claude.ai/install.sh | bash

Or via npm:

npm install -g @anthropic-ai/claude-code

Verify the installation:

claude --version

If you see a version number, you're good.

Step 2: Connect Claude to Trinity

Trinity signs Claude in with its own named token, not with the login in your terminal, so each Claude run is kept apart from your own Claude sessions and settings. You set it up once, inside Trinity, as a connection:

  1. Open Workspace Settings → Mine → AI Models → Providers.
  2. In the Claude connections list, choose Add Claude connection.
  3. Name the connection, such as "Personal" or "Work". The name is how you tell your Claude accounts apart.
  4. Trinity shows a sign-in link. Open it, approve access, and paste the code the page shows into the box Trinity then offers. The link opens from any device that can see the run, not only the machine running Trinity. Trinity stores the token for you; there is nothing to copy.

The connection reads Verified once Trinity has made a test call with it. On a first launch with no Claude connection and no API key, Trinity shows a Connect an agent step that walks you through exactly this before the app opens.

If you would rather use an Anthropic API key, add it under Settings → Secrets as ANTHROPIC_API_KEY instead. Unless you chose a specific connection for a conversation or project, a key, when set, is used in preference to your default connection. See Claude and Codex connections for naming several, choosing a default and the order Trinity picks them in.

Step 3: Verify it works

Send a message in a Trinity chat. If Claude answers, you're connected. If you get an authentication error, choose Reconnect on the connection (or the Reconnect card in the chat), or double-check your API key.

Updating Claude Code

Claude Code auto-updates in the background — no action needed.

Troubleshooting Claude Code

"claude: command not found" — Claude Code isn't installed or isn't in your PATH. Install it:

curl -fsSL https://claude.ai/install.sh | bash

Or via Homebrew on macOS: brew install --cask claude-code

Authentication issues — Trinity runs Claude Code under the connection you added in Step 2, not under your terminal's sign-in. If a run is refused, Trinity re-runs a chat turn a few times before it reports anything, so you'll usually never see a brief hiccup. If a turn comes back saying the sign-in was refused every time, the token has expired or been revoked: choose Reconnect '' on the Reconnect card under the failed message, or open Workspace Settings → Mine → AI Models → Providers and choose Reconnect on the connection in the Claude connections list.

Or, if you're using an Anthropic API key instead of a Claude subscription, verify it's set under Settings → Secrets, or in your shell:

echo $ANTHROPIC_API_KEY

Codex CLI

Codex is Trinity's second engine. You only need it if you point a tier at a model it serves — OpenAI's GPT-6 models, xAI's Grok or Sakana's Fugu — under Workspace Settings → Mine → AI Models → Models. If every tier you use runs on Claude Code, skip this.

Like Claude Code, Trinity checks for Codex the moment your tiers resolve to it — entering a workspace whose tiers name it, or opening a project that points its own tiers at it, unless one of your other machines already has it — and again when a run reaches for it, where a missing binary puts a Tool Not Installed card on the story's thread rather than failing it. The entry check offers the install inline, on this machine or on another of yours, or a one-click switch of those tiers back to Claude Code.

Step 1: Install Codex

macOS (Homebrew):

brew install codex

Any platform (npm):

npm install -g @openai/codex

Step 2: Authenticate

Two paths, and either works:

  • Add a Codex connection — under Workspace Settings → Mine → AI Models → Providers, in the Codex connections list, choose Add Codex connection, name it, and follow the device sign-in Trinity shows. The login stays on this machine, so a Codex connection is added once per machine you run Codex on.
  • Let Trinity supply the key — add an OpenAI API key under Settings → Secrets and Trinity hands it to Codex on every run. Use this when you'd rather key the engine per-project than sign the machine in.

Step 3: Verify it works

codex --version

If that prints a version, Trinity will find it.

Sandbox dependencies (Linux only)

Every agent Trinity runs is fenced into a sandbox. On macOS that's Seatbelt, which is built into the OS — nothing to install. On Linux the fence is built on bubblewrap, and it needs three packages on your machine:

  • bubblewrap — the sandbox itself
  • ripgrep — the file-scanning helper it uses
  • socat — the sandbox's network relay, which also carries a project you start with Run Project out to your browser on its port

Trinity checks for all three when you enter a workspace, and offers to install them for you: a panel with your password prompt inline, running the right command for your distribution. If you'd rather do it yourself:

# Debian / Ubuntu
sudo apt install bubblewrap ripgrep socat
 
# Fedora / RHEL
sudo dnf install bubblewrap ripgrep socat
 
# Arch
sudo pacman -S bubblewrap ripgrep socat
 
# openSUSE
sudo zypper install bubblewrap ripgrep socat
 
# Alpine
sudo apk add bubblewrap ripgrep socat

On RHEL, bubblewrap and socat come from the base repositories but ripgrep needs EPEL enabled — if the install stops on that one package, that's why.

The fence also needs your kernel's ptrace protection (Yama) switched on. With it off, a command an agent runs could read the agent's own memory, and every key in it. Ubuntu and Fedora ship with it on. Where it is off, or your kernel has none, Trinity won't start agents and says so. Turn it on, and keep it on across restarts:

sudo sysctl -w kernel.yama.ptrace_scope=1
echo 'kernel.yama.ptrace_scope = 1' | sudo tee /etc/sysctl.d/60-trinity-yama.conf

A kernel built without Yama, as some Docker Desktop virtual machines are, needs one that has it.

Optional Tools

Node.js and package managers

Trinity knows how to install Node.js, pnpm, Yarn and Bun (and the service CLIs below), and offers the install in place on a machine that lacks one. You only need them yourself when a project does: an npm project needs Node.js (npm ships with it), a pnpm or Yarn project needs that package manager, and a Bun project needs Bun. Node.js is also an option for installing Claude Code via npm install -g @anthropic-ai/claude-code; the brew and curl install paths above are self-contained and don't require it.

If you install Node, 18+ works (22 recommended):

# macOS
brew install node
 
# Linux (Debian/Ubuntu)
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt install -y nodejs

pnpm and Yarn come through Node's Corepack, so Node.js has to be there first; Trinity's install card puts Node.js ahead of them when it is missing. Node 25 and later, and some distro Node packages, ship without Corepack. Trinity's install recipe adds it with npm when it is missing. By hand:

npm install -g corepack
corepack enable pnpm   # or: corepack enable yarn

On Linux the recipe keeps Corepack and its pnpm and Yarn shims under ~/.local so it needs no administrator password; make sure ~/.local/bin is on your PATH for your own terminal.

Bun installs with brew install oven-sh/bun/bun on macOS, and on Linux with its official script, which needs no administrator password and puts Bun in ~/.bun:

curl -fsSL https://bun.sh/install | bash

Service CLIs

A project whose stack names one of these tools needs it on the machine that runs its stories. Trinity installs each in place, from a card that appears when a run needs it, and offers a Sign in runner for it under Project Settings → Stack → Setup, with the install steps ahead of it while the tool is missing. A tool that needs Node.js (Wrangler, Twilio, Firebase) puts Node.js ahead of it in the install card when it is missing. On Linux none of the installs asks for an administrator password: they write under ~/.local, so make sure ~/.local/bin is on your PATH for your own terminal. A tool that is always run through npx (Convex, Dexie Cloud) needs nothing but Node.js.

Supabase CLI. brew install supabase/tap/supabase on macOS. On Linux Trinity downloads the release tarball for your architecture, checks it against the release's published checksums and installs it into ~/.local/bin; the CLI has no global npm install. Sign-in (supabase login) opens a dashboard page; approve access there and type the verification code the page shows back into Trinity.

Wrangler (Cloudflare). npm install -g wrangler. Sign-in (wrangler login) shows a Cloudflare authorization link. Cloudflare redirects back to a local address on the machine running Wrangler, so approve it in a browser on that machine; a browser on another device cannot finish it.

Stripe CLI. brew install stripe/stripe-cli/stripe on macOS; on Linux the checked release tarball goes into ~/.local/bin. Sign-in (stripe login) shows a pairing code and a Stripe dashboard link. Approve the pairing on that page, from any device, and the CLI finishes on its own.

Twilio CLI. npm install -g twilio-cli. Sign-in (twilio login) has no browser step: Trinity asks for your Account SID and Auth Token and types them into the CLI. The CLI uses the Auth Token once to create an API key, keeps only that key, and Trinity stores neither value. The profile is named trinity.

Firebase CLI. npm install -g firebase-tools. Sign-in (firebase login --no-localhost) shows a Google link; approve access there and paste the authorization code back into Trinity. On a first sign-in Trinity declines the CLI's questions about Gemini features and usage reporting, so Firebase collects nothing until you run firebase logout and firebase login yourself and say yes.

Docker Desktop

Some codebases use Docker Compose for local development services (databases, caches, etc.). Docker is only needed if one of your project's codebases includes containerized services.

Install: docker.com/products/docker-desktop

Trinity detects Docker usage per codebase during greenfield setup and shows a reminder if Docker Desktop isn't running when needed. If a run needs Docker and it isn't installed, the run waits on a Tool Not Installed card that walks you through installing Docker and starting it, and the story resumes by itself once Docker answers.

Trinity needs Docker Compose v2.35 or newer. It does not start a stack whose compose file reaches outside the project's working copy — a mount of your home folder or of the Docker socket, a privileged container, host networking. The run reports each problem, naming the service and the setting to change.

Git LFS

Git LFS is optional, and only repositories that store large files in it need it. Install it with brew install git-lfs on macOS or sudo apt install git-lfs on Debian/Ubuntu. Trinity transfers LFS files itself: it uploads them before a push and downloads them after a checkout, using the account you connected, so you never run git lfs by hand.

Without it, a push or checkout of a repository that uses LFS stops with "Git LFS isn't installed on this device." Install it and retry.

Chromium-based browser (for PDF exports)

Trinity uses any installed Chromium-based browser to render PDF reports — Chrome, Edge, Brave, and Chromium all work interchangeably. Most users already have one. If none is installed, Trinity offers to install it for you in-place — the PDF export dialogs show an install panel that runs brew install --cask google-chrome on macOS or the right chromium package for your Linux distro (Debian/Ubuntu/Fedora/RHEL/Arch/openSUSE/Alpine all supported). You stay in Trinity the whole time. Other formats (JSON, HTML zip) don't need a browser.

When Checks Happen

Action What's checked
Enter a workspace (Linux only) The sandbox: its dependencies — bubblewrap, ripgrep, socat — with an inline install offered for your distribution, and the kernel's ptrace protection, with the commands to turn it on
Enter a workspace The agent CLI your workspace's model tiers resolve to — blocking, with an inline install and a one-click switch to the other engine
Open a project The tools the project requires and the agent CLI its tiers use, across your machines that can run work — blocking only when no single machine of yours has them all, with an install on this machine or another, a one-click switch to the other engine saved wherever the setting came from, and Continue anyway
Create new project Git (installed, 2.31 or newer, configured)
Import existing project Git (installed, 2.31 or newer, configured)
Start execution run Git plus whichever harness CLIs (Claude Code, Codex) the release's effective tier→harness map can actually reach — informational only in the start modal, never a blocker
Each story, before its first phase Git, then the CLIs that story's own steps resolve to — a missing one puts a Tool Not Installed card on the story instead of dying part-way through
Delete project The connected GitHub token's delete_repo scope — surfaces as a non-blocking alert, never something that stops you
Docker-enabled projects (execution) Docker Desktop running + Compose v2.35+ — probed when a story's worker starts the stacks, not proactively (one stack per Docker-enabled codebase in the run); a failure surfaces as an alert on the dashboard's Execution card, not the inline alert / Check Again flow below
Export a PDF report Chromium-based browser (Chrome / Edge / Brave / Chromium / Playwright cache)

If a check fails, you'll see an inline alert with the exact command to run. After running the command, click Check Again to verify.

The git-host connection itself isn't part of these per-project checks — it's verified once per workspace scope, at the First-Time Workspace Setup step you clear when you first enter a workspace (see Signing In → First-Time Workspace Setup). Every project you create or import in an already-set-up workspace reuses that connected account.

Troubleshooting

"git: command not found"

  • macOS: Run xcode-select --install to install Xcode Command Line Tools
  • Linux: Run sudo apt install git (Debian/Ubuntu) or sudo dnf install git (Fedora)

"gh: command not found"

The GitHub CLI isn't in your PATH. Restart your terminal after installation, or install it:

  • macOS: brew install gh
  • Linux: See install instructions above, or visit cli.github.com

"claude: command not found"

Claude Code isn't installed. Run:

curl -fsSL https://claude.ai/install.sh | bash

Or via Homebrew on macOS: brew install --cask claude-code

Token expired / authentication errors

GitHub CLI tokens can expire. Re-authenticate:

gh auth login

Deleting a project's GitHub repos needs the delete_repo scope on your connected account's token, not on gh itself. If you connected via the GitHub CLI, refresh the CLI session's scopes, then reconnect the account in Trinity so it picks up the refreshed token:

gh auth refresh -s delete_repo

Git identity not configured

Git requires a name and email for commits. Set them globally:

git config --global user.name "Your Name"
git config --global user.email "[email protected]"