Skip to content

Getting Started

github-actions[bot] edited this page Dec 2, 2026 · 1 revision

Getting Started

1. Install redstart-bridge on your workstation

cargo install --git https://github.com/bradwestness/redstart redstart-bridge

Or from a local clone:

git clone https://github.com/bradwestness/redstart.git
cd redstart
cargo install --path crates/redstart-bridge

2. Run the bridge and expose it over Tailscale Serve

Start the bridge bound to localhost (defaults to 127.0.0.1:9123 supervising agy acp):

redstart-bridge --cwd ~/source/repos

Expose it privately on your Tailnet with automatic Tailscale TLS:

tailscale serve --bg --https=8444 http://127.0.0.1:9123

Tip: Serving on a dedicated HTTPS port (like :8444) avoids conflicts with any existing root-scoped PWA Service Workers you may already run on port :443.

Persistent systemd --user service

Copy deploy/redstart-bridge.service to ~/.config/systemd/user/redstart-bridge.service, adjust your workspace directory if needed, and enable it:

mkdir -p ~/.config/systemd/user
cp deploy/redstart-bridge.service ~/.config/systemd/user/
systemctl --user daemon-reload
systemctl --user enable --now redstart-bridge.service
loginctl enable-linger "$USER"

3. Pair the Android app

Print a QR code directly in your terminal:

redstart-bridge pair --cwd ~/source/repos

Or open https://<your-host>.<your-tailnet>.ts.net:8444/pair in a browser on your workstation and scan the branded QR code from the Redstart Android app (Scan QR).

4. Build and install the Android app

Run the one-time user-space Android toolchain bootstrap script:

./scripts/setup-android-dev.sh

Then build the Rust UniFFI .so libraries, generate Kotlin bindings, build the debug APK, and install it to a connected device or emulator:

./scripts/dev-android.sh