Skip to content
moderniselifePublic

About

Run every AI app and account side by side: separate profiles for Cursor, Claude Code, Claude Desktop and Grok Bot, plus one local OpenAI- and Anthropic-compatible endpoint that switches between your accounts. macOS, Windows, Linux and terminal.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

Prism logo — a glass prism splitting light into color

Prism

One launcher for every AI app and account you run — Cursor, Claude Code, Claude Desktop and Grok Bot.
Isolated profiles — own login, settings and history — running side by side, with live stats,
instant switching, fresh or overflow accounts, and color-coded windows so you never mix up Work and Personal again.

PR builds macOS 14+ .NET 8 GTK4 Cursor · Claude Code · Claude Desktop · Grok Bot

prism.mojolayers.com · Download

Apps · Features · Second brain · Endpoint · Quick start · Terminal · How it works · Layout · Releasing · FAQ


A Mojo Layers project. Three native apps plus a terminal client, one profile format:

Platform Stack Location Launch
macOS SwiftUI Sources/ + build.sh ./build.sh && open "build/Prism.app"
Windows WPF / .NET 8 windows/ dotnet build windows/CursorProfiles.csproj -c Release
Linux GTK4 + libadwaita (Python) linux/ python3 linux/prism.py
Terminal Go + Bubble Tea tui/ go run ./tui (or prism-tui)

All of them read and write the same profile folders and .profiles.json metadata, so profiles roam across operating systems. Every number the UI shows is measured live — resident memory from ps, window counts from the on-screen window list, CPU from the kernel. Nothing is hardcoded.

Supported apps

Every profile uses the app's own isolation switch, so separation is enforced by the app itself rather than by anything Prism fakes. Your existing install always appears as a protected built-in profile that launches exactly like opening the app normally.

App Each profile is Built-in profile Profiles folder Prism apps
Cursor its own --user-data-dir (+ --max-memory) Main Cursor ~/.cursor_profiles macOS, Windows, Linux, terminal
Claude Code its own CLAUDE_CONFIG_DIR, opened in a terminal Main Claude Code (~/.claude) ~/.claude_code_profiles macOS, Windows, Linux, terminal
Claude Desktop its own --user-data-dir Main Claude Desktop ~/.claude_desktop_profiles macOS, Windows, Linux, terminal
Grok Bot its own SAND_USER_DATA_DIR Main Grok Bot ~/.grokbot_profiles macOS, Windows, Linux, terminal

Each profile has its own sign-in, so you can run several accounts of the same app at once — Work and Personal, or a second account for when the first hits its usage limit.

Features

Profiles, properly isolated

  • A quiet hub — a sidebar with search and filters (All, Running, Custom, and one per app), a list grouped into Running and Not running with one action per row, and a detail panel for the selected profile (live memory, data folder, project, second brain, copy to a new account). Light and dark, one accent colour, on every platform
  • Your original installs are protected — each app's existing data shows up as a built-in profile (Main Cursor, Main Claude Code, Main Claude Desktop, Main Grok Bot) tagged Default. It launches exactly like opening the app normally, can be cloned or copied into a new profile, and can never be deleted
  • Create / edit / duplicate / rename with per-profile launch defaults (memory limit for Cursor, default project folder for Cursor and Claude Code)
  • Each profile has its own data folder: own login, settings, history. Folders you create by hand are picked up automatically

Fresh or overflow accounts (every app)

New profiles start as a fresh account (empty) or a copy of another same-app profile's config with none of its identity, so you sign in with your other account on first launch. For Cursor, Claude Code and Claude Desktop that copy is an overflow account: your working setup comes with you and you carry on where the first account left off. Pick it in the New Profile sheet, right-click a profile → New Overflow Account from This, or use New overflow account from this in the detail panel. What carries over:

  • Cursor — settings.json, keybindings, tasks and snippets (extensions are already shared). Not the login database or machine id
  • Claude Code — settings.json, CLAUDE.md, agents, commands, skills, output styles, hooks and plugins, plus user-level MCP servers and a few preferences from .claude.json. Not credentials, account ids or chat history
  • Claude Desktop — the MCP config and installed extensions with their settings. Not cookies or the login
  • Grok Bot — called Copy settings, not overflow, because it can't bring your agents: they live on your Grok Bot account, not on disk. It copies local settings, permission choices and tool approvals. To bring an agent across, open it in the source profile → Create Template → Share a template link → Copy the share link, then paste the link into a chat in the new profile (paste rather than click, so it opens in that profile). Right-click a Grok Bot profile → New Profile with These Settings

