Galaxy Shell / docs
Docs / Getting started

Overview and installation

README.md · Edit on GitHub ↗

On this page

Galaxy Shell

Product website · Docs · Website maintenance and deployment

Galaxy Shell is the new project name (2026-11-05), formerly Agent Native OS. Repository: naaando/galaxy-shell. Read the product landing page (pt-BR) and the naming and compatibility decision. Existing technical identifiers, installation paths and profile directories remain unchanged.

A conversation-driven Linux desktop shell. A central chat talks to an agent through OpenCode. The agent can open and arrange real windows, reply with interactive HTML components and maintain the system itself. External applications stay responsible for their own content.

Status: experimental. The direct Smithay session is already in use, but sustained performance, physical keys and several flows still need validation on real hardware. There is no signed installer.

Architecture

Smithay (native/smithay)        compositing, focus, input, GPU effects
   └─ Electron (web-shell/desktop.cjs)   host with no Node in the renderer, sandboxed
        └─ Protected web host (vendor/interface/host)
             ├─ Trusted React UI in a ShadowRoot (vendor/interface/ui-src)
             └─ Generated HTML responses in opaque iframes
Node core (web-shell/core)      loopback HTTP, OpenCode, persistence, tools
  • Compositor: Smithay is the only compositor. River was removed; the data directory can still be named river-shell to preserve profiles.
  • UI: the whole visual interface (bars, panels, overview, custom window frames) is web. The compositor has no second native UI.
  • Trust boundaries: agent-generated HTML runs isolated, with no access to tools, message sending or the microphone. The message field and recovery (/recovery) belong to the protected host.
  • Customization: the profile customizes only style.css, with preview, journal and rollback (core/changes.js). Changes to HTML/React require editing the sources and rebuilding.
  • Self-maintenance: the authenticated agent gets system_context, execute_command and command_status to operate the checkout, the host and the installation with the user's privileges. See openspec/specs/self-maintenance/spec.md.

Repository layout

Path Contents
web-shell/core/ Node core: server, OpenCode runtime, persistence, tools
web-shell/desktop.cjs Electron host
vendor/interface/host/ protected web host (web-shell/host is a link)
vendor/interface/ui-src/ React UI sources (web-shell/ui-src is a link)
vendor/interface/ui/ compiled seed: index.html, style.css, app.js
native/smithay/ Rust compositor, effects and themes
scripts/ preparation, installation, session, supervisors and utilities
docs/ decisions, current contracts and historical evidence

Requirements

  • Linux with flock (util-linux).
  • Node.js 22.13+ and OpenCode 2 on PATH or in AGENT_NATIVE_OPENCODE_BIN (validated with Node 24.19.0 and OpenCode 2.1.4).
  • Rust 1.88+ and the Wayland/xkbcommon development libraries to build the compositor.

The installer includes the local Liquid LFM2.5-1.2B-Instruct CPU model, used by default for profiles without a saved model choice. Source-only checkouts without Liquid retain OpenCode's free native model (big-pickle). See local Liquid installation. The selector next to the message field offers other free models, or ChatGPT plan models after you log in through the UI. The agent and the helper use the same model. There is no API key and no paid fallback; provider quotas can block execution.

The assistant starts with desktop tools and loads specialized instructions and tools for the current task. See desktop task skills.

Quick start

In the browser (development):

cd web-shell
npm ci
npm run build
npm start

Open the Browser session URL that the terminal prints; it sets the cookie that unlocks the host pages. Electron does this on its own. Run a single core per data directory and do not expose the port to the network. AGENT_NATIVE_DATA_DIR isolates test data.

In Electron:

cd web-shell
npm run desktop

Install at login

At login, the session loads an active checkout from your home directory (suggested: ~/galaxy-shell). The installer also builds one read-only release of that commit for recovery, about 900 MB. See immutable base.

python3 scripts/prepare-project.py --root "$HOME/galaxy-shell"
scripts/install.sh --source-root "$HOME/galaxy-shell" \
  --profile "$HOME/.local/share/agent-native-os/river-shell"
  • The configuration lives in ~/.config/agent-native-os/project.json; sourceRoot is the canonical source.
  • The installer downloads the local voice engines (Whisper, Piper and Kokoro) and their Portuguese models automatically. Python 3.10+ with venv support and internet access are required during installation. Voice stays off until you click Voz.
  • The loader rebuilds changed sources at the next login. It does not run git pull automatically and does not replace processes that are already running.
  • Python supervisors recover the host/core and try the Smithay fallback. See automatic recovery.
  • To update the host/core in the running session without restarting the compositor, follow openspec/specs/project-loading/spec.md.

