tychicus
README.md
# Local Studio: browser and computer use
[](https://github.com/baney75/tychicus/actions/workflows/ci.yml)
[](LICENSE)
This is the part of Local Studio that gives AI agents browser use and computer use: a Chromium
extension, a CLI helper and an MCP server. Claude Code, Codex, pi or any MCP client drives your real browser through it,
in background tabs of its own, while you keep working. The computer-use tools reach desktop apps
through a platform driver.
It works with or without the Local Studio desktop app and ships three ways: as the app's default
plugin, as this Chrome extension, and as a standalone helper. When the app runs, the side panel
chats through its Eukhe daemon, on your local models and the subscriptions you signed in to there,
without the extension holding any API key (see below). The rest of the CLI and the outside-agent
tools work as they did in Polycarp.
The command, the MCP server, the native host, the services, the folders and this repository still
use an earlier name, `tychicus`.
## How the panel reaches models
When Local Studio runs, the side panel's default provider is **Local Studio**, and the first run
asks for no key. The panel sends each chat to the `tychicus` native host over Chrome native
messaging; the host passes it to Local Studio's Eukhe daemon on its local socket, and each panel
chat becomes a Eukhe session of its own. The daemon runs the model and streams the answer and its
tool steps back to the panel. Stop sends Abort to that session.
- **No keys in the extension.** The extension never sees a key or a sign-in token. Local models
need none; subscriptions are signed in inside Local Studio, with `eukhe` and its `/login`
command (ChatGPT, Claude, Copilot and others). The model picker lists local models first, then
the signed-in subscriptions, each labeled.
- **The browser tools come back through the plugin.** `tychicus install --local-studio` gives
Eukhe the `tychicus` tool server, so the session reads and acts on your tabs with the small tool
list.
- **A page can't make a panel chat change your files.** Each panel session works in an empty
private folder, and only reads there run unasked (Eukhe's `shell.autoEffects`, for that session
alone); the panel says no to every command and write. If Local Studio won't take the limit, the
chat does not start.
- **Only this extension.** The host answers only the pinned extension ID and exits for
any other caller before it reads a message.
- **When Local Studio is not running**, a chat on it says so and how to fix it (start Local
Studio, or run `eukhe` in a terminal) within a few seconds, instead of waiting. Local Studio
chats are not on Windows yet.
- **API keys are still there.** On the first run, "Use an API key instead" opens the provider
keys, and every key provider stays in the model picker.
## Provider terms
Driving a consumer subscription (a chat plan you pay for as a person) through automation may
break that provider's terms of service. Some providers allow it, some forbid it, and terms
change. Local Studio does not decide this for you. Read your provider's terms and decide whether to
connect a subscription; API keys under a developer agreement are the safer route where terms
are unclear.
## Install
You need a Chromium 141+ browser (Helium, Chrome, Brave, Edge or Chromium). Nothing else: the
`tychicus` program in each release carries its own runtime.
On macOS or Linux, in a terminal:
```bash
curl -fsSL https://github.com/baney75/tychicus/releases/latest/download/install.sh | sh
```
On Windows, in PowerShell:
```powershell
irm https://github.com/baney75/tychicus/releases/latest/download/install.ps1 | iex
```
The command downloads the archive for your computer and `SHA256SUMS` from the latest release,
checks the archive's SHA-256, checks its build attestation with `gh attestation verify` when the
[GitHub CLI](https://cli.github.com) is installed and signed in (and says so when it isn't; `gh auth
login` turns the check on), then runs the
release's own `tychicus install --release`, which checks again and registers the helper. It needs
no sudo and refuses to run as root or administrator unless you pass `--allow-root`. On macOS and
Linux it links `~/.local/bin/tychicus` to the installed release, so `tychicus` works in a new
terminal; it says so when `~/.local/bin` isn't on your PATH or another `tychicus` comes first, and
asks before replacing a `tychicus` there that isn't the helper's (without a terminal it leaves it and
prints the `ln -sf` command).
`TYCHICUS_VERSION=1.2.3` installs that release instead of the latest, and options after
`sh -s --` go to the installer: `curl -fsSL <address above> | sh -s -- --local-studio`. Releases
are built for macOS on Apple silicon, Linux x64 and Windows x64.
Then load the extension as step 3 below says. Once the extension is listed on the Chrome Web Store,
that copy works too: its welcome screen shows the command for your computer with a Copy button,
and shows the helper connected once the command has run.
### Install from a release by hand
1. From the [latest release](https://github.com/baney75/tychicus/releases/latest), download
`SHA256SUMS` and the archive for your computer (`tychicus-<version>-linux-x64.tar.gz`,
`-darwin-arm64.tar.gz` or `-win-x64.zip`) into one empty folder.
2. In that folder, unpack it and run its installer:
```bash
tar -xzf tychicus-*.tar.gz && ./tychicus-*/tychicus install --release .
```
On Windows, in PowerShell: `tar -xf tychicus-<version>-win-x64.zip` and then
`.\tychicus-<version>-win-x64\tychicus.exe install --release .`
The installer checks every file against `SHA256SUMS`, and against its build attestation when
the [GitHub CLI](https://cli.github.com) is installed and signed in, and refuses the whole
install on any mismatch. A gh that isn't signed in can't run the check, so the installer says
so and checks the sums only. It unpacks each version into a folder of its own under
`~/.local/share/tychicus/versions/` (`%LOCALAPPDATA%\Tychicus\versions\` on Windows), registers
the native host with each Chromium browser it finds, then points `release` at the new version
and copies the extension to the fixed folder `~/.local/share/tychicus/extension`. An upgrade
never deletes a version a running host or MCP server was started from; the old folder is
removed by a later install, once nothing runs from it. On a Mac it also copies the computer-use helper,
`tychicus-hands`, to `~/.local/bin` (`hands/mac/README.md` says what to allow in Accessibility). Add `--local-studio` to also install the
Local Studio plugins and their Eukhe tool server; `--dry-run` lists what it would write and
writes nothing.
3. Load the extension: open `chrome://extensions`, turn on Developer mode, choose **Load
unpacked** and pick the folder the installer printed. Its ID is fixed by the manifest key, so
the host registration already allows it.
Then connect your agents: `tychicus setup --agents` (or point one at it yourself, for example
`claude mcp add --scope user tychicus -- ~/.local/share/tychicus/release/tychicus mcp`).
CI's `clean-install` job runs the one command and these steps from an empty home folder on every
pull request, and fails if the steps grow past three, if the command takes more than 60 seconds
to the first page read, or if a changed file is accepted.
## Build and load the extension
You need Node 22 or newer, git, and a Chromium 141+ browser (Helium, Chrome, Brave or Chromium).
```bash
git clone https://github.com/baney75/tychicus && cd tychicus
./scripts/setup-siblings.sh # clones pinned pi-mono and mini-lit into vendor/, patches, installs
npm run build # writes the unpacked extension to dist-chrome/
(cd cli && npm run build && npm link)
```
Load it by hand: open `chrome://extensions`, turn on Developer mode, choose **Load unpacked**
and pick the `dist-chrome/` folder. Then register the native host and connect your agents:
```bash
tychicus setup # or: tychicus doctor
claude mcp add --scope user tychicus -- tychicus mcp
```
The extension ID (`igjafcggmahiboobmnhfkndodphjdnhg`) comes from the manifest key and
differs from Polycarp's, and the native host is `com.tychicus.browser`, so the extension and Polycarp
can be installed side by side without either one answering for the other.
### The helper keeps to its own files
The helper never writes to Polycarp's files. It has its own config folder (`~/.config/tychicus`),
data and cache folders, launchers (`tychicus`, `tychicus-host`), native host
(`com.tychicus.browser`), socket folder (`/tmp/tychicus-bridge-<user>`), service names
(`com.tychicus.serve`, `tychicus-serve.service` and so on) and MCP entry (`tychicus`). The npm
package installs only the `tychicus` command; `polycarp` and `polycarp-browser` stay Polycarp's.
Polycarp's folders, launchers, host manifest, MCP entry and permission rules are left as they are,
and so are the older `tabkyra` folders Polycarp moves itself.
### Upgrading from a build with the old ID
Builds before the manifest key ran under Polycarp's extension ID, `kenehmggpggpiolepbjojeenmeapgfoc`.
The browser keeps each extension's chats, API keys, skills and settings under its ID, so the new
ID, `igjafcggmahiboobmnhfkndodphjdnhg`, starts empty: nothing carries over by itself.
Removing the old extension deletes everything stored under it. In this order:
1. While the old extension is still loaded, save the chats you want with the helper that came
with that build: `polycarp-browser threads list`, then
`polycarp-browser threads export <id> --out <file>` for each one. The new `tychicus` command
talks only to the new extension. The on-disk thread mirror, if you turned it on, also keeps
them.
2. Write down which providers you use; API keys are not exported, so you enter them again.
3. Load the new build. It appears as a second extension with the new ID.
4. Enter your keys and settings in the new one, and check it works.
5. Only then remove the old extension.
## Checks
```bash
./check.sh # biome, tsc, theme check, extension and CLI unit tests, skill lint
(cd cli && npm run bench:dom) # 44-page DOM benchmark against cli/test/dom-bench/floor.json
```
CI runs the same on every push and pull request (`.github/workflows/ci.yml`), plus the headless
end-to-end tests.
## Platforms
macOS and Linux run the extension, the CLI and the MCP server. Native app control on Linux comes
from `tychicus-hands` ([hands/linux/README.md](hands/linux/README.md)), a static helper you build and put in
`~/.local/bin`; it works through AT-SPI in the background and never sends physical input. The
release archive does not carry it yet. [docs/LINUX.md](docs/LINUX.md) covers the rest of Linux.
## More
- [GUIDE.md](GUIDE.md): the full user guide (sessions, skills, library, remote MCP, safety model).
- Feed filters: ask any agent "hide every post about crypto on x.com" or "remove Shorts from YouTube" and it calls
`site_filter`; the filter stays on every visit, shows a count you can click, and is undone in Settings > Sites
([GUIDE.md, Site edits and feed filters](GUIDE.md#site-edits-and-feed-filters)).
- [docs/](docs/README.md): design notes and references.
- [CONTRIBUTING.md](CONTRIBUTING.md) and [SECURITY.md](SECURITY.md).
## Remote access
`tychicus remote setup` makes the MCP server reachable from claude.ai, ChatGPT and grok.com through a relay
on your own free Cloudflare account, Tailscale Funnel or your own Cloudflare tunnel; [docs/remote.md](docs/remote.md) has every step.
### Moving a connector from Polycarp
If Polycarp's browser helper already serves your connector (for example `https://polycarp.example.com/mcp`), move it
once with:
```bash
tychicus remote import-polycarp --dry-run # lists each file, the folder it comes from, and each service swap
tychicus remote import-polycarp
```
It reads Polycarp's services (`com.polycarp.serve`, `.cloudflared`, `.hub`, `.link`) to learn which folder each one
uses, `<config>/polycarp/browser`, the older `<config>/tabkyra`, or one its service file names, and copies the remote,
OAuth, token, hub and tunnel files into `<config>/tychicus` (private, 0600), moving any path inside them that pointed
into a Polycarp folder. Tunnel credentials under a Polycarp folder are copied; ones in `~/.cloudflared` stay put. The
hostname, tunnel and sign-ins are kept, so the connector needs no change in claude.ai, ChatGPT or grok.com. Nothing under
Polycarp's folders is changed or deleted.
Then it swaps each service in turn: Polycarp's stops, the helper's starts and must answer (serve: `GET /mcp` on this
computer returns 401), or Polycarp's comes back, the copy is undone and the command exits 1 with the reason. On success
Polycarp's plists move to `~/Library/LaunchAgents/retired-polycarp/` (Linux: its units are disabled, not deleted), and it
reads back which services are loaded. It refuses when the helper already has remote state; `--force` replaces it after
saving the helper's files to a `pre-import-<time>` folder. `tychicus install` prints a hint to run it when Polycarp has a
`remote.json` and the helper doesn't.
## Moved from Polycarp
This repository is the `browser/` folder of [baney75/polycarp](https://github.com/baney75/polycarp)
at commit `4d1b9443` ("Dock: keep each tile's icons in join order, not by last use (#416)"),
moved to the root with its full history, including the earlier `baney75/tabkyra` history that
Polycarp merged in. Polycarp's other folders (spaces, voice, cli, core) stay there.
## Credits
The agent bridge is the work of [0xSero](https://github.com/0xSero)
([0xSero/sitegeist](https://github.com/0xSero/sitegeist)). The extension is
[Mario Zechner](https://github.com/badlogic)'s [Sitegeist](https://github.com/badlogic/sitegeist),
built on his [pi](https://github.com/badlogic/pi-mono) and
[mini-lit](https://github.com/badlogic/mini-lit) libraries. Details are in
[GUIDE.md](GUIDE.md#credits) and [docs/fork-changes.md](docs/fork-changes.md).
## License
[AGPL-3.0](LICENSE), unchanged from Polycarp's `browser/` folder and from upstream. If you run a
modified version for others over a network, the AGPL asks you to offer them its source. The
Polycarp name and logo (in Polycarp's `brand/` folder) are not covered by this license.
This server cannot be deployed
Maintenance
ActivityActive
ResponsivenessNo recent community issues