Copies use allowlists wherever an app mixes config and identity, so an unknown new token file never leaks into an overflow profile. Duplicate still makes a full clone (same login) for Cursor and Claude Code. Available on every platform.

Second brain (Brainium)

Accounts come and go; your agents' knowledge shouldn't. Prism wires Brainium into every profile — a git-backed personal brain that follows you (preferences, cross-project learnings, agent cards to recreate any agent on a new account) plus each repo's project brain — so a fresh or overflow account starts with everything the last one knew.

  • Claude Code — skill, CLAUDE.md section and MCP server; optional session capture (redacted, private, outside git) queued to be filed into the brain
  • Claude Desktop and Cursor — the Brainium MCP server (search, read, log, agent cards)
  • Grok Bot — its agents run in the cloud, so Prism copies an instructions snippet that points them at your personal brain's GitHub repo
  • Summarizing captures — your own AI does it over MCP by default (no extra tokens), or pick Anthropic, OpenAI, Bonsai, any OpenAI-compatible API, or no AI at all
  • Set it up in Settings → Second brain: click Install for Brainium (and Node.js if you need it) or Use existing…, create the personal brain, then Wire All Profiles (or wire new profiles automatically). Terminal: W. Available on every platform
  • Team brains and agents (Brainium 0.3+, macOS app) — keep a brain per team, group, profile or project next to your personal brain. Each has shared/ for what every agent knows and agents/<name>/ for each agent's own notes and docs (folders you already made are picked up as they are). Settings → Brains & agents lists them, copies the lines each agent needs in its instructions, and sets which brain each group uses; a profile can pick its own in its detail panel. Wiring gives each profile its brain
  • Routines — prompts (run through Claude Code in the profile you pick, or Codex), upkeep jobs (sync the brain, file captured sessions, a weekly digest) and shell commands on a schedule. Settings → Routines: choose Always (a background launchd job, even with Prism closed), While Prism is open or Off; review and approve each prompt or shell routine before it runs on this Mac (an edited one needs approving again); run one now; see when it last ran and why it failed. Prompt routines need Claude Code's CLI (or Codex) installed

One endpoint for every account

Point any AI app at Prism and switch between work and personal mid-chat — same app, same conversation, different account paying for it.

  • OpenAI- and Anthropic-compatible — serves /v1/chat/completions, /v1/messages and /v1/responses (with streaming and tool calls) plus /v1/models on http://127.0.0.1:4848. Any client works with any provider: Codex can run on Claude, Claude Code on GPT, a chat app on your local Bonsai models
  • Identities — Work, Personal, or as many as you like. Each holds API keys for Anthropic, OpenAI, xAI and any OpenAI-compatible server (Bonsai, Ollama, LM Studio, vLLM). Keys live in the macOS Keychain, Windows Credential Manager or the Linux keyring (Secret Service)
  • Switch three ways — the Work | Personal switch in the hub sidebar, the menu bar or ⌥⌘I; pick work/claude-… or personal/gpt-… in your app's model list; or type @work / @personal in a message (it sticks for the rest of that chat and is removed before sending)
  • Auto-switch rules — by words in your message, a regex, the app making the request (e.g. everything from Codex goes to Work) or time of day
  • Built for switching — reasoning that one account signed and another can't verify is dropped and the request retried, so a chat never breaks when you change identity
  • Overflow — give an identity a fallback: when it's rate-limited (429) or out of credit, requests go to the fallback until it recovers, and the log says so
  • Spend and budgets — tokens and cost per identity, per model, per day (built-in prices, editable); set a monthly budget that warns you, switches to the fallback or blocks requests
  • One token per identity — give an app an identity's own token and it always uses that identity; Claude Code profiles can pick an API account to run through the endpoint instead of their own sign-in
  • Everywhere — built into the macOS app; on Windows and Linux the app runs the small prism-endpoint helper (installed with one click, also on the release page) and in the terminal it's prism-tui endpoint or the TUI's E screen. All of them share the same settings format
  • Set it up in Settings → Endpoint (Windows: the Endpoint card; Linux: Preferences → Endpoint); it shows copy-ready setup for Open WebUI, LibreChat, TypingMind, Claude Code, Codex, Claude Desktop (Developer → Configure Third-Party Inference → Gateway) and the SDKs, plus a live log of which identity answered each request
  • Uses API keys only: Claude Pro/Max and ChatGPT subscription sign-ins are only allowed in their providers' own apps

