@void229/t4open
v0.1.2
Published
Launcher for exposing OpenCode over a Tailscale tailnet
Downloads
267
Maintainers
Readme
t4open
Private Tailscale launcher for OpenCode.
It verifies Tailscale, verifies OpenCode auth, starts OpenCode on your tailnet address, and gives you either:
- the browser UI over your tailnet
- the OpenCode terminal UI in a new terminal window
Traffic stays private to your tailnet. t4open does not use Tailscale Funnel.
Install
bunx @void229/t4open
# or
npx @void229/t4open
# or
npm install -g @void229/t4open
# then
t4openThe installed binary is t4open.
Requirements
- Tailscale installed and signed in
- OpenCode installed and authenticated with at least one provider
macOS
- Tailscale: install the Tailscale app and sign in
- OpenCode: make sure
opencodeis available on yourPATH - Terminal mode can launch into
cmux, Ghostty, WezTerm, kitty, or Terminal.app
Linux
- Tailscale: install the
tailscaleCLI/package and sign in - OpenCode: make sure
opencodeis available on yourPATH - Terminal mode can launch into WezTerm, kitty, Alacritty, GNOME Console, or GNOME Terminal
Usage
t4openSet a terminal launcher for the current run:
t4open --terminal cmuxSave a terminal launcher preference:
t4open -s --terminal cmuxStop the currently managed runtime:
t4open --stopTerminal Targets
auto
cmux
ghostty
wezterm
kitty
alacritty
kgx
gnome-terminal
terminalEnvironment
T4OPEN_PORT
T4OPEN_OPENCODE_BIN
T4OPEN_MODE
T4OPEN_TERMINALCredits
Inspired by t4code by Maria Rcks.
