1 Welcome

First-launch landing.

Single primary action. The serif headline carries the marketing voice from the website; everything below is sans for app-style readability.

Tokenomics

Track your AI usage.

At a glance, from the menu bar.
Tokenomics works with Claude, Codex, Gemini, Copilot, Cursor, and more.

Tokenomics reads usage data locally. Your tokens never leave your Mac. Learn more

2 Pick what to set up

Provider chooser, with detection running in the background.

Same content as the popover version, but with room to breathe. Connected providers show a check; unconnected ones show their setup label. The legend at the bottom defines Quick vs Guided so labels aren't a mystery.

Tokenomics — Setup

Add a provider

We'll walk you through any setup that's needed.

Platforms
✦
Anthropic Claude Chat · Cowork · Code
Guided setup ›
S.
Stability AI Stable Diffusion · Stable Image · Stable Video
Guided setup ›
Coding tools
○
OpenAI Codex CLI
Connected
◆
Google AI Gemini CLI
Quick setup ›
⌥
GitHub Copilot VS Code · JetBrains · CLI
Quick setup ›
▣
Cursor Cursor app
Quick setup ›
Some providers connect with one sign-in (Quick). Others take a few steps — we walk you through every one (Guided). No Terminal either way.
3 Detect (auto)

"Checking what you already have…"

Brief auto-advance screen. Devs with everything installed see this for ~1s, then jump to the auth step. Fresh Macs see it longer and watch each check resolve.

The checklist adapts per provider: Codex / Gemini need Homebrew + Node.js (npm comes with Node, not separately) + the CLI itself. Claude needs only Homebrew + Claude Code — no Node, since Anthropic ships it as a Homebrew cask. Copilot needs Homebrew + the gh CLI — also no Node. Cursor just needs the Cursor.app bundle. API-key providers (Stability, Runway, ElevenLabs) skip Detect entirely and go straight to "Paste your API key."

Connect OpenAI
1 Checking tools
2 Installing tools
3 Signing in
4 Connection check

Checking your Mac…

Looking for the tools needed to connect Codex.

✓
Homebrew
/opt/homebrew/bin/brew
Installed
✓
Node.js (includes npm)
/opt/homebrew/bin/node · v20.10.0
Installed
○
Codex CLI
@openai/codex
Not installed

Dev's Mac — Homebrew + Node already there, only the Codex CLI itself is missing.

Connect OpenAI
1 Checking tools
2 Installing tools
3 Signing in
4 Connection check

Checking your Mac…

Looking for the tools needed to connect Codex.

○
Homebrew
Package manager for macOS
Not installed
○
Node.js (includes npm)
Required by the Codex CLI
Not installed
○
Codex CLI
@openai/codex
Not installed

Fresh Mac — three installs queued. Confirms before each one.

4 Explain + confirm

Each install is its own confirmable step.

The user reads what's about to happen, sees the exact command, and clicks Continue. "Skip — I already have this" lets devs short-circuit if our detection missed their install. Three confirms for a fresh Codex install: Homebrew → Node.js → Codex CLI. Each one auto-skips if already detected, so a dev with brew + node already installed only sees the Codex CLI confirm. Gemini follows the same three-confirm pattern with @google/gemini-cli. Copilot is two confirms (Homebrew + gh) — no Node needed.

Connect OpenAI
✓ Checking tools
2 Installing tools
3 Signing in
4 Connection check

Install Homebrew

Tokenomics needs Homebrew to install Node.js and the Codex CLI. Homebrew is the standard Mac package manager — about 2 minutes to install.

Tokenomics will run:
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

We'll open Terminal and install Homebrew with your permission. You'll be asked for your password once. Same official installer from brew.sh.

Already have Homebrew?

Confirm 1 of 3 — Install Homebrew. Skipped if Homebrew is already detected.

Connect OpenAI
✓ Checking tools
2 Installing tools
3 Signing in
4 Connection check

Install Node.js

Tokenomics needs Node.js (and npm, which comes with it) to install the Codex CLI. About 30 seconds.

Tokenomics will run:
$ brew install node