The default profile lives in ~/.local/share/agent-native-os/web-shell/, but existing installations can use river-shell. Find the effective profile through system_context or project.json.

Usage

A regular message talks to the model. /name searches the local application catalog without querying the model.

Action Behavior
/name up to eight suggestions; arrows, Enter or click open one; Escape clears
Super alone shows every window and the box to talk; again: back (Super mode)
Super+N new conversation
Alt+scroll on Canvas, next / previous window
Super+S / three-finger swipe up opens or closes the view of all workspaces
Super+← / Super+→ previous / next open workspace
Super+Shift+← / Super+Shift+→ moves the focused window to the monitor on that side
Super+left drag / Super+right drag moves / resizes the window; it then floats outside the layout
Super+Alt+←/→/↑/↓ moves the focus to the nearest window on that side of the grid
Super+Ctrl+←/→/↑/↓ moves the focused window by one cell, or swaps it with a smaller one
Super+Ctrl+Alt+→/↓ / ←/↑ grows / shrinks the focused window by one cell
Super+Shift+Space toggles floating for the focused window
Super+F / Super+G the focused window covers the whole grid, and back / fills the grid again
Super+T switches the workspace between the grid and the focus layout
Three-finger horizontal swipe left goes forward, right goes back
Super+1…9 / Super+0 workspace at position 1…9 / 10 in the bar
Typing in the palette expands into a sidebar: chat 30%, application 70%
Escape closes the overview; in the palette/sidebar, returns to immersive mode
Alt+Tab switches windows
Super+Enter / Super+Q opens a terminal / closes the focused window
Super+L locks the session; a web page asks for the password (details)
Super+Escape ends the session
Controls on the right of the bar volume, microphone, brightness, Wi-Fi, Bluetooth, battery and power

Window and workspace shortcuts require Smithay. The default layout is the cell grid (specification); tile is its old name, and the focus layout is still available.

Optional features

  • Portuguese voice (experimental): the installer includes local Whisper, Piper and Kokoro; choose Piper · Faber or Kokoro · Dora in Configurações > Voz (Piper is the default). Existing installations can run python3 scripts/setup-voice.py. Turn it on with Voz (Voice) next to the send button. Speech recognition and synthesis run locally; the selected model processes the recognized text.
  • Wallpaper colors: python3 scripts/setup-matugen.py, then ask for it in the conversation. See themes and the shared palette.
  • GPU effects and compositor themes: contract in openspec/specs/themes/spec.md and openspec/specs/visual-effects-3d-shaders/spec.md.
  • Web panels and quick settings: openspec/specs/web-panels/spec.md and openspec/specs/quick-settings/spec.md.
  • Memory across conversations: opencode-codex-memory, stored in memory/ in the profile. Ask "remember that..." or "check your memory".

Verification

python3 scripts/prepare-project.py --root "$PWD" --dependencies-only
cd web-shell
npm run format:check
npm run check     # syntax of every module, ESLint and the UI build
npm test
npm run test:supervisor

Compositor:

python3 scripts/prepare-project.py --root "$PWD" --cargo fmt --check
python3 scripts/prepare-project.py --root "$PWD" --cargo test --locked
python3 scripts/prepare-project.py --root "$PWD" --cargo clippy --locked --all-targets -- -D warnings

The tests isolate inherited AGENT_NATIVE_*, DISPLAY and WAYLAND_DISPLAY variables. For visual capture of the real desktop, see docs/capture-tty4.md.

License

Galaxy Shell is free software under the GNU General Public License, version 3 or (at your option) any later version (GPL-3.0-or-later). See LICENSE.

Copyright (C) 2026 Fernando da Silva Sousa.

Third-party parts keep their own licenses: the dependencies, the adapted Smithay code (native/smithay/LICENSES), the theme assets and the local Liquid model, under the LFM Open License (openspec/specs/local-liquid/spec.md).

Documentation

The documents in docs/ are written in English.

History: River, Rust/Iced prototype (removed; available in commit f615cab), compositor investigation and the Flutter WIP in commit 9f980f5 on the feat/poc-1 branch.