Groups

  • Sort profiles into groups — a project, a client, a kind of work. A group can hold profiles from any app, so one Acme group can have its Cursor, Claude Code and Claude Desktop profiles together
  • Make one with + next to Groups in the sidebar, then file profiles by dragging them onto it, from Group in their menu, the detail panel or the profile editor
  • Pick a group in the sidebar to see only its profiles, or arrange the whole list by group (sort menu, or Settings → General). Rename, recolour, reorder and delete groups from their menu or Settings → Groups; deleting a group keeps its profiles
  • Groups are made in the macOS app; the TUI, Windows and Linux apps keep each profile's group as it is

Launching & switching

  • One-click launch — double-click a profile or use its row action, or open launch options for per-launch overrides (memory, project folder, force a new window)
  • Drag & drop — drop any folder onto a Cursor or Claude Code profile to open it there
  • Global Quick Switch — press ⌥Space from any app for the Spotlight-style palette; ⌘K focuses search, ⌘N creates a profile
  • Settings (⌘, or the gear in the sidebar) — General, Apps, Groups, Second brain, Brains & agents, Routines, Endpoint and About & updates, which shows the version and build and checks GitHub for a new Prism (also Prism → Check for Updates…)
  • Menu bar dropdown — live per-profile stats, Focus/Start, Stop All, and one-click hub access without opening the main window
  • Restart & Update — Cursor, Claude Desktop and Grok Bot only install a downloaded update once every instance has quit, so open profiles block it. Prism spots the waiting update, and one click quits those profiles, lets the installer run, and reopens the same profiles afterwards
  • Independent instances — profiles start through Launch Services like a Dock launch, so they never depend on Prism: quitting one doesn't affect Prism, and quitting Prism doesn't affect them

Honest live telemetry

  • Live resident memory per running profile (summed RSS), against its --max-memory limit for Cursor, plus real total RAM for your Mac
  • Real on-screen window counts per profile — counted, never guessed
  • Real system CPU % in the status bar
  • Running detection with graceful quit (SIGTERM)

Tell profiles apart at a glance

  • Distinct title bar color per Cursor profile — merged into each profile's User/settings.json (workbench.colorCustomizations + window.titleBarStyle: "custom"), visible in the window, Cmd+Tab, and Mission Control. Your own settings are preserved; only the title bar keys are touched
  • Pin, search, sort (name / recently used / size)
  • Safe delete — profiles go to the Trash, never rm -rf
  • App auto-detection for Cursor, Claude Code, Claude Desktop and Grok Bot via Launch Services + well-known paths, with a custom-path override per app in Settings
  • Light & dark mode that follow the system

Quick start

Install — prebuilt, from the latest release:

brew install --cask moderniselife/prism/prism   # macOS 14+

Or download Prism.app.zip (macOS), Prism.exe (Windows 10/11, no installer) or prism-linux.tar.gz (Linux: tar -xzf prism-linux.tar.gz && python3 linux/prism.py). Prism isn't notarised yet, so a downloaded .app needs right-click → Open once; the Homebrew cask clears that for you.

Build from source

macOS — requires macOS 14+ and the Xcode Command Line Tools (no full Xcode):

./build.sh
open "build/Prism.app"

The build compiles the Swift sources, generates Prism.icns from assets/logo.png, assembles and ad-hoc signs the bundle. Optionally move it to /Applications:

cp -R "build/Prism.app" /Applications/

Windows — requires the .NET 8 SDK:

dotnet build windows/CursorProfiles.csproj -c Release

See windows/README.md — including how to pin per-profile taskbar shortcuts with their own icons.

