{
 "meta": {
  "lang": "en",
  "pages": 12,
  "version": "1.2.1",
  "site": "https://onionpod.xpulse.one"
 },
 "pages": [
  {
   "name": "index",
   "title": "Overview",
   "path": "/en/doc/",
   "toc": [
    {
     "level": 1,
     "text": "Overview",
     "anchor": "overview"
    },
    {
     "level": 2,
     "text": "Architecture: CLI · Starter · Box · Page",
     "anchor": "architecture-cli-starter-box-page"
    },
    {
     "level": 2,
     "text": "At a glance",
     "anchor": "at-a-glance"
    },
    {
     "level": 2,
     "text": "Pages",
     "anchor": "pages"
    },
    {
     "level": 2,
     "text": "For agents and scripts",
     "anchor": "for-agents-and-scripts"
    }
   ],
   "updated": "2026-10-06",
   "content": "# Overview\n\n**onionpod** is a sealed-off box for Tor Browser: its only way out is Tor. It sees neither your home network nor your\nfiles nor your screen, and before every opening a leak test checks 16 ways in which something could get past Tor.\nOnly when everything is sealed does the window open.\n\n> onionpod is an **independent project** and **not** affiliated with the Tor Project. `setup.sh` downloads Tor\n> Browser directly from [torproject.org](https://www.torproject.org/) and verifies its signature. Not released yet.\n\n## Architecture: CLI · Starter · Box · Page\n\nonionpod consists of four parts — the “onionpod family”. Whoever talks about the **CLI**, the **Starter**, the **Box**\nor the **Page** knows where to look:\n\n| | Part | What | Docs |\n|---|---|---|---|\n| ⌨️ | **CLI** | the `onionpod …` command for the terminal, from anywhere | [Terminal command](./cli.md) |\n| 🪟 | **Starter** | the window on double-click: passwords, progress, leak test, box window, 🧅 in the top bar | [Usage](./usage.md) |\n| 🧅 | **Box** | the box itself: Tor Browser, Session, vault “Transit” — everything over Tor only | [Architecture](./architecture.md), [Vault](./transit.md), [Session](./session.md) |\n| 🌐 | **Page** | the website [onionpod.xpulse.one](https://onionpod.xpulse.one) with these docs | — |\n\n## At a glance\n\n| | |\n|---|---|\n| Platform | Debian/Ubuntu (tested: Ubuntu 24.04, GNOME), x86_64 |\n| Technology | rootless Podman (own user `onionpod`), nftables, Tor, TigerVNC |\n| Usage | **Starter:** double-click → passwords → progress → box window · **CLI:** `onionpod open` … |\n| Languages | German, English (`--hl=de` / `--hl=en`) |\n| License | GPL-3.0 |\n\n## Pages\n\n- [Install](./install.md) — requirements, package or git, update, uninstall\n- [Usage](./usage.md) — Starter, box menu, clipboard, bookmarks, top bar icon\n- [Terminal command](./cli.md) — CLI: `open`, `lock`, `status`, `update`, `config` …\n- [Vault & downloads](./transit.md) — `~/Transit` encrypted out and in, `~/Downloads` stays in the box\n- [Session Messenger](./session.md) — built hardened, set an app password!\n- [Lock password](./lock.md) — lock instead of quit, set, change or forget the password\n- [Architecture](./architecture.md) — pod, firewall, Tor, display, where things live\n- [Leak test](./leak-test.md) — the 16 checks and what they mean\n- [setup.sh reference](./setup.md) — all commands and options\n- [Troubleshooting](./troubleshooting.md) — known problems and logs\n- [Limits & security](./limits.md) — what the box can do and what it cannot\n\n## For agents and scripts\n\nEvery page is also available as JSON (raw Markdown, table of contents, date) under `/doc/api/…`, the whole tree\nunder `/doc/api/`. A table of contents for language models is at `/llms.txt`.\n"
  },
  {
   "name": "install",
   "title": "Install",
   "path": "/en/doc/install/",
   "toc": [
    {
     "level": 1,
     "text": "Install",
     "anchor": "install"
    },
    {
     "level": 2,
     "text": "Requirements",
     "anchor": "requirements"
    },
    {
     "level": 2,
     "text": "Getting it",
     "anchor": "getting-it"
    },
    {
     "level": 2,
     "text": "What happens during installation",
     "anchor": "what-happens-during-installation"
    },
    {
     "level": 2,
     "text": "Update",
     "anchor": "update"
    },
    {
     "level": 2,
     "text": "Uninstall",
     "anchor": "uninstall"
    }
   ],
   "updated": "2026-10-05",
   "content": "# Install\n\n## Requirements\n\n- Debian/Ubuntu with `apt`, x86_64, kernel ≥ 5.11\n- ≥ 2 GB RAM (4 recommended), ≥ 4 GB free under `/var/lib` (8 recommended)\n- a desktop (tested: GNOME on Ubuntu 24.04)\n- sudo once during setup\n\n`bash setup.sh --check` checks all of this **without changing anything**.\n\n## Getting it\n\n> **Not released yet — there is nothing to download yet.** Source and packages will be published once the final\n> security review is done. Two ways are planned: a package with a checksum (just what's needed) and a git clone.\n> Deliberately **no** `curl … | bash`: with a security tool, look first, then run.\n\nOnce you have the source, in its folder:\n\n```bash\nbash setup.sh --check      # checks only, changes nothing\nbash setup.sh --install\n```\n\nonionpod is an **independent project** and not affiliated with the Tor Project. When building the box, `setup.sh`\ndownloads Tor Browser directly from [torproject.org](https://www.torproject.org/) and verifies its signature.\n\n## What happens during installation\n\n1. Check the environment, show missing packages and install them after asking (Podman, TigerVNC, …)\n2. **One** sudo prompt: create the box user `onionpod`, programs to `/opt/onionpod`, rules to `/etc`\n3. Build the box images — downloads Tor Browser and **verifies its signature** (a few minutes)\n4. Questions: set a lock password? Icon on the desktop?\n5. Trial run: start the box, leak test, stop the box\n\nA progress bar shows where things stand; `--verbose` shows everything in detail. Every run writes a log to\n`~/.local/state/onionpod/setup-<date>.log`.\n\n## Update\n\n```bash\nonionpod update             # since v1.0.0 — or: bash setup.sh --update\n```\n\n`setup.sh` detects by itself where it came from:\n\n- **git clone:** fetches new versions (tags), fast-forwards (`--ff-only`, never over your own changes)\n- **package:** asks `LATEST`, downloads the new package, checks SHA-256, paths and version, and installs it over the source\n\nIt also checks whether a newer Tor Browser exists. If everything is up to date: “No update needed” (`--force`\nreinstalls anyway).\n\n## Uninstall\n\n```bash\nonionpod uninstall            # asks whether the box data (bookmarks) should go too\nonionpod uninstall --dry-run  # only shows what would be removed\n```\n"
  },
  {
   "name": "usage",
   "title": "Usage — Starter & Box",
   "path": "/en/doc/usage/",
   "toc": [
    {
     "level": 1,
     "text": "Usage — Starter & Box",
     "anchor": "usage-starter-box"
    },
    {
     "level": 2,
     "text": "Starting",
     "anchor": "starting"
    },
    {
     "level": 2,
     "text": "Inside the box",
     "anchor": "inside-the-box"
    },
    {
     "level": 2,
     "text": "Clipboard",
     "anchor": "clipboard"
    },
    {
     "level": 2,
     "text": "What stays, what doesn't",
     "anchor": "what-stays-what-doesnt"
    },
    {
     "level": 2,
     "text": "Closing",
     "anchor": "closing"
    },
    {
     "level": 2,
     "text": "🧅 in the top bar",
     "anchor": "in-the-top-bar"
    }
   ],
   "updated": "2026-10-06",
   "content": "# Usage — Starter & Box\n\n## Starting\n\nDouble-click **“onionpod”** (desktop or app menu) or in a terminal:\n\n```bash\nonionpod open\n```\n\n**One** window appears for everything:\n\n1. if a lock password is set: password field (with 👁 to reveal it)\n2. progress with a spinner and expandable **Details** (black console): roll new user IDs → firewall →\n   Tor network → workspace → **Leak test 1/16 … 16/16**\n3. only when everything is sealed: the box window (TigerVNC)\n\nIf the box is already running (e.g. locked), you only get a fresh access — without another leak test.\n\n## Inside the box\n\n- **Start menu** at the bottom left (`🧅 ☰`): Tor Browser · 🌐 Language · 🔒 Lock onionpod · Quit onionpod\n- **Bar**: open windows, Tor status, clock `Box time: 12:49 UTC (host: 14:49)` — the box runs on UTC like\n  Tor Browser; the host time is shown next to it for orientation\n- **Switch the language** in the menu: immediate for the menu, bar and clock; Tor Browser picks it up on its next start\n  (or restart it right away if you like)\n- **Resize the window**: the box screen adapts. **F8** opens the viewer's menu.\n\n## Clipboard\n\nWorks in both directions — but only on a real copy (Ctrl+C), not just on selecting text.\n\n## What stays, what doesn't\n\n- **stays:** Tor Browser bookmarks and settings, the chosen language, **`~/Downloads`** (since v1.1.0) and the vault **`~/Transit`**\n- **starts fresh:** everything else (history, open pages after quitting)\n\n> Downloads stay inside the box. Only what you put into the vault `~/Transit` goes out — see [Vault & downloads](./transit.md).\n\n## Closing\n\n- **✕ on the window** without a lock password: box off (Tor and firewall too)\n- **✕ with a lock password:** question “Window closed — quit or lock onionpod?” with “🔒 Lock” / “Quit” — with no answer after 30 s it **quits** (safe default)\n- **“Quit onionpod”** in the box menu: clean shutdown\n\n## 🧅 in the top bar\n\nWhile the box is running, an icon shows its state:\n\n| State | Icon | Menu |\n|---|---|---|\n| open | 🧅 | “🧅 onionpod is running” · Quit |\n| locked | 🧅 with a padlock | “🔒 Locked — running in the background” · Open … · Quit |\n| off | — | — |\n\n“Quit” asks for confirmation (Cancel is preselected) and needs **no** lock password — quitting reveals nothing.\n"
  },
  {
   "name": "cli",
   "title": "Terminal command — CLI",
   "path": "/en/doc/cli/",
   "toc": [
    {
     "level": 1,
     "text": "Terminal command — CLI",
     "anchor": "terminal-command-cli"
    },
    {
     "level": 2,
     "text": "Settings: onionpod config",
     "anchor": "settings-onionpod-config"
    },
    {
     "level": 2,
     "text": "Where root is needed",
     "anchor": "where-root-is-needed"
    }
   ],
   "updated": "2026-10-06",
   "content": "# Terminal command — CLI\n\nSince **v1.0.0** there is a terminal command that works **from anywhere**. You don't need to know where the source\nor `setup.sh` lives. You only need `setup.sh` for the **first installation**.\n\n```bash\nonionpod open            # open or unlock the box (like a double-click)   — also: onionpod start\nonionpod lock            # close the window, the box keeps running (locked with a lock password)\nonionpod stop            # quit the box completely (Tor + firewall too)\nonionpod status          # running? locked? version, language, source   (-v: detailed)\nonionpod check           # leak test (briefly starts the box if it is off)\nonionpod update          # look for updates and install them\nonionpod password        # set/change the lock password · --off · --reset\nonionpod config -l       # settings\nonionpod uninstall       # remove everything\nonionpod help [command]  # help\n```\n\nThe **Tab key** completes commands and settings: `onionpod up<Tab>` → `onionpod update`.\n\n## Settings: `onionpod config`\n\n```bash\nonionpod config -l                      # show all\nonionpod config --get lang              # read one value (short: onionpod config lang)\nonionpod config --set lang en           # set\nonionpod config --unset desktop-icon    # back to default\n```\n\n| Key | Values | What | Scope |\n|---|---|---|---|\n| `lang` | `de` · `en` | language for setup, starter and box | system (sudo) |\n| `desktop-icon` | `on` · `off` | icon on the desktop | user |\n| `tray` | `on` · `off` | 🧅 in the top bar | user |\n| `session` | `on` · `off` | [Session messenger](session.md) in the box — switching rebuilds the box (on: one-time ~15–20 min; off: Session data is kept) | system (sudo) |\n| `update.source` | path | where `onionpod update` gets the new version from | system (sudo) |\n| `lock` | `on` · `off` | display only — change with `onionpod password` | — |\n\n**Two places, on purpose:** anything security-related (box language, update source) is root-owned in\n`/etc/onionpod/config`. No program running as your user can slip the box a different update source this way.\nPure convenience (desktop icon, top bar) lives in `~/.config/onionpod/`. **Passwords** can never be shown or set via\n`config`.\n\n## Where root is needed\n\n`onionpod` runs as you. `update`, `uninstall`, `password` and system settings ask for sudo **themselves** — please\ndon't run `sudo onionpod …`. Box calls (`open`, `lock`, `stop`, `status`, `check`) use the same narrow sudo rule as\nthe starter, without a password prompt.\n"
  },
  {
   "name": "transit",
   "title": "Vault “Transit” & downloads",
   "path": "/en/doc/transit/",
   "toc": [
    {
     "level": 1,
     "text": "Vault “Transit” & downloads",
     "anchor": "vault-transit-downloads"
    },
    {
     "level": 2,
     "text": "Create",
     "anchor": "create"
    },
    {
     "level": 2,
     "text": "Inside the box",
     "anchor": "inside-the-box"
    },
    {
     "level": 2,
     "text": "Outside (box off)",
     "anchor": "outside-box-off"
    },
    {
     "level": 2,
     "text": "Why not SiriKali?",
     "anchor": "why-not-sirikali"
    },
    {
     "level": 2,
     "text": "Honestly: what is readable where?",
     "anchor": "honestly-what-is-readable-where"
    }
   ],
   "updated": "2026-10-05",
   "content": "# Vault “Transit” & downloads\n\nSince **v1.1.0**. Two places for files in the box — with a clear line between them:\n\n| | `~/Downloads` | `~/Transit` (vault) |\n|---|---|---|\n| For | everything you download in the box | **only** what should deliberately go out (or come in) |\n| Kept | yes (own volume) | yes |\n| Reachable from outside | **no** (root only, see below) | yes — with the vault password, while the box is off |\n| On disk | unencrypted | **encrypted** (gocryptfs) |\n\nTor Browser asks where to save each download (default `~/Downloads`). In the box menu (`🧅 ☰`) **“📥 Downloads”**\nand **“🔐 Transit”** open the file manager — just drag files from Downloads to Transit.\n\n## Create\n\n`setup.sh` asks once on the first update to 1.1 or on install: “Create the vault “Transit”?”. Any time later:\n\n```bash\nonionpod transit init\n```\n\nIts own password, **not** the lock password. Tip: a sentence instead of cryptic characters.\n**Forget the password = lose the content** — there is no back door. Start over (empties the vault):\n\n```bash\nonionpod transit reset\n```\n\n## Inside the box\n\nWhen opening, after the lock password the same window asks for the **vault password** (3 tries, checked by the box\nitself) — or **“Open without vault”**. With the vault there is `~/Transit`, in the menu and as a bookmark in the file\ndialog.\n\n## Outside (box off)\n\n```bash\nonionpod transit open     # asks for the vault password, opens /var/lib/onionpod-transit/Transit in the file manager\nonionpod transit close    # close again\nonionpod transit status\n```\n\nOnly you can enter the folder (`/var/lib/onionpod-transit` belongs to you, `700`). **Box and outside never at the\nsame time:** while the box runs, the vault is in the box; while it's open outside, the box won't open with the vault —\n`onionpod transit close` first.\n\n## Why not SiriKali?\n\nThe box runs under freshly rolled user IDs on every start. The vault is opened **inside the box** (only a short helper\nprocess gets rights in the box namespace for that, Tor Browser doesn't), so the encrypted files always belong to the\nbox, never to you. SiriKali (running as you) can't reach them — `onionpod transit open` mounts the vault for you on the\nbox's behalf instead. A welcome side effect: **the computer never sees the plain text** while the box has the vault\nopen.\n\n## Honestly: what is readable where?\n\n- **Transit** is encrypted on disk (`/var/lib/onionpod/.conionpod`). Without the password it's just noise — even for\n  root.\n- **Downloads, Tor Browser profile, box settings** are stored **unencrypted** in the box user's folder\n  (`/var/lib/onionpod/…/volumes/onionpod-downloads/_data/` etc.). Programs running as you can't reach them, **root\n  can** — and so can anyone who removes the disk of a computer without full-disk encryption. Keep important things in\n  Transit.\n"
  },
  {
   "name": "session",
   "title": "Session Messenger",
   "path": "/en/doc/session/",
   "toc": [
    {
     "level": 1,
     "text": "Session Messenger",
     "anchor": "session-messenger"
    },
    {
     "level": 2,
     "text": "⚠️ First: set an app password",
     "anchor": "first-set-an-app-password"
    },
    {
     "level": 2,
     "text": "What we change — and what we don't",
     "anchor": "what-we-change-and-what-we-dont"
    },
    {
     "level": 2,
     "text": "Data",
     "anchor": "data"
    }
   ],
   "updated": "2026-10-06",
   "content": "# Session Messenger\n\nSince **v1.2.0** the box ships the [Session Messenger](https://getsession.org): no phone number, messages via onion\nrouting. Inside the box it additionally runs **forcibly over Tor** — Session itself has no proxy option.\nStart: box menu (`🧅 ☰`) → **💬 Session (onionpod build)**.\n\n> Unofficial build: from the official source code, but with our changes (below). onionpod is not affiliated with the\n> Session Technology Foundation; “Session” is its trademark. Please report problems with this build to onionpod, not\n> to the Session team.\n\n**Optional:** the installer asks whether Session should be included (default: no — the one-time build takes\n~15–20 min and ~470 MB). Switch later: `onionpod config --set session on` or `off`. Switching off keeps your Session\ndata in the box; after switching back on your account is still there.\n\n## ⚠️ First: set an app password\n\n**Mandatory.** Without an app password the key of Session's database lies next to it in plain text (`config.json`) —\nwhoever has the file can read all messages. With an app password the database is **re-encrypted with the password**,\nthe old key no longer opens it; Session then asks for it on every start.\n\nIn Session: **Settings → Privacy → (at the bottom) Passwords → Set Password → Set** (its own password, not the lock or vault password).\n\n## What we change — and what we don't\n\nSession is **built from source** on install, in a **pinned version**, with our hardening as small patches. No fork, no\nauto-updates: a new Session version only comes with an onionpod update whose patches are adapted and tested — so the\ninstallation doesn't rain errors.\n\n| onionpod | Session |\n|---|---|\n| 1.2.0 | v1.18.1 (commit `1937a3cb…`) |\n\n| Hardening | Why |\n|---|---|\n| **Guard test with a throwaway ID** | Session checks entry nodes with a direct request — containing your own Session ID. IP and account would be linkable. |\n| **Auto-update off** | Updates only via onionpod (checked version + patches). |\n| **Spell check off** | Electron otherwise downloads dictionaries from Google. |\n\n**Remains (honestly):**\n- **No forward secrecy** in 1:1 chats, **communities not end-to-end** — that's the protocol; no box can change it.\n- Identity with 128 bits of randomness (256 bits would mean a new account that no longer works with the phone app).\n- Electron is weakly isolated (`nodeIntegration`, no `contextIsolation`) and runs with **`--no-sandbox`**: Chromium's own\n  sandbox needs rights the workspace deliberately doesn't have. The box does the isolation — a break-in ends up in the\n  box, not on your computer.\n\n## Data\n\n`~/.config/Session` in the box = its own volume (`onionpod-session`): kept, not reachable from outside, but like all box\ndata stored **unencrypted** on disk (root can see it) — hence the app password.\nFiles from Session to the outside: via the [vault “Transit”](./transit.md).\n"
  },
  {
   "name": "lock",
   "title": "Lock password",
   "path": "/en/doc/lock/",
   "toc": [
    {
     "level": 1,
     "text": "Lock password",
     "anchor": "lock-password"
    },
    {
     "level": 2,
     "text": "Setting it",
     "anchor": "setting-it"
    },
    {
     "level": 2,
     "text": "What it does",
     "anchor": "what-it-does"
    },
    {
     "level": 2,
     "text": "Locking and opening again",
     "anchor": "locking-and-opening-again"
    },
    {
     "level": 2,
     "text": "Change, remove, forget",
     "anchor": "change-remove-forget"
    }
   ],
   "updated": "2026-10-05",
   "content": "# Lock password\n\nWith a lock password you can **lock the box instead of quitting it**: the window closes, the box keeps running\n(open pages, logins, everything stays), and only someone who knows the password can get back in.\n\n## Setting it\n\n```bash\nonionpod password          # since v1.0.0 — or: bash setup.sh --lock-password\n```\n\n1. enter it twice in the terminal (hidden)\n2. **Check in the launcher window** — exactly where you will type it later, with 👁 to reveal it. If it does not match\n   (3 attempts) or you cancel, **nothing** is set. This way you cannot lock yourself out by accident.\n\nOnly a hash is stored (PBKDF2-SHA256, 600,000 rounds, random salt) in `/etc/onionpod/lock`. The file belongs to\nroot: the launcher can check it, but nobody can change it without sudo. The box itself only learns “lock on/off”.\n\n## What it does\n\n- **Every start** asks for it — not only after locking. Anyone who quits the box and starts it again cannot get in\n  without the password.\n- Not **past the launcher** either: `onionpod start` checks by itself (password via stdin, 2-second pause when wrong).\n- The box menu shows **“🔒 Lock onionpod”**, and ✕ on the window asks “Window closed — quit or lock onionpod?” (buttons “🔒 Lock” / “Quit”).\n\n## Locking and opening again\n\n- **Lock:** box menu → “🔒 Lock onionpod” or ✕ → “🔒 Lock”. All windows are minimized, the bar disappears\n  (window titles would be page titles), only a black background remains; the connection to the window is cut.\n  In the top bar: 🧅 with a padlock.\n- **Open:** double-click “onionpod” or 🧅 → “Open …” → password → everything is back exactly as it was.\n\n## Change, remove, forget\n\n```bash\nonionpod password            # change: old password + sudo\nonionpod password --off      # remove: old password + sudo\nonionpod password --reset    # forgotten: sudo only\n```\n\nAfter `=reset`, a locked box opens on double-click without a password (the check happens on the computer, not in the box).\n"
  },
  {
   "name": "architecture",
   "title": "Architecture",
   "path": "/en/doc/architecture/",
   "toc": [
    {
     "level": 1,
     "text": "Architecture",
     "anchor": "architecture"
    },
    {
     "level": 2,
     "text": "Architecture: CLI · Starter · Box · Page",
     "anchor": "architecture-cli-starter-box-page"
    },
    {
     "level": 2,
     "text": "The box in detail",
     "anchor": "the-box-in-detail"
    },
    {
     "level": 2,
     "text": "The containers",
     "anchor": "the-containers"
    },
    {
     "level": 2,
     "text": "Rootless and rolled",
     "anchor": "rootless-and-rolled"
    },
    {
     "level": 2,
     "text": "No bridge to the computer",
     "anchor": "no-bridge-to-the-computer"
    },
    {
     "level": 2,
     "text": "Where things live",
     "anchor": "where-things-live"
    },
    {
     "level": 2,
     "text": "Versions",
     "anchor": "versions"
    }
   ],
   "updated": "2026-10-06",
   "content": "# Architecture\n\n## Architecture: CLI · Starter · Box · Page\n\n```\n you (your user)                        │  box user “onionpod” (no login)              │  network\n────────────────────────────────────────┼──────────────────────────────────────────────┼──────────\n 🪟 Starter  (double-click)             │                                              │\n ⌨️ CLI      (onionpod …)               │  🧅 Box (box program, /opt/onionpod)         │\n        │                               │     start · stop · status · test …           │\n        └── sudo, ONLY these calls ─────┼──►  └─ pod: workspace · tor · fw · probe ────┼──► Tor only\n            (no password prompt)        │        Tor Browser · Session · ~/Transit     │\n        setup.sh / update / config ─────┼──► root (sudo once): user, /opt, /etc        │\n 🌐 Page  (website + docs, separate, knows nothing about your computer)                │\n```\n\n- **Starter** and **CLI** run as **you** — they may operate the box only through a narrow sudo rule\n  (exactly the box program's actions, as user `onionpod`).\n- The **Box** runs as its **own user** without login, rootless, with rolled user IDs — it sees neither your\n  home nor your network. The only way out: Tor.\n- root is only needed for setup, updates and security-relevant settings (`/etc/onionpod`).\n\n## The box in detail\n\n```\n your computer (Ubuntu)\n ┌───────────────────────────────────────────────────────────────────────────────┐\n │  TigerVNC viewer ◄── pixels · 127.0.0.1 · one-time password ───┐   🧅 top bar │\n │                                                                │              │\n │  ┌──────────── Pod \"onionpod\" · rootless · user IDs rolled ─────────────────┐ │\n │  │  workspace ──TCP/DNS──► fw (nftables) ──► tor ──Tor──► Internet          │ │\n │  │  Tor Browser             only Tor may exit     SOCKS · TransPort ·       │ │\n │  │  openbox · menu          rest → Tor or DROP    DNSPort · .onion          │ │\n │  │  probe: leak-test container — deliberately tries to get past Tor         │ │\n │  └──────────────────────────────────────────────────────────────────────────┘ │\n │  ✕ unreachable from the box: router · home network · host · IPv6 · UDP        │\n └───────────────────────────────────────────────────────────────────────────────┘\n```\n\n## The containers\n\n| Container | Job |\n|---|---|\n| **fw** | sets up the firewall (nftables) in the pod's shared network: only the Tor process may reach the network; everything else is redirected to Tor or dropped — and counted |\n| **tor** | Tor with SOCKS, TransPort (transparent redirection), DNSPort and `.onion` automap; the ControlPort is blocked for apps |\n| **workspace** | Tor Browser (without its own Tor), openbox, bar, start menu, Xvnc |\n| **probe** | short-lived, during the leak test: deliberately tries to get past Tor |\n\n## Rootless and rolled\n\nEverything runs under the dedicated user `onionpod` (no login, home with 700). Every start picks a different one of\n16 user ID ranges — the box's processes never run under your ID or a fixed one.\n\n## No bridge to the computer\n\n- no X11 socket, no home folder, no Docker/Podman socket in the box\n- the screen comes via **TigerVNC**: Xvnc in the box, only on `127.0.0.1:5909`, one viewer, the password burns\n  after a single use\n- the firewall accepts only this one port from outside\n\n## Where things live\n\n| Location | Content | Owner |\n|---|---|---|\n| your source | `setup.sh` and components (for updates) | you |\n| `/opt/onionpod` | programs, launcher, top bar icon, texts | root |\n| `/var/lib/onionpod` | images, Tor state, browser profile (bookmarks) | `onionpod` |\n| `/etc/onionpod/config` | version, user, language | root |\n| `/etc/onionpod/lock` | lock password (hash) | root |\n| `/etc/sudoers.d/onionpod` | you may only run `start/stop/status/build/test` as `onionpod` | root |\n| `~/.config/onionpod/starter` | desktop icon yes/no | you |\n| `~/.local/state/onionpod/` | setup.sh logs | you |\n\nWhy root for programs and rules? Because otherwise any program running under your user could silently change a\nfirewall entry — a leak past Tor.\n\n## Versions\n\nOne version for everything (`VERSION`): setup.sh, launcher and box image (label). The launcher refuses to run if the\nimage and the programs do not match, and points to `onionpod update`.\n"
  },
  {
   "name": "leak-test",
   "title": "Leak test",
   "path": "/en/doc/leak-test/",
   "toc": [
    {
     "level": 1,
     "text": "Leak test",
     "anchor": "leak-test"
    },
    {
     "level": 2,
     "text": "The checks",
     "anchor": "the-checks"
    },
    {
     "level": 2,
     "text": "Results",
     "anchor": "results"
    },
    {
     "level": 2,
     "text": "Run it yourself",
     "anchor": "run-it-yourself"
    }
   ],
   "updated": "2026-10-05",
   "content": "# Leak test\n\nBefore **every** opening (and during the trial run in `setup.sh`), a dedicated container checks 16 ways in which\nsomething could get past Tor. If a check fails, the box is stopped **before** you see it.\n\n## The checks\n\n| Step | Check |\n|---|---|\n| 1 · Exit is Tor | `check.torproject.org` reports `IsTor=true` |\n| 2 · Real IP stays hidden | Tor exit ≠ your real IP (the real one is never shown) |\n| 3 · Direct IP | even a connection made directly to an IP address ends up at Tor |\n| 4 · DNS only via Tor | the system resolver answers via Tor's DNSPort; `dig @1.1.1.1` is redirected too |\n| 5 · Forbidden paths are closed | router, computers on the home network, the host (`10.0.2.2`), IPv6, UDP, Tor ControlPort |\n| 6 · `.onion` works | via SOCKS (the Tor Browser path) and transparently (automap) |\n| 7 · The firewall counted | the counters of dropped attempts went up — dropped alone is not enough |\n\nThe test finds the router and home network addresses by itself.\n\n## Results\n\n| Display | Meaning |\n|---|---|\n| 🧅 ✅ All sealed (16 checks passed) | window opens |\n| 🧅 ❌ N of 16 checks failed | real leak found → box is stopped |\n| 🧅 ⏳ Not fully checkable: N check(s) without answer via Tor | Tor was too slow (3 attempts × 40 s), **no** leak found → box is stopped anyway, just start it again |\n\n## Run it yourself\n\n```bash\nsudo -u onionpod /opt/onionpod/bin/onionpod test     # while the box is running\n```\n\nThe output also appears in the Details of the launcher window.\n"
  },
  {
   "name": "setup",
   "title": "setup.sh reference",
   "path": "/en/doc/setup/",
   "toc": [
    {
     "level": 1,
     "text": "setup.sh reference",
     "anchor": "setupsh-reference"
    },
    {
     "level": 2,
     "text": "Commands",
     "anchor": "commands"
    },
    {
     "level": 2,
     "text": "Options",
     "anchor": "options"
    },
    {
     "level": 2,
     "text": "Log",
     "anchor": "log"
    },
    {
     "level": 2,
     "text": "Other programs",
     "anchor": "other-programs"
    }
   ],
   "updated": "2026-10-05",
   "content": "# setup.sh reference\n\n`bash setup.sh` without a command shows the help. It runs as a normal user; everything that needs root happens in\n**one** sudo call.\n\n## Commands\n\n| Command | What it does |\n|---|---|\n| `--check` | check the environment (system, kernel, memory, disk space, packages) — changes nothing |\n| `--status` | what is installed (all parts with version), is the box running, lock on/off |\n| `--install` | first installation (asks first, installs missing packages, builds the box, trial run) |\n| `--update` | get a new version (git or package) + check Tor Browser → stop the box → install → build → trial run |\n| `--uninstall` | remove everything (asks whether the box data should go too) |\n| `--hl=de` / `--hl=en` | only switch the language — no rebuild |\n| `--lock-password` | set or change the lock password |\n| `--lock-password=off` | remove the lock password (old password + sudo) |\n| `--lock-password=reset` | forget the lock password (sudo only) |\n| `--desktop-icon=on` / `=off` | desktop icon on/off (no sudo) |\n\n## Options\n\n| Option | Effect |\n|---|---|\n| `--hl=de\\|en` | language for setup, launcher and box (remembered) |\n| `--verbose` | everything in detail instead of a progress bar |\n| `--yes` | answer all questions with the default (scripts, no terminal) |\n| `--force` | with `--update`: reinstall even if everything is up to date |\n| `--dry-run` | with `--uninstall`: only show what would be removed |\n\n## Log\n\nEvery run: `~/.local/state/onionpod/setup-<date>.log` — everything is in there, even without `--verbose`.\n\n## Other programs\n\n| Program | Purpose |\n|---|---|\n| `onionpod` | the terminal command (since v1.0.0) — see [Terminal command](./cli.md) |\n| `onionpod-open` | the launcher (same as the double-click); `onionpod-open --stop` stops the box |\n| `/opt/onionpod/bin/onionpod` | the box program (`start`, `stop`, `status`, `build`, `test`, `transit-open/-close/-verify`, `reset-tor`) — as user `onionpod` via sudo |\n"
  },
  {
   "name": "troubleshooting",
   "title": "Troubleshooting",
   "path": "/en/doc/troubleshooting/",
   "toc": [
    {
     "level": 1,
     "text": "Troubleshooting",
     "anchor": "troubleshooting"
    },
    {
     "level": 2,
     "text": "Where to look?",
     "anchor": "where-to-look"
    },
    {
     "level": 2,
     "text": "Known problems",
     "anchor": "known-problems"
    },
    {
     "level": 3,
     "text": "Ctrl+C / Ctrl+V do not work in the box (GNOME on X11)",
     "anchor": "ctrlc-ctrlv-do-not-work-in-the-box-gnome-on-x11"
    },
    {
     "level": 3,
     "text": "Top-bar 🧅 does not change when locking/unlocking (rare)",
     "anchor": "top-bar-does-not-change-when-lockingunlocking-rare"
    },
    {
     "level": 3,
     "text": "Two 🧅 in the top bar",
     "anchor": "two-in-the-top-bar"
    },
    {
     "level": 3,
     "text": "“The box is outdated: programs v…, box image v…”",
     "anchor": "the-box-is-outdated-programs-v-box-image-v"
    },
    {
     "level": 3,
     "text": "“Wrong password.” although it is correct",
     "anchor": "wrong-password-although-it-is-correct"
    },
    {
     "level": 3,
     "text": "Tor hangs at “10 %” on start",
     "anchor": "tor-hangs-at-10-on-start"
    },
    {
     "level": 3,
     "text": "Transit: “open outside” / “still in use” / wrong password",
     "anchor": "transit-open-outside-still-in-use-wrong-password"
    },
    {
     "level": 3,
     "text": "Leak test “⏳ Not fully checkable”",
     "anchor": "leak-test-not-fully-checkable"
    },
    {
     "level": 3,
     "text": "Window does not connect / error about -SecurityTypes",
     "anchor": "window-does-not-connect-error-about-securitytypes"
    }
   ],
   "updated": "2026-10-19",
   "content": "# Troubleshooting\n\n## Where to look?\n\n| What | Where |\n|---|---|\n| Setup | `~/.local/state/onionpod/setup-<date>.log` |\n| Launcher (last start) | `$XDG_RUNTIME_DIR/onionpod/start.log` (usually `/run/user/1000/onionpod/start.log`) |\n| State | `onionpod status` (detailed: `onionpod status -v`) |\n| Top bar icon, GNOME | `journalctl --user \\| grep -E \"JS ERROR\\|onion\"` |\n\n## Known problems\n\n### Ctrl+C / Ctrl+V do not work in the box (GNOME on X11)\n\nCopy and paste via right-click works, but **Ctrl+V** only types a “v”. The cause is GNOME's setting\n**“Locate pointer”** (circles around the mouse pointer when pressing Ctrl). In an **X11 session** GNOME grabs the Ctrl\nkey for it, so the box window never receives it. Wayland is not affected.\nFix: Settings → Accessibility → Pointing & Clicking → turn off “Locate pointer”, or\n`gsettings set org.gnome.desktop.interface locate-pointer false`. Takes effect immediately (found 19.10.2026).\n\n### Top-bar 🧅 does not change when locking/unlocking (rare)\n\nThe icon's menu shows the right state (“locked”/“open”), but the picture stays the old one. Rare, not reproducible on\npurpose (PC, 07.10.2026). Checked: onionpod reports the right picture to the top bar — most likely the GNOME extension for\ntray icons misses the “new icon” signal. Harmless: state and menu are correct. If it happens: please **don't click\nanything** and report it (onionpod@xpulse.one) so the moment can be inspected.\n\n### Two 🧅 in the top bar\n\nWith the GNOME extension **“Top Bar Organizer”** (tested v16, GNOME 46): when new top bar icons register, it throws\n`TypeError: appIndicator is undefined`. The error ends up as the reply to the registration, so the library\n(libayatana-appindicator) thinks it failed and additionally creates an old X11 tray icon. Since v0.10.2,\n`onionpod-tray` removes the fallback icon after ~3 seconds — briefly seeing two is normal. Other programs are affected too.\n\n### “The box is outdated: programs v…, box image v…”\n\nPrograms and box image have different versions (e.g. after a half-finished update). `onionpod update`\n(with `--force` if needed) brings both back in line.\n\n### “Wrong password.” although it is correct\n\n- Caps Lock? The field shows it; with 👁 you can see what arrives.\n- Set with a version before 0.9.4? Back then a control character ended up in the password. Fix:\n  `onionpod password --reset`, then `onionpod password`.\n\n### Tor hangs at “10 %” on start\n\nUsually a slow entry guard Tor remembered (Tor sticks with its entry guards for months). `onionpod reset-tor` (box off)\ndiscards the saved Tor state — on the next start Tor picks new ones.\n\n### Transit: “open outside” / “still in use” / wrong password\n\n- **“Transit is currently open outside”** when opening the box: `onionpod transit close` first — box and computer\n  never write to the vault at the same time.\n- **“still in use”** on `transit close`: a file manager window or terminal is still in the folder → close it.\n- **Forgot the vault password:** there is no recovery. `onionpod transit reset` empties the vault and re-creates it\n  with a new password.\n\n### Leak test “⏳ Not fully checkable”\n\nTor was too slow during the check. **No** leak was found; the box is stopped anyway as a precaution.\nJust start it again.\n\n### Window does not connect / error about `-SecurityTypes`\n\nAnother VNC viewer (e.g. RealVNC) occupies the name `vncviewer`. The launcher uses `xtigervncviewer` directly —\n`bash setup.sh --check` shows whether TigerVNC is installed.\n"
  },
  {
   "name": "limits",
   "title": "Limits & security",
   "path": "/en/doc/limits/",
   "toc": [
    {
     "level": 1,
     "text": "Limits & security",
     "anchor": "limits-security"
    },
    {
     "level": 2,
     "text": "What the box protects",
     "anchor": "what-the-box-protects"
    },
    {
     "level": 2,
     "text": "What it cannot do",
     "anchor": "what-it-cannot-do"
    },
    {
     "level": 2,
     "text": "Not built yet",
     "anchor": "not-built-yet"
    }
   ],
   "updated": "2026-10-06",
   "content": "# Limits & security\n\n## What the box protects\n\n- **Connections:** Everything from the box goes through Tor or not at all (firewall fail-closed), checked before every opening.\n- **Your computer:** The box sees neither your home network nor your files nor your screen. A break-in via a web page\n  stays in the box (own user, no sockets, no folders from the computer).\n- **Access:** With a lock password, nobody gets into a running or freshly started box without the password.\n\n## What it cannot do\n\n- **Containers are not VMs.** The box shares the kernel with the computer. For maximum isolation, **Whonix** or\n  **Qubes** (real VMs) remain the recommendation — onionpod is the lightweight option for everyday use.\n- **Tor hides where you come from, not who you are.** If you log in somewhere, you are logged in.\n- **Anyone sitting at your unlocked computer** can quit the box. Without the lock password they cannot get in, but\n  the session is gone.\n- **Box data is stored unencrypted on disk** — downloads, the Tor Browser profile (bookmarks, history if enabled) and\n  box settings. Normal programs running as your user can't reach them (the box user's folder, permissions `700`), but\n  **root sees everything in plain text** — anyone with sudo (or who grabs your sudo password) can read e.g.\n  `/var/lib/onionpod/.local/share/containers/storage/volumes/onionpod-downloads/_data/`. So can anyone who removes\n  the disk if the computer has no **full-disk encryption**. Only the **vault “Transit”** is encrypted — keep\n  important things there.\n- **Session Messenger** (since 1.2.0): no forward secrecy, communities not end-to-end, Electron runs with\n  `--no-sandbox` (the box isolates). **Set an app password**, otherwise the Session database is readable with the key\n  next to it — see [Session](./session.md).\n- **Screenshots:** What is visible in the box window is a window on your computer — screenshots and\n  screen sharing see it.\n\n## Not built yet\n\n- **Guard** with kill switch and push notification (continuous monitoring while the box is open). Today,\n  the firewall and the leak test protect before opening.\n- **Signed packages:** Today the checksum comes from the same server as the package; it catches broken downloads, not\n  a hijacked server.\n"
  }
 ]
}