You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: 'Add account' button does nothing when default runtime is a remote server #20009
Linux (local: Debian notebook; remote host: Ubuntu VPS, Orca Remote Server via Tailscale)
Orca version
1.4.199 on both ends (local app and orca serve --port 6768 on the server)
Details
Short summary:
With the default runtime set to a saved remote server, the "Agregar cuenta / Add account" button on the Claude and Codex account screens is not clickable — clicking it does nothing. No login flow starts.
What happened?
Set the default runtime to a saved remote Linux server ("Fortis Soluções").
Open the accounts screen. It correctly shows the remote scope: "Mostrando las cuentas administradas por Fortis Soluções".
The Claude section shows "Predeterminado del sistema / Activo" (works); the Codex section shows "Necesita iniciar sesión" (expected, no login yet).
Click "Agregar cuenta" (both sections). Nothing happens — no dialog, no browser flow, no error message.
Evidence it is UI-side, not backend:
On the server, orca account add --agent codex --json works: it prints the device-code flow (https://auth.openai.com/codex/device + one-time code) and claude/codex CLIs are installed (Claude Code 2.1.268, codex-cli 0.153.4).
On the server, orca account add --json (Claude) works: it prints the OAuth authorize URL and waits for the pasted code.
The server daemon log shows zero account-related entries around the clicks, so the click never reaches the runtime.
Expected:
Clicking the button should start the same login flow the CLI runs (device code for Codex, OAuth URL for Claude), or at least show an error.
Anything else:
Remote server runs orca serve --port 6768 --pairing-address <tailscale-ip> as a systemd unit, 1.4.199, runtime healthy/connected.
Workaround in use: run orca account add [--agent codex] in a server terminal and complete auth in the local browser.
We hit what looks like the same underlying bug, but manifesting slightly differently — worth noting as it broadens the scope of this issue beyond just the "Add account" button.
Setup: WSL2 (Ubuntu 26.04, mirrored networking mode) running orca serve as a systemd service, paired from a Windows 11 Orca client over Tailscale — same architecture as the original report (including hitting the same default port 6768 conflict, in our case caused by Windows' iphlpsvc holding that port under mirrored networking; we fixed that separately with --port ).
Symptom: Unlike the original report (where the Claude section showed as active and only "Add account" was inert), in our case the entire Claude accounts section renders empty in the client when viewing the remote environment — no accounts listed at all, even though:
orca account list on the server correctly reports both managed accounts (orca account list → 2 Claude accounts)
The server's journalctl output, daemon.log, and main.trace.ndjson show zero account-related entries when opening the Accounts panel or clicking reconnect in the client — matching your observation that "clicks never reach the runtime"
Live TCP connectivity between client and server was independently confirmed (Test-NetConnection over the Tailscale hostname succeeds)
We initially suspected a version skew (server was on 1.4.203, client auto-updated to 1.4.204) and upgraded the server to match — no change in behavior, and the capabilities reported by orca status --json were identical before/after (accounts.import-host-credentials.v1, accounts.codex-reset-credit.v1 — nothing resembling an accounts-list capability either way)
This suggests the account-related RPC channel just isn't reaching the runtime at all when the target is a remote/paired server, regardless of whether the failure shows up as an inert button or an empty list.
Workaround: same as yours — manage/use accounts via CLI/terminal directly on the host (orca account list/add, or invoking claude with a distinct CLAUDE_CONFIG_DIR per account) rather than through the client's account UI. Fully functional, just bypasses the broken remote UI path entirely.
@shaggydo0@LucasOliveira-dev2026 Thanks for the additional reproduction details! PR #20043 adds clear guidance and disables the inert account buttons in remote runtime scope to address this confusion. It has already been approved by pullfrog and is awaiting maintainer merge.
Adding to this: the tooltip in #20043 explains why the button is disabled, but the underlying gap remains. A web client (or desktop app) paired to a headless Orca server cannot add a Claude account without opening a terminal on that server and running orca account add.
What I checked (Orca 1.4.197, app.asar read-only, nothing signed in or changed; line numbers are in the minified bundles):
Settings-CUICBFux.js:1:66113: the Add Account button is disabled whenever the account scope is a remote environment.
main/index.js:2848:29441: accounts.addClaudeFromConfigDir (and addCodexFromHome) throws "Adding Claude accounts is only available on the Orca host runtime" when the caller is a remote client.
cli/handlers/account.js:44-50, 143-147, 214: orca account add runs claude auth login --claudeai attached to the terminal with a temporary CLAUDE_CONFIG_DIR, so the OAuth URL is printed and the code can be pasted back. After success it calls accounts.addClaudeFromConfigDir over the local socket and removes the temp dir. It also rejects --environment / --pairing-code, so it only works from a terminal on the server itself.
So the host-only guard exists because the login needs a process and a temp directory on the runtime machine. That is a reason to run the process on the server, not a reason the client cannot drive it.
Proposal: a device/paste-code flow in the client, which is what the CLI already does in a terminal:
Client calls a new RPC, e.g. accounts.beginClaudeLogin. The server creates the temp config dir and spawns claude auth login --claudeai, and returns a login id plus the authorize URL printed by the CLI.
Client opens the URL in the user's own browser and shows a field for the code.
Client calls accounts.completeClaudeLogin { loginId, code }. The server writes the code to the CLI's stdin, and on success runs the existing addClaudeFromConfigDir and cleans up. A cancel call and a timeout drop the child process and the temp dir.
Codex already has a device-code flow (orca account add --agent codex prints a URL and one-time code), so step 3 is just "wait for the child to exit" there.
Constraints I would keep: the pending login is bound to the paired client that started it, the code and tokens never go through logs, and the call stays refused for clients that are not paired.
This depends on the runtime having its account services wired. On headless orcad builds from 1.4.225 accounts.* currently fails with "Account services are not configured on this runtime" (#28962, #30160), so that needs to work first.
Happy to test a build against a headless server in a remote dev container.
#31461 fixes this. With the default runtime (or the Settings host picker) set to a remote server, Add Account for Claude and Codex now runs the login on that server, and you finish it in this device's browser:
Codex: the server runs codex login --device-auth. The pane shows the OpenAI device page and the one-time code.
Claude: the server runs claude auth login --claudeai. The pane shows the sign-in link and a box for the code the page shows after you sign in. The code is sent to the server, which finishes the login.
The credentials stay on the server. The client only opens the page and passes the code back. Each sign-in belongs to the device that started it, and Cancel stops the login on the server.
What to expect once it ships:
Both the app and the server need the new version. A newer client paired to an older server shows "update Orca on that server, or run orca account add there".
Windows servers aren't supported yet. Use orca account add in a terminal on the server for now.
Re-authenticating an existing account from a remote client is still a follow-up.
About the empty Claude list on a WSL orca serve (@shaggydo0): I couldn't reproduce it on current main. Headless orca serve used to start without any account services (#28962 / #30160), so accounts.* returned nothing. #29209 fixed that. If you still see an empty list on a current build, please post the version and what orca account list prints on the server.
Activity
refactor(settings): extract accessible remote action wrapper and tigh…
refactor(settings): route remote pointer events and streamline trigge…
shaggydo0 commentedon Sep 17, 2026
We hit what looks like the same underlying bug, but manifesting slightly differently — worth noting as it broadens the scope of this issue beyond just the "Add account" button.
Setup: WSL2 (Ubuntu 26.04, mirrored networking mode) running orca serve as a systemd service, paired from a Windows 11 Orca client over Tailscale — same architecture as the original report (including hitting the same default port 6768 conflict, in our case caused by Windows' iphlpsvc holding that port under mirrored networking; we fixed that separately with --port ).
Symptom: Unlike the original report (where the Claude section showed as active and only "Add account" was inert), in our case the entire Claude accounts section renders empty in the client when viewing the remote environment — no accounts listed at all, even though:
This suggests the account-related RPC channel just isn't reaching the runtime at all when the target is a remote/paired server, regardless of whether the failure shows up as an inert button or an empty list.
Workaround: same as yours — manage/use accounts via CLI/terminal directly on the host (orca account list/add, or invoking claude with a distinct CLAUDE_CONFIG_DIR per account) rather than through the client's account UI. Fully functional, just bypasses the broken remote UI path entirely.
denis-sj commentedon Sep 17, 2026
@shaggydo0 @LucasOliveira-dev2026 Thanks for the additional reproduction details! PR #20043 adds clear guidance and disables the inert account buttons in remote runtime scope to address this confusion. It has already been approved by pullfrog and is awaiting maintainer merge.
tobolik commentedon Oct 19, 2026
Adding to this: the tooltip in #20043 explains why the button is disabled, but the underlying gap remains. A web client (or desktop app) paired to a headless Orca server cannot add a Claude account without opening a terminal on that server and running
orca account add.What I checked (Orca 1.4.197,
app.asarread-only, nothing signed in or changed; line numbers are in the minified bundles):Settings-CUICBFux.js:1:66113: the Add Account button isdisabledwhenever the account scope is a remote environment.main/index.js:2848:29441:accounts.addClaudeFromConfigDir(andaddCodexFromHome) throws "Adding Claude accounts is only available on the Orca host runtime" when the caller is a remote client.cli/handlers/account.js:44-50, 143-147, 214:orca account addrunsclaude auth login --claudeaiattached to the terminal with a temporaryCLAUDE_CONFIG_DIR, so the OAuth URL is printed and the code can be pasted back. After success it callsaccounts.addClaudeFromConfigDirover the local socket and removes the temp dir. It also rejects--environment/--pairing-code, so it only works from a terminal on the server itself.So the host-only guard exists because the login needs a process and a temp directory on the runtime machine. That is a reason to run the process on the server, not a reason the client cannot drive it.
Proposal: a device/paste-code flow in the client, which is what the CLI already does in a terminal:
accounts.beginClaudeLogin. The server creates the temp config dir and spawnsclaude auth login --claudeai, and returns a login id plus the authorize URL printed by the CLI.accounts.completeClaudeLogin { loginId, code }. The server writes the code to the CLI's stdin, and on success runs the existingaddClaudeFromConfigDirand cleans up. A cancel call and a timeout drop the child process and the temp dir.Codex already has a device-code flow (
orca account add --agent codexprints a URL and one-time code), so step 3 is just "wait for the child to exit" there.Constraints I would keep: the pending login is bound to the paired client that started it, the code and tokens never go through logs, and the call stays refused for clients that are not paired.
This depends on the runtime having its account services wired. On headless
orcadbuilds from 1.4.225accounts.*currently fails with "Account services are not configured on this runtime" (#28962, #30160), so that needs to work first.Happy to test a build against a headless server in a remote dev container.
nwparker commentedon Oct 21, 2026
#31461 fixes this. With the default runtime (or the Settings host picker) set to a remote server, Add Account for Claude and Codex now runs the login on that server, and you finish it in this device's browser:
codex login --device-auth. The pane shows the OpenAI device page and the one-time code.claude auth login --claudeai. The pane shows the sign-in link and a box for the code the page shows after you sign in. The code is sent to the server, which finishes the login.The credentials stay on the server. The client only opens the page and passes the code back. Each sign-in belongs to the device that started it, and Cancel stops the login on the server.
What to expect once it ships:
orca account addthere".orca account addin a terminal on the server for now.About the empty Claude list on a WSL
orca serve(@shaggydo0): I couldn't reproduce it on current main. Headlessorca serveused to start without any account services (#28962 / #30160), soaccounts.*returned nothing. #29209 fixed that. If you still see an empty list on a current build, please post the version and whatorca account listprints on the server.Thanks @LucasOliveira-dev2026 for the clear report, @shaggydo0 and @tobolik for the diagnostics and the device/paste-code design, and @denis-sj for #20043.
feat(accounts): add Claude and Codex accounts on a remote server from…