Linux — requires GTK 4.10+, libadwaita 1.2+, and PyGObject (see linux/README.md for distro packages):

python3 linux/prism.py

Every pull request to main rebuilds all three platforms automatically — see .github/workflows/pr.yml.

Terminal (TUI)

prism-tui is Prism for the terminal — same profiles, no app. List, filter, launch, stop, create and delete profiles with live RSS and system stats. See tui/README.md for keys.

brew install --cask moderniselife/prism/prism-tui   # macOS
npm i -g prism-tui                                  # anywhere with Node 18+
pipx install prism-tui                              # anywhere with Python 3.9+

Or grab a static binary from GitHub releases — no runtime needed anywhere. From source: go run ./tui (Go 1.23+).

First run opens unsigned on macOS Gatekeeper the same way as the .app below: right-click → Open once. The Homebrew cask clears quarantine automatically.

How it works

~/.cursor_profiles/          # Cursor editor profiles
  .profiles.json        # names, colors, launch defaults (shared across OSes)
  Work/                 # a full Cursor user-data-dir
  Personal/             # another one — fully independent
~/.claude_code_profiles/     # Claude Code profiles (each dir = a CLAUDE_CONFIG_DIR)
~/.claude_desktop_profiles/  # Claude Desktop profiles (--user-data-dir)
~/.grokbot_profiles/         # Grok Bot profiles (SAND_USER_DATA_DIR; agents in <profile>/sand-data)

Launching a Cursor profile runs Cursor with --user-data-dir <profile> --max-memory <limit>, so isolation is enforced by Cursor itself rather than by anything Prism fakes. The built-in profile launches with no --user-data-dir at all — byte-for-byte identical to opening Cursor normally. Claude Code profiles set CLAUDE_CONFIG_DIR (the documented multi-account switch — separate login, settings, history per profile). Claude Desktop profiles launch with --user-data-dir=<profile> too, so each has its own login and several run side by side. On Windows this needs the standalone installer build of Claude Desktop (the Microsoft Store build drops launch flags) — Prism prompts you with the download link. Verified on Windows; macOS and Linux are untested.

Grok Bot profiles launch with SAND_USER_DATA_DIR=<profile> — the app's own isolation switch, which moves both its Electron data and its agent data root (~/.grokbot → <profile>/sand-data) and gives each profile its own single-instance lock. Prism adds a matching --user-data-dir=<profile> only so it can recognise the profile in the process list (environment variables aren't visible there). The built-in profile launches with neither. Overflow carry-over copies the data root only, skipping identity and runtime files and stripping account-scoped keys from settings.json; Electron's userData is never copied because it holds the Keychain-encrypted tokens and machine id. Every Prism app supports Grok Bot.

Layout

Sources/CursorProfiles/
  CursorProfilesApp.swift   # App entry, hidden title bar, menu-bar extra, ⌥Space hotkey
  ContentView.swift         # Main hub: sidebar, grouped list, banners
  ProfileRow.swift          # List row, live status, launch options, drag & drop
  ProfileInspector.swift    # Detail panel for the selected profile
  HubComponents.swift       # App glyphs, shared profile actions and menus
  ProfileEditorSheet.swift  # Create/edit sheet
  SpotlightCommandBar.swift # ⌥Space quick-switch palette
  SettingsWindow.swift      # Settings window: General, Apps, Groups, About & updates
  ProfileGroupsUI.swift     # Groups: sidebar, menus, pickers; window drag regions
  ProfileStore.swift        # Metadata, CRUD, live RSS/CPU/window polling
  SystemStats.swift         # Real CPU/RAM/window measurement + global hotkey helpers
  CursorLauncher.swift      # Find/launch/quit Cursor processes
  ClaudeLauncher.swift      # Find/launch Claude Code (CLAUDE_CONFIG_DIR) & Desktop (--user-data-dir)
  GrokLauncher.swift        # Find/launch/detect Grok Bot (SAND_USER_DATA_DIR)
  CarryOver.swift           # Fresh vs overflow accounts: what each app may copy
  BrainiumBridge.swift      # Second brain: find node + Brainium, run its CLI
  ProfileStore+Brain.swift  # Second brain actions (wire, capture, summarizer)
  SecondBrainSettingsView.swift # Settings → Second brain tab
  BrainsSettings.swift      # Settings → Brains & agents and Routines; brain picker
  Gateway*.swift            # Endpoint: config, Keychain, HTTP server, routing, API translation
  GatewayController.swift   # Endpoint state for the UI (server, identities, request log)
  EndpointSettingsView.swift # Settings → Endpoint, identity/rule editors, sidebar card
  TitleBarColorizer.swift   # Merges per-profile title bar colors into User/settings.json
  PrismTheme.swift          # Adaptive light/dark palette, one accent, button styles
  MeshBackgroundView.swift  # Ambient background
  Models.swift              # Profile model, palette, formatting helpers
