Horizon — Your Work, One Canvas

Release CI License Platform

Horizon is a GPU-accelerated terminal board that puts all your sessions
on an infinite canvas. Workspaces group related panels. Presets launch them.
The command palette jumps you there. Close the app — the board is still there tomorrow.

Horizon demo — panning across AI Agents, Dev, and Monitoring workspaces

The model · Five minutes · Highlights · Install · Shortcuts · Config · Device Sync · Browse · VNC · Browser reference

--- ## Why Horizon? Tabbed terminals hide your work. Tiled terminals box you in. **Horizon gives you a canvas** — an infinite 2D surface where every terminal, agent, browser, and VNC desktop lives as a panel you can place, resize, and group. Think of it as a whiteboard for live sessions, with a structured workflow on top: color-coded workspaces, preset panels, a command palette, and fit-to-workspace whenever you want a clean overview. --- ## The model Horizon has five nouns. Everything else is a shortcut, a preset, or a panel kind. | Noun | What it is | How you use it | |:-----|:-----------|:---------------| | **Canvas** | The infinite 2D surface | Drag empty canvas or swipe with two fingers to pan. Pinch or Ctrl+scroll to zoom. Minimap to jump. | | **Workspace** | A color-coded cluster with a shared working directory | Ctrl+double-click the canvas and pick a preset, or click **New** in the sidebar. Arrange with **Default** (free), **Rows**, **Cols**, or **Grid**. Detach it to its own window. | | **Panel** | One live surface inside a workspace | Shell, SSH, coding agent, browser, command, or VNC device viewer. | | **Preset** | A named template for a new panel | Command palette, Ctrl+double-click, or **Ctrl+Shift+N** (first preset). | | **Session** | A saved board | Close Horizon and come back. **Ctrl+Shift+J** switches between saved boards. | A typical board looks like this: ``` Session └── Canvas ├── Workspace "Backend" cwd: ~/projects/api │ ├── Shell │ ├── Grok │ └── Browser → http://127.0.0.1:3000 └── Workspace "Frontend" cwd: ~/projects/web ├── Shell └── Claude ``` Workspaces stay visible. There are no hidden tabs. If something is off-screen, pan, zoom, fit, or search — do not hunt through a tab strip. ### Panel kinds | Kind | What you get | |:-----|:-------------| | `shell` | Login shell in the workspace directory | | `ssh` | Remote shell — usually from the Remote Hosts overlay | | `grok` · `claude` · `codex` · `open_code` · `agy` · `kilo_code` · `pi` | First-class coding-agent TUIs, with session resume where the CLI supports it | | `browser` | Live Chromium, Firefox, or Safari on the canvas, shared with agents | | `command` | Run an arbitrary command as a panel | | `device` | Native VNC view of a loopback desktop, or of a remote desktop reached through an SSH tunnel (the host's key must already be trusted, for example by opening it over SSH once). Read-only until you turn **Interact** on, which sends your mouse and keyboard to that desktop | --- ## Five minutes on the canvas You do not need a config file to start. Launch Horizon, then: 1. **Ctrl+double-click** empty canvas. A preset list appears. Pick **Shell** (or **Grok**, **Claude**, **Browser**, …). Shell and agent presets then ask for a working directory — that becomes the workspace cwd, and the first panel lands there. 2. Press **Ctrl+Shift+N** for another panel of the first preset (Shell by default), or **Ctrl+Shift+K** and type a preset alias (`gb`, `cc`, `web`). 3. On the workspace header, click **Rows**, **Cols**, or **Grid** when you want structure, or **Default** to drag freely. 4. Press **Ctrl+Shift+9** to fit the workspace into view. Press **Ctrl+Shift+W** to jump back to it without changing zoom. 5. Press **Ctrl+Shift+K** again. Type a workspace name, a panel title, `@` for panels only, or `>` for presets and actions. 6. Close Horizon. Reopen it tomorrow — the session, layout, canvas pan/zoom, and terminal history are still there. Once that loop is familiar, the rest is optional: **New** in the sidebar for an empty workspace, **Ctrl+Shift+H** for SSH/Tailscale hosts, the workspace **Detach** control for a dedicated window, a [Browser panel](#browse-any-website) for any site on this machine or on BrowserStack, a [Device panel](#watch-an-app-over-vnc) for each VNC desktop you want to watch, or Settings (**Ctrl+Shift+,**) to change settings in YAML form with the canvas still visible behind it. --- ## More to explore New here? [First steps](docs/first-steps.md) walks you from install to your first board, agent, and browser. - **Device Sync** — make one computer your home, pair your away devices with an eight-character pairing code, and work against the same live board over Tailscale. See [Device Sync](docs/guides/device-sync.md). - **Casting** — mirror a panel, a workspace, or the main window to a modern Apple TV. Linux only. See [Linux casting](docs/casting.md). ## Highlights
### Infinite Canvas Pan and zoom freely. Place panels anywhere. A **minimap** in the corner keeps you oriented — click or drag it to jump. ### Workspaces Group related panels into **color-coded workspaces**. Auto-arrange with rows, columns, or grid — or drag freely. **Detach** a workspace into its own OS window.
### Full Terminal Emulation 24-bit color, mouse reporting, scrollback, alt-screen, and Kitty keyboard protocol. Powered by the **Alacritty terminal engine**. Click a TUI (Grok, vim, less, …) and the click goes to the app; **Shift+click** still selects text. ### Command Palette **Ctrl+Shift+K** searches workspaces, panels, presets, and actions. Prefix `>` for presets and actions, `@` for panels only. Selecting a panel pans the canvas to it.
### AI Agent Panels First-class **Grok**, **Claude Code**, **Codex**, **OpenCode**, **Agy**, **KiloCode**, and **Pi** integration. Session persistence and resume work where the CLI supports it. Title bars show a **working** indicator and, when a session is bound, its id. ### Live Browser Open any site in Chromium, Firefox, or Safari on this machine, or on a BrowserStack browser or phone you name in config. On this machine you and an agent share the page: navigate, inspect, click, fill, capture network traffic, and hand control back and forth. A BrowserStack panel shows the live page and takes the same navigate, click, and fill actions.
### Remote Hosts **Ctrl+Shift+H** discovers hosts from SSH config and Tailscale. Search, filter, and connect. Type **user@filter** to override the SSH user. The **in** picker chooses the workspace that receives the session. It defaults to `remote_hosts.default_workspace` (**Remote Sessions**, created as a grid on first use); pick any other workspace for one session (**Alt+↑/↓** cycles it from the keyboard), or **Set default** (**Alt+D**) to make it the new default in this Horizon's settings store. Set default waits while the Settings editor has unsaved edits, so the two never overwrite each other. Right-click a host for **Open over SSH** and **Save SSH shortcut**. A saved shortcut is an ordinary preset (`SSH: `, with the `user@` override applied) saved to this Horizon's settings store, so the command palette and the preset picker can add that host to any workspace later. ### Smart Detection **Click** an OSC 8 hyperlink to open it. **Ctrl+click** a URL or file path under the cursor. Horizon sees what the terminal prints and makes it interactive.
### Live Settings Editor **Ctrl+Shift+,** opens the config as a side panel with YAML highlighting and live preview. Toggle **light / dark / auto** themes; changes apply to the canvas behind the editor. ### Session Persistence Close Horizon, come back tomorrow. Sessions, panel layouts, canvas pan/zoom, and terminal history restore as you left them. **Ctrl+Shift+J** switches boards. An opt-in setting can line attached workspaces into a horizontal row in sidebar order after restore.
### Audited Browser Automation Agents discover one MCP browser contract automatically. Every action is correlated in a redacted audit trail. The `horizon-browser` CLI runs prompt jobs and repeatable JSON plans.
--- ## Install ### Download (fastest) Grab the latest release from [**Releases**](https://github.com/peters/horizon/releases/latest) — no dependencies needed. | Platform | Download | | |:---------|:---------|:-| | **Linux** x64 | `horizon-linux-x64.tar.gz` | Extract and run | | **macOS** arm64 | `horizon-osx-arm64.tar.gz` | Extract and run | | **macOS** x64 | `horizon-osx-x64.tar.gz` | Extract and run | To update a downloaded copy, download the new release and replace the executable after you close Horizon. For package-manager installs, use the package manager's upgrade command. Horizon has no in-app updater. The latest release (v0.2.7, August 2026) predates browser panels, Device panels, Device Sync, and casting. Until the next release, [build from source](#build-from-source) to get them. ### What works where Horizon runs on Linux and macOS, and some features are Linux-only today: | | Linux | macOS | |:--|:--|:--| | Board, shell, browser and Device (VNC) panels | ✓ | ✓ | | Coding-agent panels | ✓ | ✓ | | Device Sync (`home`, `away device`, and `horizon home`) | ✓ | ✓ | | Safari browser panels | — | ✓ | | Apple TV casting | ✓ | — | The full list, with the reason for each gap, is in [Platform support](docs/platform-support.md). ### Homebrew Stable releases are available through the `peters/horizon` tap on macOS and Linux x64: ```bash brew install peters/horizon/horizon ``` If you prefer to add the tap explicitly first: ```bash brew tap peters/horizon brew install horizon ``` To update or remove it later: ```bash brew upgrade horizon brew uninstall horizon brew untap peters/horizon ``` ### Build from source ```bash git clone https://github.com/peters/horizon.git cd horizon git lfs install git lfs pull ./horizon ``` > Requires **Git LFS** for bundled assets and **Rust 1.95+**. AV1 recording builds on x86_64 also need **NASM 2.15+** on `PATH`; ARM64 uses the platform C compiler's assembler. Linux needs system headers for GPU rendering — see [AGENTS.md](AGENTS.md#prerequisites) for installation commands. The build checks required embedded fonts and stops if one is missing or still a Git LFS pointer. Run `git lfs install` and `git lfs pull` from the repository root, then rebuild. If a font is still missing, restore it from a complete checkout with LFS assets; source archives must also contain the hydrated fonts. --- ## Keyboard and mouse Most app shortcuts use **Ctrl+Shift** so they do not steal shell chords (Ctrl+C, Ctrl+K, Ctrl+B, …) or OS bindings. Canvas zoom keeps **Ctrl/Cmd+0**, **Ctrl/Cmd+Plus**, and **Ctrl/Cmd+Minus**. Bindings live in the `shortcuts:` block and in Settings. Duplicate or overlapping bindings are rejected, including near-conflicts such as `Ctrl+B` and `Ctrl+Shift+B`. | Shortcut | What it does | |:---------|:-------------| | **Ctrl+Shift+K** | Command palette — jump to a workspace, panel, preset, or action | | **Ctrl+Shift+N** | New panel from the first preset | | **Ctrl+Shift+W** | Focus the active workspace at the current zoom | | **Ctrl+Shift+9** | Fit the active workspace into view | | **Ctrl+Shift+H** | Open Remote Hosts overlay | | **Ctrl+Shift+J** | Open the sessions picker | | **Ctrl+Shift+B** | Toggle sidebar | | **Ctrl+Shift+U** | Toggle HUD | | **Ctrl+Shift+M** | Toggle minimap | | **Ctrl+Shift+A** | Align visible attached workspaces into a horizontal row in sidebar order | | **Ctrl+Shift+,** | Open settings editor | | **Ctrl+Shift+F** | Focus the terminal search bar | | **Ctrl+0** | Reset canvas zoom to 100% | | **Ctrl+Plus** | Zoom canvas in | | **Ctrl+Minus** | Zoom canvas out | | **F11** | Fullscreen the active panel | | **Escape** | Exit active panel fullscreen | | **Ctrl+Shift+F11** | Toggle window fullscreen | | **Ctrl+Shift+C** | Copy the current terminal selection | | **Ctrl+Shift+V** | Paste into the focused terminal | | **Ctrl+Shift+R** | Reconnect the focused disconnected SSH panel | | Interaction | What it does | |:------------|:-------------| | **Middle-mouse drag** | Pan the canvas | | **Left-click drag on empty canvas** | Pan; the gesture stays with the canvas when crossing panels | | **Space + Left-click drag** | Pan the canvas | | **Two-finger swipe on empty canvas** | Pan; swipes starting inside panels scroll their contents | | **Pinch** | Zoom around the cursor (Linux/X11 requires XInput 2.4 gesture support) | | **Minimap click-and-drag** | Jump to that area of the canvas | | **Ctrl+Scroll** | Zoom around the cursor | | **Click** a panel header | Focus the panel while keeping the current pan and zoom | | **Double-click** a panel header | Rename the panel in place | | **Click** in a mouse-reporting TUI | Deliver the click to the app (Grok, vim, less, …) | | **Shift+Click/drag** | Select terminal text while the app has mouse reporting | | **Middle-click** a terminal (Linux) | Paste the primary selection | | **Click** an OSC 8 hyperlink | Open the link in the default handler | | **Ctrl+Click** | Open URL, file path, or hyperlink under cursor | | **Ctrl+double-click** canvas | Open the preset picker (creates a workspace and its first panel) | | **Ctrl+double-click** inside a workspace | Open the preset picker to add a panel | On macOS, substitute Cmd for Ctrl. Copy and paste use the standard Cmd+C / Cmd+V bindings. The SSH reconnect shortcut is contextual and is disabled if another global shortcut overlaps with Ctrl+Shift+R. Programs in a terminal can copy with the OSC 52 escape sequence: Horizon writes it to the system clipboard (`c`) or, on Linux, the primary selection (`p`). On Linux, selecting text fills the primary selection. Under Wayland it reaches other apps through the compositor's data-control protocol (for example wlroots and KDE) or through XWayland; where neither exists, use Ctrl+Shift+C and Ctrl+Shift+V. --- ## Configuration Horizon keeps its settings in one SQLite file, `~/.horizon/settings.sqlite` (in [`HORIZON_HOME`](#state-folder) when you set it). The settings editor reads and writes that store; you never edit a file by hand to change a setting. To read the settings as YAML, or to keep a copy in version control, run `horizon --export-config []`. Horizon does not read that copy again: change a setting in the Settings window or in the store. You can seed workspaces, panel presets, feature flags, and shortcuts, and the YAML below is the form that the editor shows and that an export writes. Workspace templates use `terminals:` (each entry needs a `name`). Unknown keys are ignored, so a `panels:` block will not create anything. ```yaml appearance: theme: auto # auto, light, or dark shortcuts: command_palette: Ctrl+Shift+K new_terminal: Ctrl+Shift+N focus_active_workspace: Ctrl+Shift+W fit_active_workspace: Ctrl+Shift+9 open_remote_hosts: Ctrl+Shift+H toggle_sessions: Ctrl+Shift+J toggle_sidebar: Ctrl+Shift+B toggle_hud: Ctrl+Shift+U toggle_minimap: Ctrl+Shift+M align_workspaces_horizontally: Ctrl+Shift+A toggle_settings: Ctrl+Shift+Comma zoom_reset: Ctrl+0 zoom_in: Ctrl+Plus zoom_out: Ctrl+Minus fullscreen_panel: F11 exit_fullscreen_panel: Escape fullscreen_window: Ctrl+Shift+F11 search: Ctrl+Shift+F remote_hosts: default_workspace: Remote Sessions # receives SSH sessions from the Remote Hosts overlay workspaces: - name: Backend cwd: ~/projects/api terminals: - name: Shell kind: shell - name: Grok kind: grok - name: App kind: browser command: http://127.0.0.1:3000 - name: Frontend cwd: ~/projects/web terminals: - name: Shell kind: shell - name: Claude kind: claude presets: - name: Shell alias: sh kind: shell - name: Grok alias: gb kind: grok - name: Claude Code alias: cc kind: claude args: - --permission-mode - auto - name: Codex alias: cx kind: codex args: - --no-alt-screen - name: OpenCode alias: oc kind: open_code - name: Agy alias: ag kind: agy - name: KiloCode alias: kc kind: kilo_code - name: Pi alias: pi kind: pi - name: Browser alias: web kind: browser features: # Optional: align attached workspaces whenever a session loads, including startup organize_workspaces_on_session_load: true # Optional: collapse inactive workspaces in the sidebar sidebar_accordion: true ``` `features.organize_workspaces_on_session_load` defaults to `false`. When enabled, Horizon performs the same horizontal alignment as **Ctrl+Shift+A** (sidebar order, left to right) whenever a restored session is ready, both at startup and after an in-app session switch; detached workspaces are unchanged. A short **Preparing session view…** overlay blocks root-window input while restored window geometry settles. The default-disabled path does not show this overlay. Changing the setting in the live editor takes effect when a session is next loaded. `features.sidebar_accordion` defaults to `false`. When enabled, only the active workspace lists panels in the sidebar; other workspaces collapse to a name, accent, and panel count. Enable it from Settings → General → Features, or by setting the flag in the YAML of the settings editor. Like other General feature toggles, the Settings editor applies the change immediately as a live preview; save to persist it, or close/revert without saving to restore the previous value. Use key names like `Plus`, `Minus`, `Comma`, `Escape`, and `F11` in YAML instead of punctuation-only shortcut components such as `Ctrl++`. Fresh configs already ship the shell, agent, and browser presets above. Existing configs gain missing defaults through migration (Grok, Pi, Browser, and the others) without overwriting presets you renamed. ### Remote provider profiles Remote provider settings are empty by default. Local Docker profiles require an explicit local Unix socket; Horizon does not infer a Docker context, environment variable or default endpoint. Profile names must be unique and match the saved environment's profile exactly, including letter case. ```yaml remote: local_docker: - name: development docker_host: unix:///path/to/docker.sock ``` Replace the example socket with your explicitly selected local daemon. The new block rejects unknown fields and remote TCP/SSH endpoints. Keep credentials out of this configuration. Loading or saving profiles does not connect to a provider, create a workspace, attach to a task, or stop/delete remote work. Empty settings are omitted when saving, so existing files need no migration for this feature. Provider-backed overview controls and workspace setup remain separate integration work. ### Launch flags Use `./horizon --profile-ui` from a source checkout, or `horizon --profile-ui` with an installed binary, to record timing data for one launch. Run `python3 scripts/ui-stalls.py --follow` from the checkout to see slow operations while you work. The capture contains operation names, counts and durations. It stays in `diagnostics/ui` under your Horizon home. See the [desktop profiling procedure](docs/testing/procedures/desktop-latency-profile.md). | Flag | What it does | |:-----|:-------------| | `--config ` / `-c ` | Use an explicit settings location: the store is `settings.sqlite` in that folder, or `.settings.sqlite` for another name | | `--export-config []` | Write the settings as YAML and exit; the default path is the configuration path of this run | | `--ephemeral` | Do not persist this run | | `--new-session` | Start a new saved session from the current config | | `--blank` | Start with an empty board (combine with `--ephemeral` for a throwaway canvas) | | `--export-remote-profile ` | Write the shareable remote browser profile (providers, targets, credential references; no credential values or bindings) and exit | | `--import-remote-profile ` | Merge a portable remote browser profile into the settings store and exit (one profile command per launch); credentials are entered afterwards in Settings > Remote browsers, or bound in YAML to environment variable names for unattended launches | Machine-local `credential_bindings` name a store, never a secret. `store: session` and `store: os_keychain` are entered in Settings > Remote browsers. `store: environment` with `slot: REMOTE_BROWSER_USERNAME` (and a matching access-key variable) copies those values from the launching process at startup so a container or CI job can authenticate without a desktop keychain. Agent and terminal children inherit launch environment variables normally. Each reference selects its own variable, so multiple providers and credentials work together. See the [configuration examples](docs/architecture/remote-browser-sessions.md#unattended-containers-and-ci). The Horizon process, the container spec, and the parent's environment listing still show launch-time secrets; do not put values in the image, the profile, or argv. ```bash docker run --rm \ -e REMOTE_BROWSER_USERNAME \ -e REMOTE_BROWSER_ACCESS_KEY \ example/browser-test-runner ``` ### State folder Horizon keeps its settings store, sessions, browser profiles and runtime files in `~/.horizon`. Set `HORIZON_HOME` to an absolute path to keep them in another folder instead, for example to run a second Horizon that cannot touch your usual one: ```bash HORIZON_HOME=/path/to/private-horizon horizon ``` - If the folder is missing, Horizon creates it, readable only by you (mode `700` on Linux and macOS). Horizon refuses to start when the path is relative, is not a folder or is a symbolic link. On Linux and macOS it also refuses a folder that belongs to another user or whose permission bits let other users in. Horizon does not examine ACLs, so on macOS an ACL can still give other users access. - With `HORIZON_HOME` set, Horizon uses the settings of that folder only (`settings.sqlite`), never `~/.horizon`, `$XDG_CONFIG_HOME/horizon` or the working directory. `--config` still wins. - `HOME` stays the same, so terminals in this Horizon keep your normal home directory. They inherit `HORIZON_HOME`, which is how agents in them find this Horizon's browser panels. - Horizon still adds its agent skills to the usual folders of Claude Code, Codex and the other agents in your home directory. To stop that, also set `HORIZON_AGENT_INTEGRATIONS=off`: Horizon then installs no agent skills, plugins or MCP registrations there, and on Linux no desktop entry. It does not remove what an earlier Horizon installed there, so agents can still find those skills. It also skips the Horizon plugin and the work-resume hooks in the state folder, so Claude Code panels in this Horizon have no Horizon browser tools and no work resume. Unset or empty means `on`. With any other value than `on` or `off`, the app does not start and exits with code 2. - An empty value is the same as an unset one. --- ## Device Sync Keep your terminals, coding agents, and machines running on one **home** — a desktop, a Mac, or a cloud node with no display — and connect from any **away device** on the same Tailscale tailnet. The sync hub runs inside the home's Horizon process (`~/.horizon/sync-home.sqlite`), listening only on `127.0.0.1` and the computer's tailnet address. No separate server, URL, manual token, or device ID is required. Set up Device Sync in three steps on two computers with a display: 1. On the computer that runs the work, click **Sync** in the toolbar to open **Device Sync** and select **Make this the home**. Pick **Full access** or **View & approve** to get an eight-character single-use **pairing code** (or click **Copy link** for a `horizon://pair?...` **pairing link**). 2. On your away device, click **Sync** → **Connect to a home**, pick the home discovered on Tailscale, enter the pairing code (or paste the pairing link, which fills both fields), and click **Pair & Connect**. 3. Work on the home board. Mirror panels scale the full source terminal cleanly without resizing running agents unless you choose **Fit to this device**, and the toolbar **** / **Local** switcher jumps between your home board and your local workspaces. On a machine without a display, start and manage the same home from a terminal: ```bash horizon home horizon home code [--view-and-approve] horizon home devices horizon home revoke travel-laptop horizon home stop ``` An away device can keep multiple paired homes and switch between them one board at a time (Horizon never merges boards; use Git to move work between computers). Horizon also bundles the `horizon-sync` and `horizon-machines` skills for Claude Code, Codex, Agy, and Grok, so you can ask an agent to rent a Linux VM (Hetzner, AWS, GCP, or Azure), join it to Tailscale, start `horizon home`, verify reachability, and hand you the eight-character pairing code. See the full [Device Sync guide](docs/guides/device-sync.md), or use **Advanced setup** with the [self-hosted sync hub guide](docs/guides/sync-hub.md) when connecting through a standalone `horizon-hub` server or SSH tunnel without a tailnet. --- ## Browse any website A Browser panel is a real browser drawn on the canvas. Type an address and the page renders there. You and an agent share that same panel. Two places can run the page: a browser on this computer, or a browser or physical device on [BrowserStack](https://www.browserstack.com/). ### On this computer 1. **Ctrl+double-click** empty canvas and pick **Browser**, or press **Ctrl+Shift+K** and type `web`. 2. Click the address bar, type any site (`https://example.com`, a docs page, or `http://127.0.0.1:3000`), and press Enter. 3. Use the backend menu on that bar to run the page in **Chromium**, **Firefox**, or, on macOS, **Safari**. On Linux, Horizon searches `PATH` for Chrome, Chromium, Edge, and Brave. macOS searches `PATH` and the usual browser `.app` bundles under `/Applications`, including Brave. Firefox also needs `geckodriver` on `PATH`, or `browser.geckodriver_command` pointing at it. Safari is disabled in that menu on Linux. On macOS, enable `safaridriver` with Apple's one-time steps; Horizon never runs `safaridriver --enable` for you. 4. Back, forward, and reload sit on the same bar. **Record** writes a private WebM of the live page. 5. Local Chromium and Firefox panels offer **25%–400%** content zoom in the toolbar and via **Ctrl**/**Cmd**+wheel or trackpad pinch over the page body, sharing the same page zoom as `browser_zoom` (`25%–500%`) rather than stacking. Zoom scales the page's emulated CSS viewport within texture and frame-pixel limits instead of changing a global browser zoom setting. To pin the viewport dimensions, use `browser_resize` (which combines with active page zoom until reset); while pinned (or on Safari, a remote device, or a remote browser host), the toolbar selector shows disabled **Fit**, and `browser_resize` with `reset: true` resumes automatic panel sizing. On the board, a native pinch over fixed or pinned browser content zooms the canvas while modifier-wheel input stays with the panel; in fullscreen, a native pinch leaves the hidden board zoom unchanged. Chromium and Firefox start headless and paint into the panel. A panel you create keeps its own profile under `~/.horizon/browser-profiles`. Duplicating a Chromium or Firefox panel shares that profile, including cookies. On Linux, Snap Chromium (`/snap/bin/chromium`) and Snap Firefox (`/snap/bin/firefox`, including Ubuntu's `/usr/bin/firefox` wrapper) use `~/Horizon/browser-profiles` instead, so a Snap-confined browser can read the profile. A workspace can open straight onto a URL: ```yaml workspaces: - name: Web terminals: - name: Docs kind: browser command: https://example.com ``` Some sites refuse a headless browser. For those, run headed Chromium with its native window minimized behind the panel: ```yaml browser: backend: chromium headless: false hide_native_window: true ``` That needs a working desktop. The native window can appear briefly at startup and stays in the taskbar or Dock. The embedded page keeps running while the Horizon panel is unfocused. ### On BrowserStack The same kind of panel can show a page running on BrowserStack: a desktop browser, or a physical phone. Horizon allocates the session, draws the live page, and releases the device when the panel closes. Name the account and the targets in Settings → **Remote browsers**, or in the `browser` section of the settings YAML that the editor shows. The settings store credential references, never the access key. The example below binds both references to the OS credential store. Open **Settings** (**Ctrl+Shift+,**) → **Remote browsers** and enter the BrowserStack username and access key there. To keep the values only until Horizon exits, bind both references with `store: session` and omit `slot`. Settings offers **This session only** when a reference has no binding yet. The same tab shows that account's running, allowed, and queued sessions. ```yaml browser: remote: providers: browserstack: adapter: browserstack endpoint: https://hub-cloud.browserstack.com/wd/hub authentication: kind: basic username_ref: browserstack-user password_ref: browserstack-key credential_bindings: browserstack-user: { store: os_keychain, slot: remote-browser/browserstack/username } browserstack-key: { store: os_keychain, slot: remote-browser/browserstack/access-key } targets: windows_chrome: provider: browserstack browser_name: Chrome platform_name: Windows device: { kind: any, os_version: "11" } capability_extensions: bstack:options: os: Windows ios_phone: provider: browserstack browser_name: safari platform_name: iOS device: { kind: physical, model: iPhone 16, os_version: "18" } ``` `device.kind: any` skips the physical-or-emulated check. A model or OS version on the target is still checked against BrowserStack's session record. `windows_chrome` is a desktop browser because it names Chrome on Windows and leaves the phone model empty. `device.kind: physical` requires a real device, and Horizon keeps that panel only when the session record confirms it. Match `browser_name`, `platform_name`, `os_version`, and `model` to a combination your BrowserStack account offers. Two targets on this provider share the account. Each OS-store binding on one endpoint needs its own slot; Horizon rejects a repeated slot at that endpoint. A second provider on the same endpoint shares a username or access key when both bindings use `store: session` and the same reference name. Each distinct OS-store slot holds its own secret. An agent panel in the workspace opens the target. Ask it for the page. It calls `browser_create` with `target` set to `windows_chrome` or `ios_phone` and `url` set to the address. Codex, Claude, and default Grok panels already have that tool. A shell panel does not: it has no browser identity, so `browser_create` from a shell cannot use this board's providers. The same call can also be run as a checked plan with the standalone [`peters/browserctl`](https://github.com/peters/browserctl) CLI: ```bash browserctl run open-site.json ``` ```json { "version": 1, "steps": [ { "id": "open", "tool": "browser_create", "arguments": { "target": "ios_phone", "url": "https://example.com", "visible": true } } ] } ``` The panel's top row names the BrowserStack browser and device once the session is ready. The address bar loads another page in that same session. Closing the panel releases the device. When a release stays unresolved, **Settings → Remote browsers** lists it under **Remote allocations**, and **Reconcile** checks that session with BrowserStack. Local Chromium and Firefox panels also capture network traffic, record a WebM, and let you take the page until you press **Done — hand back to agent**. A BrowserStack panel shows the live page and is driven with the same navigate, click, and fill actions. The full provider schema, including a generic WebDriver grid and environment variables for CI, is in [remote browser sessions](docs/architecture/remote-browser-sessions.md). --- ## Browser Panels Browser panels render a real browser on the canvas through the browser engine in [`peters/browserctl`](https://github.com/peters/browserctl) (`browserctl-core`, `browserctl-protocol`, `browserctl-control`, and `browserctl-mcp`). [Browse any website](#browse-any-website) is the short path. This section is the engine, the profile, and the agent contract. Add a panel from the **Browser** (`web`) preset, or declare it in a workspace — `command` is the initial URL: ```yaml workspaces: - name: Web terminals: - name: App kind: browser command: http://127.0.0.1:3000 ``` The panel is a shared human-and-agent session. It can: - navigate, reload, traverse history, wait for page state, and query or snapshot semantic DOM nodes; - click (including trusted double-click), fill, scroll, evaluate bounded JavaScript, and keep the URL while the page scrolls; - start visible or hidden, switch visibility without losing the session, and pause automation so you can steer before handing the same panel back; - capture bounded HTTP metadata and response bodies plus high-rate WebSocket frames on Chromium and Firefox; - reconnect an MCP client without restarting the browser, and keep a redacted action audit after the panel closes; - record the live page to a private WebM (Record in the chrome, or `browser_video` start/pause/resume/stop). Safari shares the semantic action and audit surface but currently reports network capture as unsupported. | Backend | Automation and pixels | Prerequisites | Important limits | |:--|:--|:--|:--| | **Chromium** | CDP with change-driven JPEG screencast frames | Chrome, Chromium, Edge, or Brave | Push frames; separate persistent profile per panel | | **Firefox** | WebDriver BiDi plus adaptive lossless WebDriver screenshots | Firefox and `geckodriver` | Screenshots, not a live BiDi video stream; capture decays to zero on a static page and is capped at 30 fps while active | | **Safari** | Classic WebDriver screenshots, with BiDi events when `webSocketUrl` is negotiated | macOS, Safari, and an explicitly enabled `safaridriver` | One automation session at a time; isolated Safari automation state | Horizon scans the usual executable names and platform install locations. It never runs `safaridriver --enable`; follow Apple's one-time enablement flow yourself. Safari remains disabled in the picker on Linux. ```yaml browser: backend: chromium # chromium, firefox, or safari command: /path/to/chrome # Chromium-family binary; omit to discover firefox_command: /path/to/firefox geckodriver_command: /path/to/geckodriver safaridriver_command: /usr/bin/safaridriver extra_args: [] # managed browser switches are rejected quality: 60 # Chromium JPEG screencast quality, 1–100 every_nth_frame: 1 # Chromium screencast sampling profile_root: ~/.horizon/browser-profiles video: quality: 90 # WebM visual quality, 1–100 compression_level: 4 # 0 fastest/largest … 10 slowest/smallest fps: 10 # encoded frames per second, 1–30 max_file_bytes: 536870912 # stop ingest at this WebM size ``` Recordings default to source-frame dimensions with codec-block alignment, bounded by a 3840-pixel longest side and 8,294,400 pixels (4K) to limit encoder memory and work. Larger sources are downscaled proportionally. Set `browser.video.max_width` (320–1920) to cap the longest encoded side without upscaling. Omitted per-recording options keep the host settings, including any explicit cap. These encoding options do not change the page viewport. All executable fields are optional. Chromium and Firefox get separate directories under `profile_root`. Permanently closing the panel or deleting its saved session removes that panel's profile. Safari always uses Safari's isolated automation window and does not reuse your normal history, cookies, or preferences. Chromium and Firefox remain headless by default. To use a headed Chromium compositor with its native window minimized, explicitly configure: ```yaml browser: backend: chromium headless: false hide_native_window: true ``` This option needs a working desktop and window manager. The native window can appear briefly during startup and remains in the taskbar or Dock. Horizon keeps the embedded document active and focused so animations and timers continue, even when the Horizon panel is unfocused. Initial setup fails if focus emulation, window lookup, or confirmed minimization fails. `hide_native_window` defaults to `false` and is ignored for headless Chromium and other backends. It does not promise that websites cannot detect automation. ### Passkeys A headless browser has no authenticator of its own, so a passkey sign-in in a panel normally goes nowhere. Point Horizon at an authenticator command and local Chromium and Firefox panels hand each passkey request to it: ```yaml browser: webauthn_command: ["/path/to/authenticator", "--profile", "work"] ``` Horizon, not the page, decides which site is asking. It refuses cross-origin iframes, plain `http` sites other than `http://localhost`, and relying party IDs that do not belong to the site. While the command waits for you (up to two minutes), the panel shows **passkey request waiting** and agents see `passkey_pending` in `browser_panel`. Leave the key out and nothing changes. Safari, BrowserStack and standalone `horizon-browser` CLI sessions keep the browser's own behavior. The command's JSON contract and the full set of rules are in [the WebAuthn bridge reference](docs/architecture/browser-webauthn-bridge.md). ### Agent steering, audit, and CLI Horizon-launched Codex, Claude, and default-command Grok agents receive the bundled `horizon-browser` MCP server automatically. Grok defaults to `--no-leader` so browser identity stays local to its panel (an explicit `--leader` remains an opt-out from this isolation); its existing login, home, session history, and permission settings are retained. Horizon adds an environment-based `horizon-browser` entry to Grok's config only when that name is unused, and preserves an existing custom entry or browser skill. Outside Horizon, that entry has no executable and cannot start a server; Grok may report it as an inactive configuration error. Custom-command Grok presets manage their own integration. Agents start with `browser_list` and use `browser_create` to open a visible browser in their own workspace when none exists. They reuse that panel for iframe, popup, dialog, and consent flows. A fresh user page action pauses the agent queue for five seconds; an explicit handoff keeps it paused until you select **Done — hand back to agent**. `browser_handoff` waits for that click before returning, so any MCP client — Codex, Claude, Grok, or `horizon-browser` CLI — resumes in the same turn. OpenCode, Agy, KiloCode, and Pi still need dedicated browser integration. Each must forward the calling panel and host identity, load the shared handoff instructions, and allow the full human wait without changing provider authentication or session history. MCP is the only agent-facing browser contract. Audit journals live under `~/.horizon/audit/browsers/` and redact credentials, query values, and typed text (stored as a character count). Horizon embeds `browserctl-mcp` alongside its native `device_panel` tool in `horizon --browser-mcp`. For scripts and headless standalone CLI usage (quoted goals, deterministic `run` plans, or a standalone stdio MCP server), install [`peters/browserctl`](https://github.com/peters/browserctl). --- ## Watch an app over VNC A Device panel (`kind: device`) connects to a loopback VNC server or to a remote desktop reached through an SSH tunnel (`ssh -W`), powered by `appctl-vnc` from [`peters/appctl`](https://github.com/peters/appctl). 1. Start a VNC server on `127.0.0.1:5900` (or `[::1]:5900`) that accepts shared connections without a VNC password. For a remote machine, press **Ctrl+Shift+H**, switch to **VNC**, and open the host — Horizon runs `ssh -W 127.0.0.1:` and requires the host key to already be trusted in `known_hosts`. 2. The picture starts read-only. Turn **Interact** on in the panel you want to drive, then click the image. Your mouse and keyboard go to that desktop until you click outside the image or turn **Interact** off. Agents leave **Interact** off. 3. Use the zoom selector on the panel for **Fit** or **25%–400%** magnification (or pinch / hold the zoom modifier and scroll over the image), and open **View controls** for a crop and local frame-rate and image-size limits. After Horizon restarts, a restored Device panel stays disconnected until you press **Reconnect**. 4. An agent in the workspace can open and inspect viewers with the `device_panel` MCP tool (`create`, `list`, `inspect`, `screenshot`, `video`, `visibility`, `reveal`, `reconnect`, `close`). Standalone desktop input and native app testing live in [`peters/appctl`](https://github.com/peters/appctl). ```yaml workspaces: - name: App under test terminals: - name: Desktop kind: device command: 127.0.0.1:5900 ``` --- ## Built With | | | |:--|:--| | [**Rust**](https://www.rust-lang.org) | Edition 2024, safe and fast | | [**eframe / egui**](https://github.com/emilk/egui) | Immediate-mode UI framework | | [**wgpu**](https://wgpu.rs) | GPU rendering — Vulkan, Metal, DX12, OpenGL | | [**alacritty_terminal**](https://github.com/alacritty/alacritty) | Battle-tested terminal emulation | | [**Catppuccin**](https://catppuccin.com) | Terminal palettes (Mocha dark / Latte light) on a warm editorial UI chrome | --- ## Contributing See [**AGENTS.md**](AGENTS.md) for development setup, architecture, coding standards, and CI requirements. Release instructions live in [**docs/release-flow.md**](docs/release-flow.md). Manual smoke-test plans live under [**docs/testing**](docs/testing). ```bash cargo fmt --all -- --check cargo test --workspace cargo clippy --all-targets --features trace-profiling -- -D warnings ``` ---

MIT License