[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111087":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":25,"topics":26,"createdAt":10,"pushedAt":43,"updatedAt":44,"readmeContent":45,"aiSummary":46,"trendingCount":16,"starSnapshotCount":16,"syncStatus":47,"lastSyncTime":48,"discoverSource":49},111087,"phonebox","ersinkoc\u002Fphonebox","ersinkoc","Turn an old Android phone into a customizable desk panel and touch control deck for Windows, Linux and macOS. 124 widgets and 30 templates for system stats, AI coding, media and automation, in 13 languages. USB or paired Wi-Fi. No cloud required.","https:\u002F\u002Fersinkoc.github.io\u002Fphonebox\u002F",null,"JavaScript",5626,698,21,6,0,437,3663,5188,2081,114.47,"MIT License",false,"main",true,[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"android","claude-code","codex","dashboard","desk-panel","dotnet","linux","macos","old-phone","smart-stack","stream-deck","system-monitor","tailscale","webhooks","widgets","windows","2026-11-23 20:27:25","2026-11-23 20:36:08","\u003Cp align=\"center\">\u003Cimg src=\"agent\u002FPhoneBox.Agent\u002Fphonebox.ico\" width=\"72\" alt=\"\">\u003C\u002Fp>\n\n\u003Ch1 align=\"center\">PhoneBox\u003C\u002Fh1>\n\n\u003Cp align=\"center\">\u003Cb>Turn an old Android phone into a desk panel for your computer: Windows, Linux or macOS.\u003C\u002Fb>\u003Cbr>\nWidgets for your PC, AI coding sessions, music, weather and anything you push to it. USB or Wi-Fi, no cloud.\u003Cbr>\n\u003Ca href=\"https:\u002F\u002Fersinkoc.github.io\u002Fphonebox\u002F\">\u003Cb>▶ Try the live demo in your browser\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fersinkoc\u002Fphonebox\u002Factions\u002Fworkflows\u002Fbuild.yml\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fersinkoc\u002Fphonebox\u002Factions\u002Fworkflows\u002Fbuild.yml\u002Fbadge.svg\" alt=\"build\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fersinkoc\u002Fphonebox\u002Freleases\u002Flatest\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002Fersinkoc\u002Fphonebox?label=release\" alt=\"latest release\">\u003C\u002Fa>\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FWindows%20%C2%B7%20Linux%20%C2%B7%20macOS-.NET%2010-512bd4\" alt=\"Windows, Linux, macOS; .NET 10\">\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAndroid-9%2B-3ddc84\" alt=\"Android 9+\">\n  \u003Ca href=\"LICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-blue\" alt=\"MIT license\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\u003Cimg src=\"docs\u002Fhero-0.6.png\" width=\"900\" alt=\"PhoneBox on three phones: automation, home and planner pages\">\u003C\u002Fp>\n\nPhoneBox has two parts: a small **Android app** that runs full screen on the phone, and an **agent** on the computer\n(Windows, Linux or macOS) that feeds it over the USB cable (or over Wi-Fi \u002F Tailscale after pairing once). You design\nthe pages in a visual editor on the PC: **113 widgets**, **30 templates**, as many pages as you like.\n\n- **Your PC at a glance**: CPU, GPU, RAM, disks, network and ping; the heaviest apps, with \"end one instance \u002F end all\".\n- **AI coding**: Claude and Codex quotas with a burn-rate forecast; Codex remaining allowance and local session token details; tap a session to see its model, timing, tokens, context window and recent tool — the phone\n  buzzes when one finishes or needs you, and Claude Code's permission prompts show up with **Allow** \u002F **Deny**.\n  GitHub review requests and your pull requests with CI status.\n- **Desk companion**: now playing with controls and volume, clocks, weather, sun & moon, air quality, calendar,\n  pomodoro, timers, checklists, notes, a breathing exercise.\n- **Stream Deck–style keys** that launch apps, URLs or built-in actions on the PC.\n- **Webhooks and rules**: scripts, CI and Home Assistant push values and notifications; rules switch pages calmly\n  when something happens (a call, music, an AI session waiting for you).\n\n\u003Cp align=\"center\">\u003Ca href=\"docs\u002Ftour-0.6.mp4\">\u003Cimg src=\"docs\u002Ftour-0.6.gif\" width=\"780\" alt=\"A tour of PhoneBox pages: a notification, a Claude Code permission prompt, a rule switching pages with a countdown, and the new templates\">\u003C\u002Fa>\u003Cbr>\n\u003Csub>A tour through the pages (made-up data): a notification, a permission prompt, a rule switching pages calmly. \u003Ca href=\"docs\u002Ftour-0.6.mp4\">Video (MP4)\u003C\u002Fa>\u003C\u002Fsub>\u003C\u002Fp>\n\n**Contents**: [Quick start](#quick-start) · [Pages & templates](#pages--templates) · [Widgets](#widgets) ·\n[Layout editor](#layout-editor--settings) · [Claude Code prompts](#claude-code-permission-prompts) · [Webhooks](#webhooks) · [Rules](#rules) · [Wi-Fi & Tailscale](#wi-fi--tailscale) ·\n[Updates](#updates) · [How it works](#how-it-works) · [Security](#security--privacy) · [FAQ](#faq--troubleshooting) ·\n[Development](#development)\n\n## Recent highlights\n\nThe [changelog](CHANGELOG.md) lists every release. Some of the larger additions:\n\n### Control Deck, appearance and Podman (0.8 – 0.9)\n\n58 [Control Deck](docs\u002FCONTROL-DECK.md) widgets (audio, media, OBS, tasks, displays), optional\n[appearance](docs\u002FAPPEARANCE.md) presets for the panel, pages and widgets, Podman containers, and pages that wrap\naround when you swipe past the last one.\n\n### Android 9 and 10 (0.7.3)\n\nFixes an immediate launch crash on Android 9 and 10. Full-screen mode now uses the compatible immersive API on\nthese versions; Android 11+ keeps the existing behavior. Android API compatibility lint now blocks CI and releases.\n\n### Native Antigravity quotas (0.7.2)\n\nNative Antigravity quota monitoring now works without CodexBar, including signed-in `agy` CLI installations on\nWindows. Session and weekly usage come from measured quota data; missing readings are not shown as unused quota.\nSee [native Antigravity quotas](#widgets) and the [changelog](CHANGELOG.md) for setup and compatibility details.\n\n### Smart Stack and session details (0.7.0)\n\n| Smart Stack and quotas | Codex session details |\n|---|---|\n| ![Smart Stack with clock, quotas and sessions](docs\u002Fscreenshots\u002Fsmart-stack.png) | ![Codex model, token counters and recent tool](docs\u002Fscreenshots\u002Fsession-details.png) |\n\nThese screenshots use made-up demo data. See the [changelog](CHANGELOG.md) for all changes.\n\n## Quick start\n\n**[Download the latest PhoneBox release](https:\u002F\u002Fgithub.com\u002Fersinkoc\u002Fphonebox\u002Freleases\u002Flatest)** — signed Android APK and\nagents for Windows x64, Linux x64\u002FARM64 and macOS Apple Silicon\u002FIntel. Agent archives need the matching .NET 10\nruntime (Desktop Runtime on Windows). The release includes SHA-256 checksums and build provenance.\nExisting users can update from Settings; existing layouts and pairing settings are retained.\n\nYou need an Android 9+ phone with [USB debugging](https:\u002F\u002Fdeveloper.android.com\u002Fstudio\u002Fdebug\u002Fdev-options) turned on,\nthe [.NET 10 SDK](https:\u002F\u002Fdotnet.microsoft.com\u002Fdownload) and `adb`.\nThe source installers below build the agent locally. To build the phone app, also install **JDK 17** and\n**Android SDK Platform 35** (for example through Android Studio), set `JAVA_HOME`, and point `ANDROID_HOME` or\n`android\u002Flocal.properties` (`sdk.dir`) at the SDK. The installers can use a release APK from `dist\u002F`; the Windows\ninstaller rebuilds it when Android sources are newer, or when `-BuildApk` is supplied.\n\n**Windows 10\u002F11**\n\n```powershell\nwinget install Microsoft.DotNet.SDK.10 Google.PlatformTools   # .NET 10 and adb\ngit clone https:\u002F\u002Fgithub.com\u002Fersinkoc\u002Fphonebox\ncd phonebox\n.\\scripts\\install.ps1 -Apk -Autostart   # agent + phone app, start with Windows (add -Serial \u003Cid> if several devices are connected)\n```\n\nOr install just the agent with **Scoop** and let it put the app on the phone (settings › General › *Install the\nphone app*, with the phone plugged in):\n\n```powershell\nscoop bucket add phonebox https:\u002F\u002Fgithub.com\u002Fersinkoc\u002Fphonebox\nscoop install phonebox\u002Fphonebox          # needs the .NET 10 Desktop Runtime and adb (scoop install extras\u002Fwindowsdesktop-runtime main\u002Fadb)\n```\n\nA winget package (`ersinkoc.PhoneBox`) is prepared in [`packaging\u002Fwinget`](packaging\u002Fwinget) for submission to\nwinget-pkgs; once accepted it installs with `winget install ersinkoc.PhoneBox`.\n\n**Linux** (Ubuntu, Debian, Fedora, Arch…) **and macOS**\n\n```sh\nsudo apt install adb playerctl          # Fedora: android-tools playerctl · macOS: brew install android-platform-tools nowplaying-cli\ngit clone https:\u002F\u002Fgithub.com\u002Fersinkoc\u002Fphonebox\ncd phonebox\n.\u002Fscripts\u002Finstall.sh --apk --autostart  # agent + phone app; systemd user service (Linux) or launchd agent (macOS)\n```\n\nPlug the phone in: it wakes up and opens the panel. The settings are at \u003Chttp:\u002F\u002F127.0.0.1:8765> (on Windows also\nfrom the tray icon). `scripts\u002Funinstall.ps1 [-Purge] [-Apk]` \u002F `scripts\u002Funinstall.sh [--purge] [--apk]` remove\neverything again.\n\n\u003Cdetails>\u003Csummary>\u003Cb>What works where\u003C\u002Fb>\u003C\u002Fsummary>\n\n| | Windows | Linux | macOS |\n|---|---|---|---|\n| CPU, RAM, network, disks, ping | ✓ | ✓ | ✓ |\n| CPU temperature | LibreHardwareMonitor | ✓ (hwmon) | — |\n| GPU usage | NVIDIA (`nvidia-smi`) | NVIDIA (`nvidia-smi`) | Apple silicon (`ioreg`) |\n| Now playing + controls | ✓ (any app) | ✓ (MPRIS via `playerctl`) | System media, including browser video, with `nowplaying-cli`; Spotify and Music fallback |\n| Volume | ✓ | ✓ (`wpctl` \u002F `pactl`) | ✓ |\n| Processes, end one \u002F all | ✓ | ✓ (your own) | ✓ (your own) |\n| App icons | ✓ | ✓ (icon theme) | ✓ (app bundles) |\n| Shortcuts, lock, screen off | ✓ | ✓ (`loginctl`, `xset`) | ✓ (`open`, `pmset`) |\n| Command widgets | PowerShell | bash | zsh |\n| Claude \u002F Codex quotas & sessions, GitHub, webhooks | ✓ | ✓ | ✓ (Claude token from the Keychain) |\n| Tray icon | ✓ | — (settings in the browser) | — |\n| Start at login | Startup folder | systemd user service | launchd agent |\n\nOn macOS, `nowplaying-cli` supplies system media metadata and cover art. The agent labels matching Safari or Chrome tabs as YouTube or YouTube Music. The progress bar advances from the last position supplied by macOS; Safari may report an outdated starting position. Volume follows the selected system output. When macOS does not expose its volume, an optional `m1ddc` installation can read it from a compatible display; display volume is read only in PhoneBox. Unsupported outputs show `n\u002Fa`. Apple silicon GPU usage comes from IORegistry when macOS exposes it; temperature, power and VRAM figures may remain unavailable.\n\n\u003C\u002Fdetails>\n\nOptional extras that light up more widgets: an NVIDIA GPU (`nvidia-smi`), the [GitHub CLI](https:\u002F\u002Fcli.github.com)\n(`gh auth login`), Claude Code, Codex, and [LibreHardwareMonitor](https:\u002F\u002Fgithub.com\u002FLibreHardwareMonitor\u002FLibreHardwareMonitor)\nwith its web server on port 8085 for the CPU temperature.\n\n## Appearance\n\nSet corner radius, widget spacing, inner padding, page padding, borders and shadows in **Settings → General →\nAppearance**. Choose Original, Rounded cards, Flat, Content only or Seamless panel, then customize individual values.\nPages and individual widgets can override global defaults. Live preview shows unsaved changes before Save.\nExisting layouts keep their original appearance. See the [appearance guide](docs\u002FAPPEARANCE.md).\n\n## Control Deck\n\nTurn a phone into a touch control deck with application audio faders, microphone controls, device selection,\npush-to-talk, audio profiles, media controls, soundboard, window and system controls, OBS, meeting shortcuts,\ndevelopment tasks, MIDI and OSC. Six new templates provide starting layouts; existing layouts are retained.\n\nOpen **Settings → General → Control Deck** to define computer-side bindings and capture audio profiles. Add the\nmatching widgets in Pages. Executable shortcuts and macros are configured in Shortcuts first; phone requests contain\nonly configured IDs. PC audio listening and hold-to-confirm power buttons require separate desktop opt-ins.\n\nSpotify queue, library and playlist controls need a Spotify Developer Client ID and a connection through the\nsettings screen. OBS needs obs-websocket and widget control permission. Application routing uses an installed\nSoundVolumeView executable; virtual-mixer controls use the installed Voicemeeter Remote DLL. MIDI requires an\noutput port. Missing integrations display their setup state. See the [setup and platform guide](docs\u002FCONTROL-DECK.md).\n\n## Pages & templates\n\nEvery page is a 12 × 6 grid. Start a page from one of the 30 templates (or from scratch) and change anything.\n\n| | |\n|---|---|\n| **Home** — clock, weather, now playing, CPU \u002F GPU \u002F RAM \u002F network tiles | **Dashboard** — gauges, clock, media and a few shortcut keys |\n| \u003Cimg src=\"docs\u002Fscreenshots\u002Fhome.png\" alt=\"Home\"> | \u003Cimg src=\"docs\u002Fscreenshots\u002Fdashboard.png\" alt=\"Dashboard\"> |\n| **AI quotas** — Claude and Codex limits, reset times, \"at this pace: full in 1 d 5 h\" | **Sessions** — Claude Code \u002F Codex sessions and GitHub |\n| \u003Cimg src=\"docs\u002Fscreenshots\u002Fai.png\" alt=\"AI quotas\"> | \u003Cimg src=\"docs\u002Fscreenshots\u002Fwork.png\" alt=\"Sessions\"> |\n| **System** — CPU, GPU, memory, disks, network and ping charts | **Processes** — heaviest apps; tap one to end an instance or all of them |\n| \u003Cimg src=\"docs\u002Fscreenshots\u002Fsystem.png\" alt=\"System\"> | \u003Cimg src=\"docs\u002Fscreenshots\u002Fprocs-sheet.png\" alt=\"Processes\"> |\n| **Status** — quota rings, phone battery, top CPU, volume, sessions | **Ambient** — analog clock, sun & moon, air quality, quote, forecast |\n| \u003Cimg src=\"docs\u002Fscreenshots\u002Fstatus.png\" alt=\"Status\"> | \u003Cimg src=\"docs\u002Fscreenshots\u002Fambient.png\" alt=\"Ambient\"> |\n| **Markets** — exchange rates, crypto, Hacker News | **Feeds** — values and notifications pushed by webhooks |\n| \u003Cimg src=\"docs\u002Fscreenshots\u002Fmarkets.png\" alt=\"Markets\"> | \u003Cimg src=\"docs\u002Fscreenshots\u002Ffeeds.png\" alt=\"Feeds\"> |\n| **Daily** — checklist, time progress, timer, counter, stopwatch | **World** — world clocks, hourly forecast, calendar |\n| \u003Cimg src=\"docs\u002Fscreenshots\u002Fdaily.png\" alt=\"Daily\"> | \u003Cimg src=\"docs\u002Fscreenshots\u002Fworld.png\" alt=\"World\"> |\n| **Music** — a big now-playing card | **Shortcuts** — Stream Deck–style keys |\n| \u003Cimg src=\"docs\u002Fscreenshots\u002Fmusic.png\" alt=\"Music\"> | \u003Cimg src=\"docs\u002Fscreenshots\u002Fdeck.png\" alt=\"Shortcuts\"> |\n| **Planner** — next up, month, agenda, checklist | **Automation** — rules, on air, pushed values, device batteries, notifications |\n| \u003Cimg src=\"docs\u002Fscreenshots\u002Fplanner.png\" alt=\"Planner\"> | \u003Cimg src=\"docs\u002Fscreenshots\u002Fautomation.png\" alt=\"Automation\"> |\n| **Nightstand** — word clock, moon, battery care, next hours | **Deep work** — pomodoro, next up, sessions, quota ring, rules |\n| \u003Cimg src=\"docs\u002Fscreenshots\u002Fnightstand.png\" alt=\"Nightstand\"> | \u003Cimg src=\"docs\u002Fscreenshots\u002Fdeepwork.png\" alt=\"Deep work\"> |\n\nMore templates: **Clock**, **Focus** (pomodoro + note), **Calm** (breathing), **DevOps** (command widgets) and\n**Weekend** (forecast, music, moon, analog clock, quote).\n\n**Getting around.** Swipe; press the phone's **volume keys** to flip pages; tap the page dots (or long-press an empty\nspot) for an overview of all pages and jump straight to one. Webhooks and rules can switch pages too; they count down\nfirst (*\"switching to AI in 3…\"*, with Stay and Go now) and never pull a page away while you are using the panel. The\npanel returns to the home page when idle (each page can stay longer, or for good), can dim to a clock at night and\nkeeps the screen on.\n\n\u003Cp align=\"center\">\u003Cimg src=\"docs\u002Fscreenshots\u002Foverview.png\" width=\"600\" alt=\"Page overview\">\u003C\u002Fp>\n\n## Widgets\n\n| Category | Widgets |\n|---|---|\n| **Time** | Clock (with status line and weather) · Analog clock (any time zone) · **Word clock** · World clocks · Calendar · **Next up** · Time progress (day \u002F week \u002F month \u002F year) · Countdown · Pomodoro · Quick timer · Stopwatch |\n| **Weather & sky** | Weather · Forecast (hourly \u002F 7 days) · Sun & moon (daylight left, UV, moon phase) · **Moon** · Air quality (European AQI, PM2.5, PM10, O₃, NO₂) |\n| **Computer** | **Rules** (which hold, pause) · **Battery care** · On air (microphone \u002F camera \u002F OBS) · OBS Studio (live, recording, scenes) · Device batteries (headphones, mice, keyboards) · Docker (containers, start \u002F stop) · Metric tile · Gauge · Chart · Memory & disks · Top processes · Processes · Now playing · Volume · Shortcut grid · Big button · **Command** (PowerShell \u002F bash \u002F zsh output, refreshed every N seconds) |\n| **AI & code** | AI quotas · Quota ring · AI sessions · GitHub |\n| **Personal** | **Agenda** (Google \u002F Outlook \u002F iCloud calendars) · Note · Checklist (resets daily) · Counter · Breathe · Quote · Title · Phone battery |\n| **Web & data** | **Custom HTML** (your own widget, sandboxed) · **Home Assistant** (entities, tap to switch) · **Pushed value** · **Notifications** (both fed by [webhooks](#webhooks)) · Hacker News · Exchange rates (ECB) · Crypto prices · Image \u002F webcam |\n\nWidgets scale to the size you give them. Weather, air quality, rates, crypto and Hacker News come straight from free\npublic APIs ([Open-Meteo](https:\u002F\u002Fopen-meteo.com), [Frankfurter](https:\u002F\u002Ffrankfurter.dev), [CoinGecko](https:\u002F\u002Fwww.coingecko.com),\n[HN](https:\u002F\u002Fgithub.com\u002FHackerNews\u002FAPI)) on the phone, without API keys, and keep their last data when offline.\n\n**Smart Stack** combines up to 12 widgets in one slot. Add it from the Layout category, then drag widgets into it or\nuse its picker. Reorder cards, open their settings, or disable individual cards. Tap the dots or swipe vertically to\nchange cards; horizontal swipes still change pages. Focused controls pause rotation. Command widgets belong directly\non a page rather than inside a stack.\n\n**CodexBar** is an optional source: install its `codexbar` CLI on the computer and the agent reads `usage --json`.\nThe CodexBar template and quota widget can show Claude, Codex and Antigravity with configurable provider rotation.\nLocal Claude, Codex and Antigravity sources keep refreshing when CodexBar is absent, fails, or reports stale data. General settings\nprovide defaults; a widget's own options override them, including an empty provider selection.\nThe checked [CodexBar 0.84.0 release](https:\u002F\u002Fgithub.com\u002Fsteipete\u002FCodexBar\u002Freleases\u002Ftag\u002Fv0.84.0) supplies macOS and Linux\nCLI binaries. Windows continues to use native local sources when no compatible CLI is installed.\n\n**Native Antigravity quotas** use a running app\u002Fhub's advertised HTTP port and CSRF token, or a signed-in\n`agy` CLI (1.1.11 or later). The CLI fallback runs `agy -p \u002Fusage --output-format json`, without a model prompt,\nand also finds the standard Windows installation in `%LOCALAPPDATA%\\agy\\bin`. Run `agy` in your terminal to sign\nin if needed. The agent reads measured session and weekly buckets, plus the plan when the local server provides it;\nCLI reports without plan metadata keep the neutral Antigravity title. Older IDE servers can supply model quotas\nthrough `GetUserStatus`; unavailable measurements are skipped, and weekly limits are never invented. Refresh\nfailures retain the last measurements with an error. HTTPS-only endpoints without a compatible CLI can use CodexBar.\n\nTap an AI session to see its model, timing and token details. Token counters describe the local session rather than\nthe account allowance. Prompt\u002Fresponse text and tool arguments are not included in this panel data.\n\n## Layout editor & settings\n\nDouble-click the tray icon on Windows (or open \u003Chttp:\u002F\u002F127.0.0.1:8765>):\n\n\u003Cp align=\"center\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fsettings-editor.png\" width=\"900\" alt=\"The layout editor\">\u003C\u002Fp>\n\n- **Pages**: add pages from templates, reorder, show\u002Fhide, export and import them as files, choose how long each page\n  may stay before the panel goes home; arrange widgets on a phone-sized canvas (drag to move, drag\n  the corner to resize) and set their options. The widget palette is grouped by category and searchable.\n  **Live preview** swaps the canvas for the real panel with your unsaved changes and live data.\n- **Rules**: automations, see [Rules](#rules).\n- **Shortcuts**: add, edit, reorder and test keys (label, emoji, colour). A key runs a program, presses a key\n  combination (`ctrl+shift+m`), types text or runs a macro (keys, text, waits, other shortcuts); on \u002F off keys show\n  their state on the phone (mute does by itself, others from a pushed value).\n- **Webhooks**: the webhook key, copy-paste examples, test buttons and the values pushed so far.\n- **General**: weather location search; calendars (ICS links from Google, Outlook or iCloud), Home Assistant and OBS\n  connections; night mode; theme and accent colour, orientation (landscape, portrait or follow the phone), clock seconds,\n  vibration, volume-key paging and the phone's sensors (brightness that follows the room, the night screen when the\n  room goes dark, wave to wake it); [page switching](#rules) (home page, countdown, back home after);\n  kiosk options (screen pinning, the panel as the phone's home screen so it starts after a reboot, keep the phone\n  awake on the charger; no root needed); on macOS, optionally follow the computer lock (sleep the phone on lock,\n  wake it and open PhoneBox on unlock, with an ADB connection; phones secured by a PIN or password must be unlocked\n  manually). Lock sync needs the agent to run in the macOS GUI session; [battery care](#rules);\n  [Claude Code permission prompts](#claude-code-permission-prompts);\n  phones (several at once, each with its own pages); Wi-Fi & Tailscale; updates.\n- **Advanced**: the raw JSON.\n\nSettings live in `%APPDATA%\\PhoneBox\\config.json` (Linux: `~\u002F.config\u002FPhoneBox`, macOS: `~\u002FLibrary\u002FApplication Support\u002FPhoneBox`);\nthe phone picks up changes within a few seconds.\nUse UTF-8 when editing this file externally. Saved page and shortcut icons use JSON Unicode escapes to survive\nANSI-based editors; the settings editor displays the actual symbols. On startup, known double-encoded forms of\nthe four affected default icons are repaired, with the original file kept in `config.json.bak`.\n\n## Claude Code permission prompts\n\nWhen Claude Code asks for permission (run a command, edit a file, use an MCP tool…), the phone shows the request —\nproject, tool and the command or file — with **Allow** and **Deny**. Turn it on in **Settings › General › Claude Code\npermission prompts** and press *Install hook*: PhoneBox adds a `PermissionRequest` hook to `~\u002F.claude\u002Fsettings.json`\n(and keeps a backup next to it as `settings.json.phonebox.bak`). If the phone is not connected or nobody answers in\ntime, the hook returns no decision and Claude Code asks in the terminal as usual. Optionally only when you have been\naway from the keyboard for a minute.\n\n## Webhooks\n\nThe agent accepts data as well as serving it, so anything that can make an HTTP request can put things on the panel:\n\n```sh\ncurl -X POST http:\u002F\u002F127.0.0.1:8765\u002Fapi\u002Fpush\u002Ftemperature -d 21.5                     # shown by a \"Pushed value\" widget with key \"temperature\"\ncurl -X POST http:\u002F\u002F127.0.0.1:8765\u002Fapi\u002Fpush\u002Fbuild -H \"Content-Type: application\u002Fjson\" \\\n     -d '{\"value\":\"passed\",\"sub\":\"main · 3m 12s\"}'\ncurl -X POST \"http:\u002F\u002F127.0.0.1:8765\u002Fapi\u002Fpush\u002Fdoor?ttl=600\" -d open                    # expires after 10 minutes\ncurl -X POST http:\u002F\u002F127.0.0.1:8765\u002Fapi\u002Fnotify -H \"Content-Type: application\u002Fjson\" \\\n     -d '{\"title\":\"Deploy\",\"text\":\"Production is live\",\"level\":\"ok\",\"page\":\"feeds\"}' # toast + vibration (+ switch page)\ncurl -X POST http:\u002F\u002F127.0.0.1:8765\u002Fapi\u002Fgoto\u002Fmusic                                     # switch the phone to a page (id or number)\ncurl -X POST \"http:\u002F\u002F127.0.0.1:8765\u002Fapi\u002Fgoto\u002Fmusic?countdown=0\"                        # …without the on-screen countdown\ncurl -X POST http:\u002F\u002F127.0.0.1:8765\u002Fapi\u002Frefresh                                        # refresh quotas\u002FGitHub and the panel now (?reload=1 reloads it)\n```\n\n| Payload field | Meaning |\n|---|---|\n| `value`, `title`, `sub`, `unit`, `icon`, `color` | What the widget shows. Plain text or a number works too. |\n| `level` | `ok` \u002F `warn` \u002F `error` colours it; values like `passed`, `failed`, `running` are coloured automatically. |\n| `progress` | 0–1 or 0–100: a bar under the value, or the ring in gauge style. |\n| `items` | A list (strings or `{label, value, level}`) for the list style. |\n| `ttl` | Seconds until the value disappears (also `?ttl=`). |\n\nNotifications take `title`, `text`, `level`, `vibrate`, `seconds`, `wake` (light up the night screen) and `page`.\n`GET \u002Fapi\u002Fpush` lists the values and `DELETE \u002Fapi\u002Fpush\u002F\u003Ckey>` removes one; values survive restarts.\n\nFrom this PC no key is needed. With Wi-Fi on, other machines on the network or Tailscale can use the same endpoints\non `https:\u002F\u002F\u003Cpc>:8766` with the **webhook key** from the settings (`Authorization: Bearer \u003Ckey>`, or `?token=\u003Ckey>`\nfor senders that cannot set headers). That key opens only the webhook endpoints, never the phone API.\n\n## Rules\n\n**Settings › Rules** lets the panel react to what happens on the computer. Each rule is *when → then*:\n\n| When | Then |\n|---|---|\n| an AI session needs you \u002F is working (optionally for some projects) | show a page |\n| music or video plays (optionally in some apps: `Spotify\\|Music`) | show a notification (`{detail}` = what happened) |\n| an app is running (`zoom\\|Teams\\|obs64`) | push a value (e.g. `onair`, shown by a Pushed value widget) |\n| the microphone \u002F the camera is in use (Windows, Linux) | |\n| a calendar event is on (optionally by title) | |\n| OBS is recording or streaming | |\n| the CPU stays above a percentage for 15 s | |\n| you have been away from the keyboard for N minutes | |\n| it is between two times (`22:00-07:00`) | |\n| a pushed value is on, or above \u002F below \u002F equal to a value (a webhook from Home Assistant, a doorbell…) | run a shortcut |\n| an AI quota is above a percentage | |\n| a GitHub review is requested · CI fails on my pull request | |\n| a device battery is low · the network is slow or unreachable | |\n| always (with the days and hours below, for schedules) | |\n\nEvery rule can also be limited to **some days** and **some hours**, act only when its condition **lasts N seconds**,\n**rest** for a while before acting again, and has a **priority** and its own **countdown** for page switches.\n\n**Page switches are calm.** The phone counts down before a rule changes the page (*\"Claude needs me — switching to\nAI in 3…\"*, tap **Stay** to keep the page or **Go now**), waits while you are using the panel, keeps a minimum time\nbetween two automatic switches and lets the higher-priority rule go first; rules that end before their turn are\ndropped, so a burst of rules never bounces the screen back and forth. Settings › General › Page switching sets the\ncountdown, how long to wait after a touch, the minimum time between switches, the home page and how long a rule may\nkeep its page. The phone's overview (and the Rules widget) pauses all rules for an hour.\n\nWith **only while it lasts**, the effect ends with the condition: the phone goes back to the page it was on (unless\nyou moved on yourself) and stays on the rule's page instead of returning home when idle; a pushed value is removed\nagain. The editor starts from examples (Claude needs me → AI page, music → Music page, on air during calls, CPU busy,\naway → Ambient, evenings → Calm, doorbell, quota warning, review requested, CI failed, workday mornings, low battery,\ntoo warm) and has a Test button for each rule.\n\n**Battery care** (Settings › General) keeps the phone's battery between two levels, 50–80 % by default, so a panel\nthat is always plugged in lasts longer. Phones cannot stop charging without root, so PhoneBox switches the power\nwhere it comes from: a smart plug in Home Assistant, or two shortcuts (for example `uhubctl` for a USB hub with\nswitchable ports). The panel keeps running over Wi-Fi while the USB power is off.\n\n## Wi-Fi & Tailscale\n\nTurn on **Settings › General › Wi-Fi & Tailscale**, restart the agent when asked, and plug the phone in once. Over\nUSB the phone receives the PC's addresses, a secret key and the fingerprint of the agent's self-signed TLS\ncertificate. When the cable is unplugged it switches to `https:\u002F\u002F\u003Cpc>:8766` automatically and back to USB when it is\nplugged in again; the status line shows which one it uses.\n\n- The phone and the PC need to be on the same network. If they are not (separate Wi-Fi networks, another\n  building…), install [Tailscale](https:\u002F\u002Ftailscale.com) on both: the agent offers its Tailscale address too.\n- Windows Firewall asks once when Wi-Fi is turned on; allow it for the network types you use.\n- The screen stays on, so the phone still needs a charger — just not necessarily the PC.\n\nWith several computers (each paired once over USB), the page overview on the phone lists them and switches between\nthem over Wi-Fi.\n\n## Updates\n\nThe agent checks the latest GitHub release every 6 hours (or **Settings › General › Updates › Check now**) and, with\nautomatic updates on, installs the new APK on the phone with `adb install -r` while it is plugged in (no prompt on the\nphone; over Wi-Fi the panel shows \"plug in USB to update\") and replaces its own files, then restarts. Android only\naccepts an update signed with the same key as the installed app; the agent never uninstalls to force one.\nWhen GitHub turns away anonymous requests (it answers 503 \u002F 504 now and then), the agent asks again with the\n[GitHub CLI](https:\u002F\u002Fcli.github.com)'s token if `gh` is signed in; the token only goes to `api.github.com`.\nSee the [changelog](CHANGELOG.md).\n\n## How it works\n\n```mermaid\nflowchart LR\n  subgraph Phone[\"Android phone\"]\n    UI[\"Panel UI\u003Cbr\u002F>(WebView, assets\u002Fwww)\"] -->|\"\u002Fagent\u002F*\"| Proxy[\"Native proxy\u003Cbr\u002F>(AgentLink)\"]\n    UI -->|weather, rates, HN| Web((\"Public APIs\"))\n  end\n  subgraph PC[\"Windows \u002F Linux \u002F macOS\"]\n    Agent[\"PhoneBox agent\u003Cbr\u002F>(.NET 10)\"]\n    Agent --- Mon[\"System, GPU, media, volume,\u003Cbr\u002F>processes, sessions, quotas, GitHub\"]\n    Agent --- Set[\"Settings page &\u003Cbr\u002F>layout editor\"]\n  end\n  Proxy -->|\"USB: adb reverse → 127.0.0.1:8765\"| Agent\n  Proxy -.->|\"Wi-Fi \u002F Tailscale: HTTPS :8766,\u003Cbr\u002F>pinned certificate + key\"| Agent\n  Hooks[\"Scripts, CI,\u003Cbr\u002F>Home Assistant\"] -->|webhooks| Agent\n```\n\n- The WebView never talks to the PC directly: requests to `\u002Fagent\u002F*` are intercepted by the app and forwarded over\n  the adb tunnel (or the pinned HTTPS connection), so there are no CORS, mixed-content or local-network issues.\n- Live events (page switches, notifications, permission prompts) arrive over one server-sent-events stream\n  (`\u002Fapi\u002Fstream`); plain polling remains as the fallback.\n- The agent samples only what is on screen: process lists and command widgets run only while a phone looks at them.\n\n## Security & privacy\n\n- The agent listens on `127.0.0.1` only. Requests with a foreign `Host` header (DNS rebinding) or a cross-site\n  `Origin` (CSRF) are rejected; only the settings page itself is accepted from browsers.\n- The optional Wi-Fi port (8766) only serves the panel API, only over TLS pinned to the paired certificate, and only\n  with the paired key. Settings, shortcut tests and pairing stay local. **New key** in the settings unpairs all phones.\n- The phone only ever sends a shortcut **id**; commands are defined on the PC. Command widgets work the same way:\n  the phone asks for a widget's output and never sees the command.\n- Webhooks from other machines need the separate webhook key, which cannot open the phone API and can be replaced\n  on its own.\n- Ending processes is limited to your own session, never touches a list of Windows-critical processes, and can be\n  switched off in the processes widget's options.\n- **Claude Code permission prompts** are opt-in. The hook only posts the request to the agent on `127.0.0.1`; the\n  phone can only answer allow or deny for that one request.\n- **Claude quota:** read with the OAuth token Claude Code stores in `~\u002F.claude\u002F.credentials.json`, sent only to\n  `api.anthropic.com\u002Fapi\u002Foauth\u002Fusage` (the endpoint behind Claude Code's `\u002Fusage`). The token is read-only: PhoneBox\n  never refreshes it, so it can't interfere with Claude Code. This endpoint is undocumented and may change.\n- **Codex quota and sessions** are read from local files in `~\u002F.codex\u002Fsessions`; Claude Code sessions from\n  `~\u002F.claude\u002Fsessions`. Nothing leaves your machine except the requests listed above.\n- **Native Antigravity quota:** the agent reads the running Antigravity server's port and CSRF token from its\n  process arguments and queries its loopback quota\u002Fstatus API, or invokes the signed-in CLI's structured usage\n  command. Only measured quota fields reach the panel; CLI conversation identifiers and token counters are omitted.\n  PhoneBox does not manage Google OAuth credentials; the CLI uses its own authentication. CLI auto-updates are\n  disabled for these probes.\n\n## FAQ & troubleshooting\n\n\u003Cdetails>\u003Csummary>\u003Cb>The panel says \"PC not connected\".\u003C\u002Fb>\u003C\u002Fsummary>\n\nIs the agent running (tray icon)? Run `adb devices`: the phone must be listed as `device`, not `unauthorized` —\naccept the USB debugging prompt on the phone. If several devices are connected, pick the phone under\n**Settings › General › Phone connection**. Over Wi-Fi, pair once over USB and allow the agent in Windows Firewall.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\u003Csummary>\u003Cb>The phone keeps dropping off USB.\u003C\u002Fb>\u003C\u002Fsummary>\n\nThe panel carries on over Wi-Fi when Wi-Fi is on, and **Settings › General › Phone connection** says what the phone\nitself sees: if it is charging but has no USB data connection, the cable or the port only carries power — try another\ncable, or a port straight on the computer instead of a hub or a front-panel port. Updates of the phone app need USB.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\u003Csummary>\u003Cb>Some widgets show \"—\" or \"No data\".\u003C\u002Fb>\u003C\u002Fsummary>\n\nGPU values need an NVIDIA GPU (`nvidia-smi`) on Windows or Linux, or an Apple silicon Mac exposing GPU utilization through IORegistry. CPU temperature needs LibreHardwareMonitor's web server on port 8085,\nGitHub needs `gh auth login`, quotas and sessions need Claude Code \u002F Codex to have been used on this PC.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\u003Csummary>\u003Cb>I want the volume keys to change the phone's volume.\u003C\u002Fb>\u003C\u002Fsummary>\n\nTurn off **Settings › General › Display › The phone's volume keys switch pages**.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\u003Csummary>\u003Cb>The update was not installed on the phone.\u003C\u002Fb>\u003C\u002Fsummary>\n\nApp updates need USB (Android installs them through adb without a prompt). They also need to be signed with the same\nkey as the installed app — if you built the app yourself, keep using your own release key.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\u003Csummary>\u003Cb>Can I use it without root?\u003C\u002Fb>\u003C\u002Fsummary>\n\nYes. PhoneBox needs no root on the phone and no admin rights on the PC.\n\u003C\u002Fdetails>\n\n## Development\n\nUse the .NET 10 SDK for the agent, JDK 17 and Android SDK Platform 35 for Android builds, and Python 3 plus\nNode.js 22 for the browser tooling. The Gradle wrapper downloads Gradle automatically.\n\n```powershell\npython tools\u002Fdemo-server.py                  # the web demo from source: http:\u002F\u002F127.0.0.1:8790\u002Fpanel\u002F and \u002Fsettings\u002F\npython tools\u002Fcheck-release.py                # release versions and widget\u002Ftemplate catalog consistency\ndotnet test agent\u002FPhoneBox.Agent.Tests       # agent unit tests\ncd tools\u002Fui-tests\nnpm ci\nnpx playwright install chromium             # first run; on Linux CI use --with-deps chromium\nnpx playwright test                         # builds and serves its own demo on port 8781\ncd ..\u002F..\ncd tools\u002Fui-tests; node media.js tour; cd ..\u002F..         # README media from the running demo: shots \u003Cpage>… | tour | hero\n.\\scripts\\build.ps1                          # APK + five agent archives (Windows, Linux and macOS) in dist\u002F\ncd android; .\\gradlew.bat assembleDebug; cd .. # APK only\ndotnet run --project agent\u002FPhoneBox.Agent -f net10.0-windows10.0.19041.0 # Windows agent from source\npwsh tools\u002Fmake-icon.ps1                     # regenerate the .ico\n```\n\nOn Linux or macOS, run the agent with `dotnet run --project agent\u002FPhoneBox.Agent -f net10.0` and build the APK\nwith `cd android && .\u002Fgradlew assembleDebug`. On Windows, the explicit `-f` selects one of the project's two\ntarget frameworks.\n\nThe demo server needs only Python. It serves the same demo as the [live one](https:\u002F\u002Fersinkoc.github.io\u002Fphonebox\u002F)\n(made-up data in [`tools\u002Fpages\u002Fdemo.js`](tools\u002Fpages\u002Fdemo.js)) straight from the sources, so a reload shows your\nchanges. Size the browser window to 780 × 360 (the phone's screen in CSS pixels) and the panel behaves as on the\nphone, including webhooks: `curl -X POST http:\u002F\u002F127.0.0.1:8790\u002Fapi\u002Fnotify -d hello` (also `\u002Fapi\u002Fpush\u002F\u003Ckey>`,\n`\u002Fapi\u002Fgoto\u002F\u003Cpage>` and `\u002Fapi\u002Fask` for a made-up permission prompt).\n\nThe panel is plain ES modules: [`main.js`](android\u002Fapp\u002Fsrc\u002Fmain\u002Fassets\u002Fwww\u002Fmain.js) (core, pages, navigation, data\nfrom the agent) and the widgets in [`widgets\u002F`](android\u002Fapp\u002Fsrc\u002Fmain\u002Fassets\u002Fwww\u002Fwidgets). A widget is a\n`{ needs, create(box, ctx) → { update(kind) } }` entry in the `W` registry, plus its styles in `style.css` and its catalogue entry\n(name, size, options) in [`widgets.json`](agent\u002FPhoneBox.Agent\u002Fwidgets.json), which drives the settings editor.\nTemplates live in [`templates.json`](agent\u002FPhoneBox.Agent\u002Ftemplates.json).\n\nTo check a development agent beside an installed one, run it with an isolated settings file and port, for example\n`PhoneBoxAgent.exe --config \"D:\\test folder\\config.json\" --port 18765`. Settings and browser checks use\n`http:\u002F\u002F127.0.0.1:18765\u002F`; restarts preserve these arguments. The ordinary port remains 8765. Set `deviceSerial`\nexplicitly in the test settings (an unmatched serial disables USB attachment) and turn off automatic updates.\nUSB clients still use phone port 8765; do not assign the same phone to two agents at once.\n\nRelease APKs are signed with your own key when `PHONEBOX_STORE_FILE`, `PHONEBOX_STORE_PASSWORD`, `PHONEBOX_KEY_ALIAS`\nand `PHONEBOX_KEY_PASSWORD` are set (in `~\u002F.gradle\u002Fgradle.properties` or the environment); otherwise the debug key\nis used. Debug builds make the WebView debuggable through `chrome:\u002F\u002Finspect`. To publish a release: bump the\nversion in `PhoneBox.Agent.csproj` and `android\u002Fapp\u002Fbuild.gradle.kts`, commit, then run `.\\scripts\\release.ps1`.\nThe script dispatches the gated GitHub release workflow; see [the release checklist](docs\u002FRELEASING.md).\n\n## Extras\n\n[`extras\u002Fumidigi-bison`](extras\u002Fumidigi-bison) has the reversible, no-root tune-up (debloat list, settings) used on\nthe phone PhoneBox was built for.\n\n## License\n\n[MIT](LICENSE)\n","PhoneBox 是一款将闲置安卓手机改造为本地化桌面控制面板的跨平台工具，支持 Windows、Linux 和 macOS。其核心功能包括：113 个可配置小部件（如系统监控、AI 编程配额追踪、媒体控制、天气日历等）、Smart Stack 智能页面切换、基于 USB 或配对 Wi-Fi 的零云端通信、Stream Deck 风格快捷键及 Webhook 规则引擎。所有数据处理均在本地完成，不依赖外部服务。适用于希望复用旧设备打造隐私优先、低延迟、高定制化桌面信息中枢的开发者、AI 工程师及效率爱好者。",2,"2026-11-24 04:40:06","CREATED_QUERY"]