Install, configure, and run the Bridge
Install, configure, update, and run the Sesori Bridge CLI on macOS, Linux, or Windows.
The Sesori Bridge runs beside your code and AI coding assistants. It connects them to the mobile app through Sesori's encrypted relay.
The packaged Bridge supports macOS, Linux, and Windows on x64 and arm64 computers.
1. Install the Bridge
curl -fsSL https://sesori.com/install.sh | bashThe installer places the Bridge under ~/.local/share/sesori/ and creates the launcher ~/.local/bin/sesori-bridge. It may add ~/.local/bin to a Bash, Zsh, or Fish profile when that directory is not already on PATH.
Open PowerShell and run:
irm https://sesori.com/install.ps1 | iexThe installer places the Bridge under %LOCALAPPDATA%\sesori\ and adds its bin directory to your user PATH.
Inspect the installer before running
These steps download the same installer to the current directory so you can review the exact file before executing it:
curl -fsSL https://sesori.com/install.sh -o sesori-install.sh
less sesori-install.sh
bash sesori-install.sh
rm sesori-install.shInvoke-WebRequest https://sesori.com/install.ps1 -OutFile .\sesori-install.ps1
Get-Content .\sesori-install.ps1
& .\sesori-install.ps1
Remove-Item .\sesori-install.ps1If PowerShell policy blocks the reviewed local script, follow your organization's execution policy rather than lowering it solely for this installation.
Install with npm
If Node.js is installed, npm can bootstrap or refresh the same managed Bridge installation:
npx @sesori/bridgenpx @sesori/bridge installs the Bridge but does not start it or pass Bridge arguments to it. Run sesori-bridge after the installer finishes. The bootstrap itself accepts --force (-f) to reinstall and --help (-h) to show its options.
npx resolves code from the npm registry at execution time. Review the @sesori/bridge package and use an approved version when your environment requires reproducible installation.
Verify the installation
Open a new terminal, then run:
If the command is not found, run the managed binary directly:
2. Start and sign in
On first run, choose GitHub, Google, Apple, or email sign-in. OAuth options open or print a browser URL; email sign-in continues in the terminal. The Bridge then registers with the relay, checks the harnesses on this computer, and waits for the app.
There is no --login option. To change accounts, run sesori-bridge logout, then start the Bridge again.
3. Keep it running
The Bridge is a foreground process. It and the computer must remain running, awake, and online for remote sessions to work. The Bridge prevents ordinary idle sleep by default, but closing a laptop lid can still put the computer to sleep.
Press Ctrl+C to stop the Bridge cleanly.
4. Check the connection
Open Sesori and sign in with the same account. The Bridge indicator turns green when the app can reach it. If it remains offline, use Troubleshooting.
Bridge CLI commands
The run command is the default, so sesori-bridge and sesori-bridge run both start the Bridge.
Everyday commands
sesori-bridge
Start the Bridge and sign in if needed
sesori-bridge --version
Print the installed version
sesori-bridge --help (-h)
Show the global command overview
sesori-bridge run --help
Show run and harness-specific options
sesori-bridge logout
Clear saved Sesori authentication
sesori-bridge update
Install the latest eligible release on the configured track, then exit
sesori-bridge update --force (-f)
Reinstall the latest release on the track, even if it is already installed
Configuration commands
sesori-bridge config plugins
List harness plugins and whether each is eligible
sesori-bridge config plugins enable <id>
Enable a harness plugin; restart the Bridge to apply
sesori-bridge config plugins disable <id>
Disable a harness plugin; restart the Bridge to apply
sesori-bridge config yolo
Show whether Bridge-wide automatic approval is enabled
sesori-bridge config yolo off
Restore permission prompts
sesori-bridge config track
Show the current release track
sesori-bridge config track stable
Follow public stable releases
sesori-bridge config track internal
Follow stable and Sesori internal prereleases
sesori-bridge config edit
Open the Bridge configuration file in your default editor
Valid plugin IDs are opencode, codex, copilot, cursor, claude, hermes, pi, omp, deepseek, and grok.
The public release track is stable. The internal track is for Sesori development builds and is not recommended for normal use.
Run options
--data-dir <path>
Platform Sesori data directory
Override account-bound tokens, Bridge ID, and database data
--log-level <level>
info
Set verbose, debug, info, warning, or error logs
Diagnostic logs go to stderr. Sign-in prompts, authorization links, and startup status remain visible on stdout at every log level.
Every harness also accepts a binary override:
OpenCode
--opencode-bin and the server options below
Codex
--codex-bin, --codex-port
GitHub Copilot
--copilot-bin
Cursor
--cursor-bin, --cursor-api-endpoint
Claude Code
--claude-bin
Hermes Agent
--hermes-bin
Pi
--pi-bin
Oh My Pi
--omp-bin
DeepSeek
--deepseek-bin
Grok Build
--grok-bin
Passing a custom binary path makes that local installation authoritative and disables managed installation for that harness. Run sesori-bridge run --help for the complete generated option reference.
Advanced: attach to an existing OpenCode server
The recommended default is to let the OpenCode plugin start and manage its own server. External attachment gives the Bridge less control over the server's authentication, transport, and lifecycle. Follow OpenCode's official server documentation and keep the server bound to loopback.
After starting an intentionally unauthenticated loopback server under your own process manager, attach with the namespaced options:
Password-protected attachment
OpenCode supports a server password, and attachment mode accepts the matching value through --opencode-password. Sesori does not recommend a password recipe here because the Bridge currently accepts that secret only as a process argument, where another local user may be able to inspect it. There is no fully secret-safe attachment form until the Bridge supports a non-argument credential source. Prefer managed mode when local-process trust is a concern.
The default host is 127.0.0.1. Keep direct attachment on loopback: OpenCode uses HTTP, and Basic authentication does not encrypt the password or session traffic. To reach OpenCode on another computer, use an encrypted tunnel and attach the Bridge to the tunnel's loopback endpoint rather than exposing the server directly.
In managed mode, setting --opencode-host 0.0.0.0 exposes the Basic-auth server to the local network and has the same transport limitation. Never expose an unauthenticated OpenCode server to a network.
An attached server remains externally managed. Sesori can refresh its setup status, but it will not start, stop, restart, suspend, or clean up that OpenCode process.
Configuration file
sesori-bridge config edit opens ~/.config/sesori/config.json. Relevant settings include sleep prevention, Bridge-wide YOLO mode, and the release track:
You can also configure plugin idle timeouts. Plugin-specific values override default; omitted values use 45 minutes, and zero means never idle-stop:
Prefer the app or the config commands for settings they expose. Restart the Bridge after changing plugin eligibility, YOLO mode, or the release track.
Updates
Managed installations check for updates at startup and every four hours while running. An update discovered during a run is applied after the Bridge restarts. Check and install immediately with:
Use sesori-bridge update --force for a repair or when the updater recommends reinstalling. It reinstalls the latest release for the selected track and can move an internal build back to stable when the configured track is stable.
Automatic checks are skipped in CI or when SESORI_NO_UPDATE=1 is set. The shell and npm installers always install the latest stable release, regardless of the configured track.
Remove the managed installation
First stop every running Bridge instance, then attempt to unregister this Bridge and clear its saved authentication:
If you started the Bridge with --data-dir <path>, stop that process and instead run sesori-bridge logout --data-dir <path>. Verify and remove the custom account-data directory separately, in addition to removing the managed installation shown below.
Delete the managed installation and, on macOS or Linux, its launcher:
Open a new terminal after removing the Windows PATH entry. On macOS or Linux, the installer may have added a generic ~/.local/bin entry to a shell profile; the commands above leave it in place because other tools may use that directory. Remove that profile line manually only when it is no longer needed. The configuration file under ~/.config/sesori/ remains unless you remove it separately. Removing the npm package alone does not remove the managed Bridge directory.
Prompt attachment files use a separate shared directory and are not removed by these commands: ~/Library/Application Support/Sesori Attachments on macOS; $XDG_DATA_HOME/sesori-attachments on Linux when XDG_DATA_HOME is absolute, otherwise ~/.local/share/sesori-attachments; and %LOCALAPPDATA%\Sesori Attachments on Windows. Delete that directory only when no other Bridge data directory references its files.
Next
Last updated