Installs Node.js into your Homebrew directory. No admin password needed. Same package as the official Mac install on nodejs.org — Tokenomics doesn't add anything; we just run the install for you.

Already have Node?

Confirm 2 of 3 — Install Node.js. Skipped if Node is already on the user's PATH (any version manager works — nvm, fnm, asdf, system).

Connect OpenAI
✓ Checking tools
2 Installing tools
3 Signing in
4 Connection check

Install Codex CLI

Now we'll install OpenAI's Codex CLI via npm. About 30 seconds, no extra permissions needed.

Tokenomics will run:
$ npm install -g @openai/codex

This is OpenAI's official Codex CLI package on npm. Same install command on OpenAI's Codex repo. Tokenomics installs it to a per-user prefix so it doesn't need admin permission.

Already have Codex CLI?

Confirm 3 of 3 — Install Codex CLI. The actual provider CLI. Same pattern works for Gemini (@google/gemini-cli) and Copilot (brew install gh).

5 Progress

Live install — polished, not Terminal-flavored.

Indeterminate bar for steps that can't report progress, real progress where we can. Last few stdout lines stream in the log block, fading at the bottom. Cancel stays available the whole time.

Connect OpenAI
✓ Checking tools
2 Installing tools
3 Signing in
4 Connection check

Installing Node.js…

About 20 seconds left. You can keep using your Mac.

==> Auto-updating Homebrew…
==> Downloading https://ghcr.io/v2/homebrew/core/node
==> Pouring node--20.10.0.arm64_sonoma.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
==> Linking /opt/homebrew/bin/node
6 Auth handoff

Explicit click before the browser opens.

Carries forward the awaiting-user-confirm pattern we just built for Gemini — Tokenomics names the side effect (browser, third-party) before doing anything. The user's click is what answers the underlying CLI prompt.

Connect OpenAI
✓ Checking tools
✓ Installing tools
3 Signing in
4 Connection check

Sign in to OpenAI

Tokenomics will open OpenAI's sign-in page in your browser. Your tokens stay on your Mac — Tokenomics never sees them.

auth.openai.com/oauth/device
○
Sign in with OpenAI
A new browser tab will open in a moment.
7 Done

Connected. Add another, or finish.

Closes the loop. Two equivalent paths forward — keep adding providers, or jump out to the menu bar where the rings are now drawing live data.

Connect OpenAI
✓ Checking tools
✓ Installing tools
✓ Signing in
✓ Connection check
✓

OpenAI is connected.

Tokenomics is now reading your Codex CLI usage. Want to add another, or jump to the menu bar?

Add or remove providers any time in Settings → Connections.

8 Error states

When something goes sideways — actionable, never a dead end.

Every error block ends with a single concrete next-step button. The classic EACCES wall (Homebrew prefix permission) becomes a one-click pivot to a user-prefix install path.

Connect OpenAI
✓ Checking tools
! Installing tools
3 Signing in
4 Connection check

Couldn't install the Codex CLI

The standard install location isn't writable by your account. We can switch to a per-user install — same result, no admin password.

EACCES: permission denied
/opt/homebrew/lib/node_modules/@openai

EACCES — recoverable, shifts to user-prefix install.

Connect Google AI
✓ Checking tools
✓ Installing tools
! Signing in
4 Connection check

No network connection

We need to reach Google's sign-in to finish this step. Reconnect and try again — your install so far is saved.

Couldn't reach accounts.google.com
Last attempt: 12 seconds ago.

Network failure — keep state, retry.

9 Full sequence

A fresh-Mac Codex setup, end-to-end.

The path a brand-new user walks through. Each frame is one screen above — this just makes the cadence visible.

  1. Welcome → "Get started"
  2. Pick provider → tap OpenAI
  3. Detect → "Homebrew, Node, Codex CLI all missing" → "Continue"
  4. Confirm install Homebrew → "Install Homebrew"
  5. Progress → live log → completes
  6. Confirm install Node → "Install Node.js"
  7. Progress → live log → completes
  8. Confirm install Codex CLI → "Install Codex CLI"
  9. Progress → live log → completes
  10. Auth handoff → "Open browser to sign in"
  11. (user signs in in browser)
  12. Done → "Add another or I'm all set"

