Skip to content

Desktop App

Portuni.app is the Tauri-built macOS desktop client. It’s the daily-driver way to use Portuni: install one DMG and you get the UI, the MCP server, and the integration glue in a single application.

A native macOS window (1600×1000 by default, opens maximized) with:

  • Graph view — Cytoscape-rendered interactive node graph using the fcose force-directed layout. Pan, zoom, click a node to focus.
  • Detail pane — the right column shows the focused node’s full detail: owner, responsibilities, data sources, tools, events timeline, files. Same payload portuni_get_node returns over MCP, rendered as a panel rather than JSON. The Files tab remembers which folders you collapsed per node, on this device. If the node has no local mirror on this device yet, the header shows a “Vytvořit pracovní složku” button that creates it directly — no need to open a terminal first.
  • Workspace view — a node browser with type / status filters, sidebar navigation, and a status footer.
  • Task chat (Práce) — a node’s action bar leads with “Nový úkol”: pick a runner and, when more than one is registered, a provider instance, and the task runs as a chat in Práce’s centre column instead of a raw terminal — see Working in the app. The dropdown next to it still offers the two terminal-launch paths below, reachable during this transition phase.
  • Multi-session terminal tabs — built-in xterm-based terminals attached to the focused node’s local mirror via PTY, reached from the “Nový úkol” button’s dropdown (“Otevřít terminál v Portuni”) rather than as the primary action. Run claude, codex, or any shell command in-context without leaving the app. Scroll the scrollback with the wheel/trackpad or Shift+PageUp/PageDown, and jump to the bottom with Cmd+↓. That dropdown still offers whichever legacy spawn profiles were created before the runner batch (env vars injected at launch, e.g. CLAUDE_CONFIG_DIR), but that registry has no editor left in Settings — see the Runnery note below.
  • Actors page — browse and manage actors and assignments.
  • Settings page — workspaces (create, enable, open a window for one, pick each one’s data mode), per-workspace Turso credentials and workspace root, a Runnery section (replaces Profily, #344: detected runner adapters with their install/login status, and provider instances — env vars, typically CLAUDE_CONFIG_DIR, with a default assignable per organization — edited through the sidecar’s GET/POST/PATCH/DELETE /runners/instances REST API instead of the desktop’s own config.json; see Runners), an Account section (Google sign-in and device tokens for central mode), a Synchronizace section (informational — Drive sync is configured once on the central server via a Service Account, see Setting Up Remotes; a local workspace shows a “no remote” note instead), and an MCP Server section with one-click install buttons for Claude Code, Codex, and Mistral Vibe. The old Profily editor and the “Příkaz agenta” panel are gone from Settings (no meaning without a terminal, and no editor for the object anymore) — the underlying legacy spawn-profile registry and localStorage command template are untouched until the terminal itself is removed in a later step.
  • Create-node modal, date picker, and other interactive controls for editing the graph directly from the UI.

The app bundles the Portuni MCP server as an embedded binary (binaries/portuni-sidecar) and spawns it on launch. You do not need to:

  • Clone the GitHub repo.
  • Install Node.js or Varlock.
  • Run npm start in a tmux session.

Each enabled workspace runs its own sidecar on a fixed loopback port, allocated from 47011 up (the first workspace gets 47011). Any MCP client — Claude Code, Codex CLI, Gemini CLI, Mistral Vibe — can point at http://localhost:<port>/mcp the same way it would at a standalone server. The sidecar’s bearer token is persisted per workspace in the macOS Keychain (it survives restarts and can be rotated from Settings); the easiest way to wire up an external client is the one-click install buttons in Settings → MCP Server, which register the right URL and token for each workspace. Terminals spawned inside the app get every workspace’s token injected as PORTUNI_MCP_TOKEN_<workspace-id> (plus PORTUNI_MCP_TOKEN as an alias for the active workspace); shells outside the app need the token exported manually.

The app manages one or more workspaces — think of each as an independent Portuni: its own database, its own workspace root for mirrors, its own sidecar port, and its own Keychain-held credentials. All enabled workspaces run concurrently, each in its own window: the switcher in the sidebar (and the workspace list in Settings) opens or focuses a workspace’s window rather than swapping the content of the current one, so several workspaces are usable side by side. Each workspace also picks its data mode: local (its own Turso/SQLite database) or central (your organization’s server — see Data Modes), so a personal graph and a company graph can live side by side in one app.

  1. Open the GitHub releases page.
  2. Download the DMG matching your CPU:
    • Portuni_<version>_aarch64.dmg — Apple Silicon (M1/M2/M3/M4)
    • Intel Macs are no longer targeted; use the CLI install below if you’re on Intel.
  3. Open the DMG and drag Portuni.app to /Applications/.
  4. Launch it.

Release DMGs are Developer ID signed and notarized, so the app opens without Gatekeeper warnings. If you built the app yourself without signing secrets, you’ll see the “unidentified developer” dialog — right-click → Open to bypass.

A fresh install creates your first workspace and walks you through its setup. What you’re asked depends on the workspace’s data mode:

  • Local mode — paste your TURSO_URL and TURSO_AUTH_TOKEN, or skip to use a local SQLite database, and pick the root directory where mirror folders will live (e.g. ~/Workspaces/portuni; the equivalent of PORTUNI_WORKSPACE_ROOT in the CLI install). Credentials go to the macOS Keychain — you never edit .env.local for the desktop install.
  • Central mode — sign in with your Google account instead; no database credentials needed. See Data Modes.

After that, you land in the Workspace view. Create your first organization node, then add projects / processes / areas / principles under it. (Upgrading from an older single-workspace install? The app migrates your existing configuration into the first workspace automatically.)

Starting with 0.8.0, the app checks for updates itself — no more manual DMG downloads for every release.

  • Check cadence. The app checks the latest GitHub release 10 s after the backend is ready, then every 6 h while running, plus on demand from Settings. Checks only run in a release build — cargo tauri dev and the web app opened in a browser never check, and Settings explains updates are desktop-only there.
  • Footer button. When a newer version is published, the status footer shows ↑ X.Y.Z on the right. Clicking it opens Settings → Obecné.
  • Settings → Obecné → „Aktualizace”. Shows the current version and, once a check has run, whether it’s up to date or a newer version is available. „Zkontrolovat nyní” checks on demand. „Stáhnout a nainstalovat” downloads and installs the update, with a progress bar; „Co je nového” links to the GitHub release page. A download or signature-verification failure leaves the running app untouched and shows the error inline — retry by clicking the button again.
  • Restart behaviour. Installing an update replaces Portuni.app on disk, but the running process keeps executing the old version until you click „Restartovat” (footer or Settings). „Restartovat” runs the same guards as ⌘Q — it warns about a dirty editor or unsynced files before proceeding — then stops all sidecars and relaunches the app, which now runs the new version. If you quit without restarting, the next launch runs the new version regardless.
  • Versions before 0.8.0 have no updater: download the DMG from GitHub releases and drag-replace Portuni.app in /Applications/ one last time to get onto 0.8.0 or later. From then on, updates happen in-app. Your settings, database (local SQLite or Turso), and mirror folders are unaffected either way.

Connecting external MCP clients to the app’s sidecar

Section titled “Connecting external MCP clients to the app’s sidecar”

The desktop app and an external MCP client (Claude Code, Codex CLI, Gemini CLI, Mistral Vibe) can share the same backend:

  1. The easiest way: use the one-click install buttons in Settings → MCP Server, which register each workspace’s URL and token for you.
  2. Wiring by hand instead? Point the external client at the workspace’s sidecar, http://localhost:<port>/mcp (ports start at 47011; shown in Settings), with the workspace’s token as a bearer header.
  3. Reads and writes from the external client land in the same graph as the app — keep the app open or the sidecar will exit with it.

For the per-client configuration details see Claude Code, Codex CLI, Gemini CLI, Mistral Vibe.

Stick with the standalone CLI server (covered in Setup) when:

  • You’re contributing to Portuni — the CLI dev loop is faster than rebuilding the .app on every change.
  • You’re on Linux or Windows. Native bundles for those platforms aren’t on the near roadmap.
  • You’re deploying Portuni to a shared server, not a personal machine — see Team Setup.

Running multiple graphs side by side used to be a CLI-only affair; today it’s a desktop feature — create another workspace instead.