Mockup for the new window-based onboarding. Each frame below shows one
screen of the flow. Read top-to-bottom as a storyboard. Window sized
720 × 560 at default macOS text size; in production it grows with
Dynamic Type and Display zoom (use .font(.title), idealHeight in SwiftUI, not hardcoded sizes).
Single primary action. The serif headline carries the marketing voice from the website; everything below is sans for app-style readability.
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
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.
We'll walk you through any setup that's needed.
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."
Looking for the tools needed to connect Codex.
Dev's Mac — Homebrew + Node already there, only the Codex CLI itself is missing.
Looking for the tools needed to connect Codex.
Fresh Mac — three installs queued. Confirms before each one.
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.
Tokenomics needs Homebrew to install Node.js and the Codex CLI. Homebrew is the standard Mac package manager — about 2 minutes to install.
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.
Tokenomics needs Node.js (and npm, which comes with it) to install the Codex CLI. About 30 seconds.
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).
Now we'll install OpenAI's Codex CLI via npm. About 30 seconds, no extra permissions needed.
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).
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.
About 20 seconds left. You can keep using your Mac.
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.
Tokenomics will open OpenAI's sign-in page in your browser. Your tokens stay on your Mac — Tokenomics never sees them.
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.
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.
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.
The standard install location isn't writable by your account. We can switch to a per-user install — same result, no admin password.
/opt/homebrew/lib/node_modules/@openai
EACCES — recoverable, shifts to user-prefix install.
We need to reach Google's sign-in to finish this step. Reconnect and try again — your install so far is saved.
Network failure — keep state, retry.
The path a brand-new user walks through. Each frame is one screen above — this just makes the cadence visible.
A dev who already has Homebrew and Node skips steps 4–7 and lands directly at step 8. Same screens, same vocabulary.
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.
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.
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.
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.
We'll detect Cursor as soon as it's installed and you've signed in. Keep Tokenomics open in the background.
Polling — watches for both the app bundle and the user's sign-in.
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.
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.
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.
Saved to macOS Keychain. Tokenomics reads it only when checking your usage — never sends it anywhere else.
Lost your key?
Paste — secure input, mono font with letter-spacing, inline Paste button.
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.
Tokenomics needs Homebrew to install Claude Code. Homebrew is the standard Mac package manager — about 2 minutes to install.
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.
Now we'll install Claude Code using Homebrew. About 1 minute, no extra permissions needed.
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).
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:
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.
After you sign in, Claude Code asks for two more things — a folder and macOS permissions. Finish those and you're done.
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.
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.
When your Terminal looks like this, you're signed in.
~/.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.
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.
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