A dev who already has Homebrew and Node skips steps 4–7 and lands directly at step 8. Same screens, same vocabulary.

Provider variations.

The canonical flow above (Codex / Pattern A) covers Tokenomics-driven install + automated browser OAuth. Three other patterns diverge enough to warrant their own screens — Cursor doesn't get installed by us, API-key providers don't install at all, and Claude's auth has to be driven by the user (Anthropic policy). Each one reuses the same window chrome and stepper vocabulary, just with different content and labels.

10 Cursor — app-bundle flow

Pattern D: download an app, sign into it, wait for both.

Tokenomics doesn't install Cursor — Cursor is a real Mac app distributed from cursor.com. The "Installing tools" step renames to "Installing Cursor" and becomes a hand-off + poll instead of a streaming install. Tokenomics needs both the app bundle and the user's sign-in (the JWT only gets written to Cursor's local config once they've signed in once). The polling state watches for both.

Connect Cursor
✓ Checking tools
2 Installing Cursor
3 Signing in
4 Connection check

Install Cursor

Cursor is a separate Mac app. Once it's installed and you've signed in to it once, Tokenomics will pick up your usage automatically.

Tokenomics will open:
↗ https://cursor.com/downloads

cursor.com/downloads is Cursor's official download page. We're just opening it for you — same place you'd land if you searched "Cursor download."

Confirm — opens cursor.com; sign-in requirement is named in the body.

Connect Cursor
✓ Checking tools
2 Installing Cursor
3 Signing in
4 Connection check

Waiting for Cursor

We'll detect Cursor as soon as it's installed and you've signed in. Keep Tokenomics open in the background.

Watching for the Cursor app and your sign-in — last checked just now.

Polling — watches for both the app bundle and the user's sign-in.

11 API key — paste flow

Pattern E: get a key from the provider, paste it here.

No install, no OAuth — these providers expose a long-lived API key that Tokenomics reads directly. Steps rename to fit: "Installing tools" becomes "Get API key", "Signing in" becomes "Paste key". The key lives in macOS Keychain after this; Tokenomics never holds it in memory or sends it anywhere except the provider's own usage endpoint.

Connect Stability AI
✓ Checking tools
2 Get API key
3 Paste key
4 Connection check

Get your Stability API key

Tokenomics will open Stability's dashboard. Find your API keys under Account → API Keys — we recommend generating a new one so you can revoke it independently later if you ever stop using Tokenomics.

Tokenomics will open:
↗ https://platform.stability.ai/account/keys

platform.stability.ai is Stability's official developer dashboard. You only do this once. The key is stored in macOS Keychain — we never see it after you paste it.

Open provider site — same shape as the install-confirm screen, different action.

Connect Stability AI
✓ Checking tools
✓ Get API key
3 Paste key
4 Connection check

Paste your API key

Saved to macOS Keychain. Tokenomics reads it only when checking your usage — never sends it anywhere else.

sk-•••••••••••••••••••••••••••

Lost your key?

Paste — secure input, mono font with letter-spacing, inline Paste button.

12 Anthropic — user-driven sign-in

Pattern B: we start it, you finish it.

Anthropic now ships Claude Code via Homebrew (brew install --cask claude-code), which sidesteps the npm prefix and PATH issues. Sign-in itself is still multi-step inside Claude Code — Anthropic's policy doesn't let third-party apps drive it. So Tokenomics frames Step 2 (Installing tools) as a handoff: we install the CLI, then walk the user through what they'll need to do in Terminal to finish setup. Five windows total — two confirm screens for the actual installs (Homebrew, then Claude Code), two preview screens that prep the user for the Claude Code wizard, then a waiting screen with the "you're done when you see this" cue. Step 3 (Signing in) activates the moment Terminal opens. Any window 1–4 auto-skips if its condition is already satisfied — so a dev with brew + claude-code + auth already in place would land directly on the Done frame.

Connect Anthropic
✓ Checking tools
2 Installing tools
3 Signing in
4 Connection check

Install Homebrew

Tokenomics needs Homebrew to install Claude Code. Homebrew is the standard Mac package manager — about 2 minutes to install.