assets/
  logo.png                  # Source of truth for the logo + macOS app icon
tui/
  main.go, store.go,        # TUI: entry, profiles/persistence/launch/detect
  stats.go, colorize.go, ui.go
  grokbot.go, carryover.go  # Grok Bot support, overflow carry-over rules (+ tests)
  brainium.go               # Second brain wiring (+ integration test with the real CLI)
  endpoint/                 # Endpoint engine for Windows/Linux/terminal (+ tests)
  cmd/prism-endpoint/       # The prism-endpoint helper
  endpointview.go           # TUI Endpoint screen (E)
npm/prism-tui/              # npm wrapper (downloads the release binary)
pypi/prism-tui/             # PyPI wrapper (platform wheels bundle it)
packaging/homebrew-cask/    # Prism.app cask template for the tap

Releasing

git checkout main && git pull
git tag v1.5.1 && git push origin v1.5.1

That's all: the tag sets the version everywhere (the Mac app, the Windows exe, Linux, the TUI and the packages), so there's nothing to bump by hand.

Push a tag like v1.2.3 and .github/workflows/release.yml builds and uploads everything to the GitHub release: the TUI binaries and checksums, the prism-endpoint helper, Prism.app.zip, Prism.exe and prism-linux.tar.gz. The same run publishes the npm package and the PyPI wheels with trusted publishing (GitHub's OIDC token, so no registry tokens are stored anywhere).

The Homebrew tap, moderniselife/homebrew-prism, updates itself: its sync workflow reads the latest release every hour and renders the casks from packaging/homebrew-cask.

To republish the packages for a release that already exists, run the Release workflow by hand (Actions → Release → Run workflow) with that tag.

Winget is wired up but off: it needs a WINGET_TOKEN secret (classic PAT, public_repo), a fork of microsoft/winget-pkgs under moderniselife, and a first version submitted by hand (komac update ModerniseLife.PrismTUI).

FAQ

Why is there no "pin to Dock with a custom icon" feature?

An earlier build generated a wrapper .app per profile with its own icon. It was removed for two reasons:

  1. It didn't work while running. macOS shows the Dock icon of whatever bundle is actually running — since the wrapper just launches Cursor's real binary, open windows always showed Cursor's stock icon.
  2. It multiplied permission prompts. Each wrapper is a distinct app identity, and macOS ties Microphone/Camera/folder consent to whichever bundle launched Cursor — so every wrapper re-triggered Cursor's entire permission set as a brand-new app.

Title bar coloring replaces it: it only edits a JSON settings file — no new app identity, no signing, no permission implications. (Windows instead offers per-profile taskbar shortcuts, which are just .lnk pointers to the same Cursor.exe, so they dodge the identity problem.)

Does Prism spy on my code or phone home?

No. Everything is local: it reads ps output, the on-screen window list, and files in its profile folders (~/.cursor_profiles, ~/.claude_code_profiles, ~/.claude_desktop_profiles, ~/.grokbot_profiles) and each app's own data. There is no network code, no analytics, no daemon.

CPU shows "—" sometimes?

System CPU % is computed from kernel deltas, which need two samples — the first poll after launch has nothing to diff against, so it shows a dash until the second one lands (~15s).

About

Run every AI app and account side by side: separate profiles for Cursor, Claude Code, Claude Desktop and Grok Bot, plus one local OpenAI- and Anthropic-compatible endpoint that switches between your accounts. macOS, Windows, Linux and terminal.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages