Desktop Guide
The desktop app is an Electron shell around a local JVM host daemon and a React workbench. The workbench places chats alongside files, diffs, the terminal, and a browser. Once paired with Android, the desktop can also run tasks delegated from your phone.
What runs where
| Layer | Responsibility |
|---|---|
Electron shell (apps/desktop) | Window lifecycle, native menus and tray, sora:// deep links, IPC bridge, and the embedded browser host. |
Workbench (apps/web) | React UI: chats, bots, files, previews and diffs, terminal, git, browser panel, and management center. |
Host daemon (apps/host) | Kotlin/JVM sidecar managed by the app: session engine, tools, Memory v3, timers, Relay client, and a loopback HTTP/SSE API. |
The shell starts and stops the sidecar for you. If you run the UI separately, start the daemon first:
sora serve --port 18789
sora websora serve prints the loopback URL and keeps its access token under ~/.sora; sora web opens the workbench already authenticated.
Install
Download the package for your platform from GitHub Releases.
| Platform | Packages |
|---|---|
| Linux | AppImage, deb, rpm, or tar.gz (x86-64) |
| macOS | dmg or zip for Apple silicon (arm64) or Intel (x64) |
| Windows | *-setup.exe installer or *-portable.exe (x64) |
User data lives in ~/.sora and is shared by all bots and sessions. Maintainer secrets are read from ~/.config/sora/secrets.
Run from source
pnpm install
./gradlew :apps:host:installDist --no-daemon
pnpm --filter @sora/web build
pnpm dev:desktopThe workbench
The left sidebar holds:
- Bots — local assistant identities, each with avatar, instructions, workspace folder, tool policy, and memory scope.
- Other Devices — bots connected through a Relay, usable as remote assistants or Orch workers.
- Chats — sessions grouped by bot, with pin, archive, fork, rename, export, and delete.
- Features — skills, MCP connectors, and schedules.
- Settings — appearance, providers and models, remote pairing, archived chats, memory, schedules, skills, MCP, and diagnostics.
The right workbench is a set of panels:
| Panel | What it does |
|---|---|
| Files | Browse, search, upload, rename, and delete workspace files; insert paths into chat. |
| Preview | View or edit text, code, images, and PDFs with syntax highlighting and source/preview modes; quote a file into chat. |
| Terminal | A real shell in the workspace, with restart and clear controls. Remote bots report that local terminals are unavailable. |
| Git | Changes, branches and worktrees, and session checkpoints — stage, revert, review diffs, or restore files and chat state. |
| Browser | The built-in desktop browser described below. |
Tool calls from the agent stream into chat as live process cards, so you can follow commands, edits, and browser actions as they happen.
The built-in browser
Open the Browser panel to browse alongside the conversation — a local dev server, documentation, or any live page.
- Enter a URL or a search query in the address bar, with tabs, history, downloads, bookmarks, find-in-page, and zoom.
- Agent control — when Sora drives the page (
navigate,click,type,scroll,screenshot), a banner reads Sora is controlling this page. - Take over / Resume — click Take over to pause automation immediately and drive the page yourself; click Resume Sora to hand it back.
- Element capture — activate the element picker, click any part of the page, optionally add a comment, and send the element with a screenshot straight into a bot chat or an Orch worker.
- Permission modes — per-site rules support
allow,ask, anddeny. In Workspace Auto or Full Auto, routine browsing proceeds without repeated prompts while explicitdenysites stay blocked. - Quote page to chat sends the current page context into the conversation.
This makes the browser useful for scenarios like filling a repeatable form, checking a deployment you just built, or collecting visual references — with the agent and the person able to switch control at any moment.
Sessions and context
- Session logs on disk are the source of truth; lists, pins, archives, and unread counts are derived from them.
/compactcompresses long sessions; the context ring shows the token and cost breakdown per turn.- Checkpoints capture file and chat states, so you can fork a session or restore both files and conversation to an earlier point.
- Up to 20 files can be attached to a single message.
CLI
The same host daemon ships a command line:
| Command | Purpose |
|---|---|
sora init | Initialize ~/.sora, choose a default provider and model, store a key, optionally pair a Relay. |
sora serve | Run the background host daemon (Relay, timers, memory sync, loopback control API). |
sora web | Open the web workbench backed by the local daemon. |
sora status | Show daemon status or a local configuration summary. |
sora doctor [--json] | Run environment, credentials, memory, bot, Relay, and MCP diagnostics. |
sora bot add / list / rm / config | Manage bots. |
sora provider list / set-key / rm-key / default | Inspect providers, store keys, set defaults. |
sora session list / rename / delete / export | Manage conversations. |
sora relay pair / login / status / logout | Pair and manage Relay accounts. |
sora relay devices list / rename / revoke | Manage paired devices. |
sora mcp list / add / rm / test | Manage MCP connectors. |
sora memory status / sync | Inspect and synchronize Memory v3. |
sora service install / start / stop / status / logs | Install the daemon as a background service. |
Global options include --home (data directory), --model provider/model, --thinking off|low|medium|high|xhigh|max, --bot, -p/--print for one-shot prompts, -c to continue the latest session, and --super to target the Orch coordinator thread.
Pairing with a Relay
With a self-hosted Relay, desktop becomes one device in a mesh:
- Deploy a Relay — see Self-Hosting Relay.
- In the app, open the pairing screen and paste the pairing link; the CA fingerprint in the link is enforced.
- Paired devices appear under Other Devices; their bots can be used directly or assigned as Orch workers.
Presence is derived from live WebSocket connections. When the daemon is stopped, the device simply appears offline to its peers.
Schedules, skills, and connectors
- Schedules run prompts against a chat on a cadence: once, daily, weekdays, weekends, or weekly.
- Skills are packaged capability instructions — built in, imported, or provided by a plugin — that a bot can invoke with
/skill:<name>. - MCP servers add external tools through the Model Context Protocol; the diagnostics page can test each connection.
Troubleshooting
- Workbench cannot reach the local service — check with
sora statusthat the host daemon is running; if the access token was rotated, restart withsora serve --rotate-tokenand reopen the workbench. - A tool says no terminal for a remote bot — local shells only exist on the machine that hosts the bot.
- Browser actions are paused — check the take-over banner and the site's permission rule; a
denyrule blocks automation entirely. - Port already in use — pass
--port 0tosora serveto pick a free port.