Tokenomics will run:
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

We'll open Terminal and install Homebrew with your permission. You'll be asked for your password once. Keep Terminal open — we'll use it again for Claude Code in a second. This is Homebrew's official installer, straight from brew.sh.

Already have Homebrew?

Window 1 — Install Homebrew. Mirrors the Codex Install Node.js confirm pattern. Skipped automatically if Homebrew is already detected.

Connect Anthropic
✓ Checking tools
2 Installing tools
3 Signing in
4 Connection check

Install Claude Code

Now we'll install Claude Code using Homebrew. About 1 minute, no extra permissions needed.

Tokenomics will run:
$ brew install --cask claude-code

We'll run this in the same Terminal window. This is Anthropic's official Mac install — same command on claude.com's setup docs. Tokenomics doesn't add anything; we just run it for you.

Already have Claude Code?

Window 2 — Install Claude Code. Same pattern, the actual provider CLI install. Skipped if Claude Code is already detected via any install method (curl, npm, brew).

Connect Anthropic
✓ Checking tools
2 Installing tools
3 Signing in
4 Connection check

Finish installing Claude Code

We've started the install for Claude Code. You'll need to finish it by walking through the steps Anthropic has laid out — we're here to guide you. Here's what's going to happen:

In Claude Code, you'll:
  • 1
    Pick login method — choose Claude account with subscription if you're on Pro / Max
  • 2
    Sign in via browser, paste the email code Anthropic sends
  • 3
    Authorize Claude Code to connect to your account
  • 4
    Accept Anthropic's security notes

Window 3 — Finish installing Claude Code. Tokenomics has done its part of the install (Windows 1–2). Now the user finishes by signing in via the wizard. Sign-in scope kept on its own screen so the user isn't overwhelmed.

Connect Anthropic
✓ Checking tools
2 Installing tools
3 Signing in
4 Connection check

Setup

After you sign in, Claude Code asks for two more things — a folder and macOS permissions. Finish those and you're done.

In Claude Code, you'll:
  • 5
    Pick a folder Claude can access — create a Projects folder in your Home folder if you don't have one
  • 6
    Grant macOS permissions as Claude Code asks for them

Heads up: Claude Code asks macOS for access to a bunch of folders during setup — Music, Photos, Downloads, Documents. Safe to decline anything outside your Projects folder. Claude works fine without them.

Window 4 — Setup. The Mac-side configuration. The "Open Terminal" CTA lives here, so the user knows exactly when Terminal launches — not on Windows 1–3.

Connect Anthropic
✓ Checking tools
✓ Installing tools
3 Signing in
4 Connection check

Confirm login

We're waiting for your successful login. You'll know you're done when you see Claude's chat prompt — close Terminal then and come back here.

Terminal — claude
claude
Claude Code v2.1.122
Opus 4.7 (1M context) · Claude Max
~/projects/Tokenomics

When your Terminal looks like this, you're signed in.

Watching ~/.claude for authentication — make sure you're logged in to Claude Code.

Window 5 — Confirm login. Tokenomics watches for the credentials file while the user finishes in Terminal. The "you're done when you see this" cue is front and center.

13 Re-entry from Settings

Returning users find guided setup inside the existing popover.

Settings → Providers stays exactly as it is today — toggles for connected providers, Connect button for disconnected ones, plan tabs where applicable. The only addition is a "Need help?" banner at the top that opens the new onboarding window. No restyling required across the existing app.

Providers
Need help connecting a provider?
Platforms
✦
Anthropic Max — Connected Claude Chat · Cowork · Code
S.
Stability AI Not installed Stable Diffusion · Stable Image · Stable Video
Coding tools
○
OpenAI Free — Connected Codex CLI
◆
Google AI Free — Connected Gemini CLI
Free
Standard
Enterprise
⌥
GitHub Copilot Free — Connected
▣
Cursor Free — Connected

Behavior change is invisible in the chrome: Connect on a disconnected row, the toggle's first activation, and the "Need help?" link all open the new onboarding window for the right provider. No copy changes, no new buttons in the rows themselves.

Mockup · companion to docs/guided-onboarding-plan.md