Skip to content

[Bug]: Multi-account switching + usage bars don't work on a headless orca serve runtime (VPS) #10922

Closed

Description

@benzhuk

Environment

  • Orca v1.4.158, headless orca serve on Ubuntu 24.04 (x86_64) VPS
  • Desktop (macOS) + mobile clients pair to the runtime over Tailscale
  • 4 Claude subscription accounts (Pro/Max/Team)

Summary

On a headless orca serve runtime, the multi-account features that work locally are both broken:

  1. Switching accounts has no effect on runtime sessions. Selecting a different account in Orca's native account panel/status-bar switcher does not change which account new Claude session tabs use — they stay pinned to one account. (Same behavior as [Bug]: Claude account switching does not work in Remote SSH projects #8795, but for orca serve, not just Remote SSH projects.)
  2. Usage bars never populate. The status-bar / Accounts-pane usage bars stay empty for the accounts on the runtime.

Steps to reproduce

  1. Run orca serve on a Linux VPS; pair a desktop + mobile client to it.
  2. Register/observe multiple Claude accounts.
  3. In Orca's account panel, select Account B; open a new Claude tab → it still runs as the previously-pinned account, not B.
  4. Repeat with any account — the selection never applies. Usage bars remain empty for all of them.

What I found (root cause, from inspecting the runtime)

  • Orca injects a per-session CLAUDE_CONFIG_DIR when it spawns Claude; on the headless runtime this stays pinned to one account regardless of the panel selection, so the switcher is a no-op for session tabs.
  • Managed-account credentials placed under ~/.config/orca/claude-accounts/<uuid>/auth/.credentials.json on Linux are not kept/trusted — managed-auth housekeeping removes manually-seeded credentials, so a "registered" account has no usable token.
  • claudeAccounts:add is registered only on ipcMain (in-process renderer↔main) — there is no CLI or remote-RPC path to add an account. The remote/mobile RPC surface (ACCOUNT_METHODS) exposes only list / selectClaude / remove / subscribe (no add/create), and the web client's add() is a no-op stub. So an account cannot be authenticated/registered on a headless box at all, and the GUI login flow can't run there or be triggered remotely.
  • As a result the account switcher lists accounts that can't be applied, and the usage poller (keyed to activeClaudeManagedAccountId) has no valid managed account to read → empty bars.

Workaround (only for hand-launched claude, not Orca's session tabs)

Swapping the default ~/.claude profile out-of-band (copying a per-account .credentials.json into ~/.claude) does correctly change which account a manually launched claude in a terminal uses — but Orca's own managed "Claude" tabs override CLAUDE_CONFIG_DIR, so this does not reach them. There is currently no working way to switch the account for Orca-managed sessions on a headless runtime.

Impact

Anyone running Orca on a VPS via orca serve with more than one Claude account cannot switch accounts or see usage from Orca's UI — the core multi-account workflow the desktop app supports locally is unavailable on the remote runtime.

Request

First-class multi-account support on headless/remote runtimes: a way to add/authenticate and manage Claude accounts via CLI or remote RPC on an orca serve box, and have the account switcher + usage bars apply to runtime sessions the same as local.

Related

Activity

  1. Boujji commented on Oct 15, 2026

    @Boujji

    Additional reproduction from Orca Web connected to a Linux server, accessed in Brave on Windows (2026-10-15).

    Claude and Codex are installed on the server and agent sessions run successfully. Settings reports the application version only as "web"; the exact server release was not captured.

    Observed usage problem

    1. Open Settings → Statistics and Usage.
    2. Click Enable Claude / Enable Codex, or select Claude and toggle Enable Claude usage analytics.
    3. Providers remain Off, the summary remains "Not scanned yet" with zero enabled providers, and no actionable error appears. Refreshing rate limits did not populate usage figures either.

    Expected: persist the setting and scan logs on the runtime host, or clearly mark these controls unsupported in Web instead of silently doing nothing.

    Related platform mismatch

    • Provider Accounts says it is showing Windows accounts while agent sessions execute on Linux.
    • Claude Agent Teams was launched using orca.cmd claude-teams on Linux and failed with orca.cmd: command not found. Overriding the command to orca-ide claude-teams allowed it to start.
    • The integrated feedback form prefilled OS: win32, describing the browser computer rather than the server.

    Investigation note — hypothesis, not a confirmed full trace: the served web bundle has a generic proxy fallback returning empty/undefined results for unimplemented API calls. This may explain the analytics controls. Please verify the usage API/RPC wiring and host-platform selection. Related tracking: #25727 and #15798.

    No private host addresses, credentials, repository contents, or session transcripts are included.

  2. tobolik commented on Oct 19, 2026

    @tobolik

    A data point on the "Provider Accounts says it is showing Windows accounts" part of this report. I traced it in Orca 1.4.197 (read-only look at the web bundle, no clicking):

    • The web client's default activeRuntimeEnvironmentId is null (web-DpDmUAlt.js:1:86512), kept only in localStorage key orca.web.settings.v1. With null the accounts pane takes the "local" branch (store-SIobwFJw.js:1:14663).
    • That branch labels the scope from the browser: navigator.userAgent.includes("Windows") ? "Windows" : "This device" (Settings-CUICBFux.js:1:56801). So the label describes the browser's machine, not the server.
    • In the same branch the web claudeAccounts / codexAccounts API is a stub (web-DpDmUAlt.js:1:73132, :1:158101): list and add return {accounts: [], activeAccountId: null}. Add Account therefore appears to work and ends in the toast "Claude account updated. System default -> System default" without doing anything.
    • Other web features (terminals, projects) use the paired server even when the preference is null, so only the accounts pane is inconsistent.

    Workaround that works in the code path I read: Settings > Remote Orca Servers > Advanced > Active Server, pick the paired server. The pane then reads "Showing accounts managed by " and lists the server's real accounts via accounts.subscribe. I did not click through this, it is from reading the code. After switching, the "Local desktop" choice is disabled for the web client, so there is no way back in the UI short of clearing the localStorage entry.

    Suggestion: in the web client, treat a paired server as the account scope when no explicit preference is set, or at least do not render the stub list and the success toast.

  3. AmoabaKelvin commented on Nov 17, 2026

    @AmoabaKelvin
    Collaborator

    This is fixed on main and shipped in v1.4.261: The account switcher follows the workspace's host (#27687), Add Account works on a paired server (#31461), and headless hosts refresh usage while a client is watching (#37633).

    Please update to the latest Orca and try again. If you still see it, comment here and we'll reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions