> ## Documentation Index
> Fetch the complete documentation index at: https://docs.leverine.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting started

> Install BunnyBridge, run the permission walk-through, get connected, and run your first command — about five minutes.

From install to an AI running its first command on your phone takes about five minutes, and the app guides most of it.

## What you need

* An Android phone running **Android 8.0 or newer**.
* The **Tailscale** app on the phone, signed in with your own Tailscale account (a free account is fine). Tailscale is what gives the phone its private address that only your own devices can reach.
* For Tunnel 1: another device on the same tailnet — a computer, a server, or an AI agent with a route to your tailnet. For Tunnel 2, you need nothing extra; see the [Tunnel 2 guide](https://docs.leverine.com/bunnybridge/tunnel-2.md).

**No terminal required.** BunnyBridge never asks you to open Termux, type a shell command by hand, or edit a config file. If you have Termux on the phone, the app notices it and reports it as information only — it is never required and never a blocker.

## Step 1 — Install

BunnyBridge is currently distributed directly by Leverine as an APK. (Store listings — F-Droid first, then Google Play — are on the [roadmap](https://docs.leverine.com/bunnybridge/index.md#what-is-on-the-roadmap).) Install the APK on the phone; Android will ask you to allow installs from your browser or file manager the first time — that prompt is normal, and the app explains it again later when it offers you an update.

Then install **Tailscale** from the Play Store if it is not already on the phone, open it, and sign in with your own account. Leave the Tailscale VPN switched on.

When BunnyBridge opens, it greets you with the Leverine splash — the shared lockup and the app's version — and hands off to the app as soon as it is ready. There is no artificial delay.

## Step 2 — First run and the permission walk-through

Open BunnyBridge. On first launch it walks you through the permissions it needs, one at a time, each with a plain-words reason:

* **Notifications** (Android 13 and newer) — so the bridge's foreground-service notification can show. On older Android versions there is no pop-up to grant; the app shows the setting's state instead and never treats it as a blocker.
* **Battery optimization exemption** — the important one. Without it, Android may put the bridge to sleep and your agent will find "nothing listening." The app takes you to the exact settings switch.

Every permission check is **scoped to the Android versions where that permission exists** and is **detected for real** — the app asks the system whether the grant is in place, rather than assuming. A check that doesn't apply on your version is shown as information and can never hold the app at "needs attention." The walk-through always shows you each setting's current state, even when everything is already granted, and it never marks itself done if a dialog failed to appear — you can re-run the checks any time from the Status screen's diagnosis.

## Step 3 — Get Connected

The **Get Connected** flow is at most three steps, each verified live by the app's diagnosis engine as it completes:

1. **Transport.** Pick how the phone is reached. Today the choice is Tailscale — "sign in, done." (A WireGuard transport that needs no account is on the roadmap; the picker will offer it when it ships.)
2. **Permissions.** The app confirms the grants from Step 2 are in place, with Fix buttons that deep-link to the exact settings screen for anything missing.
3. **Your first token.** The app generates a first token automatically and shows you its *connect block* — the one paste that connects an agent. Share it (the Share button, on purchased copies) or copy it to the computer where your AI runs.

Once the bridge is connected, the Get Connected entry fades out on the Status screen — it comes back if the bridge stops. You can stop or start the bridge at any time with the separate **Start** and **Stop** buttons on Status; only the one that makes sense is ever live.

**Agent-assisted setup.** If you already have an AI agent with access to one of your machines, it can do most of this with you: it sends you the install links one step at a time, you paste it the connect block, and it verifies the connection itself. The only steps that are always yours are the human ones — permission dialogs and the Tailscale sign-in. Point your agent at [For Agents](https://docs.leverine.com/bunnybridge/for-agents.md).

## Step 4 — Your first command

Hand the connect block to your agent or use it from another of your machines. A first check looks like this (placeholder values shown):

```
curl -s http://<phone-tailnet-ip>:8765/health
```

That needs no token and answers with basic liveness. Then, with the token from your connect block:

```
curl -s -H "X-Token: YOUR_TOKEN" \
  http://<phone-tailnet-ip>:8765/status

curl -s -X POST -H "X-Token: YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"cmd": "echo hello from the phone; date"}' \
  http://<phone-tailnet-ip>:8765/run
```

The second call runs the command on the phone and returns its output and exit code as JSON. You will see the call appear on the app's **Activity** screen, under your token's name. The [Tunnel 1 guide](https://docs.leverine.com/bunnybridge/tunnel-1.md) explains the connect block field by field and walks through each endpoint; the [API Reference](https://docs.leverine.com/bunnybridge/api-reference.md) has the full shapes.

## The readiness diagnosis — your home base

The Status screen's diagnosis is the heart of BunnyBridge. It checks three classes of things, continuously — on launch, after reboot, and while the bridge runs:

* **Permissions** — the battery exemption, notifications, and any optional grants.
* **Software** — whether Tailscale is installed and new enough. Nothing else external is needed: the server and (later) the SSH client are built into the app.
* **State** — Tailscale signed out or its VPN down, the bridge stopped, no tokens yet, Tunnel 2 items — listed only in front-door mode; in Mode 1 the diagnosis stays silent about Tunnel 2, because the surface is off by your choice — and whether the system killed the bridge unexpectedly.

The summary line is always visible — *ready*, or *not ready* with the number of blocking items. The three sections expand when you tap them; items that are merely informational (for example, notifications on an older Android) are shown truthfully but never block readiness. Anything that needs you carries a **Fix** button that opens the exact settings screen — you never go hunting through Settings yourself.

The same diagnosis is served to agents as JSON on `GET /health`, with each item marked as fixable by the agent or by you, so an agent helping you reads exactly what you see. See [Troubleshooting](https://docs.leverine.com/bunnybridge/troubleshooting.md) for each item and its fix.

## The screens, briefly

You move between screens with the **icon-only tab bar** at the bottom — bold icons, no text labels (each icon keeps a plain-language description for screen readers). A slim footer above the bar carries the Leverine mark and the app version; it slides away while you scroll and comes back when you stop.

* **Status** — bridge state as a table (one row per tunnel: address, and the state in words), Start/Stop, the Chatbot Access panel — since 0.4.9 a three-way mode selector (Mode 1 relay, your own front door, Mode 2) — app updates, and the diagnosis.
* **Tokens** — create, edit, rotate, and revoke tokens, grouped by network and then by tunnel.
* **Hosts** — your SSH jump targets. (Roadmap) Host management arrives with the SSH jump-host phase; today the screen explains what it will hold.
* **Activity** — every command run: token, tunnel, time, result.
* **Agent Inbox** — where pasted relay-mode commands wait for your approval (see [Tunnel 2](https://docs.leverine.com/bunnybridge/tunnel-2.md)).
* **Log** — the app's own event log, for diagnosing problems; view it, copy it, or share it.
* **Settings** — start-on-boot (free, and on by your choice), plus the purchased options (token persistence, easy share), which show greyed with a note on copies that have not unlocked them.

## Keeping the app up to date

BunnyBridge updates itself. The Status screen has an **App updates** section with a manual check, and the app also checks on launch (throttled, and never in your way — an available update appears as a quiet, non-blocking note in the diagnosis). Before anything is installed, the app verifies the download's size and its **SHA-256 fingerprint** against the signed-off update manifest; a mismatch deletes the file and installs nothing.

If a download is **interrupted** — the connection drops, the phone sleeps, the app is closed — the partial copy is detected the next time you check, thrown away, and downloaded again cleanly. If the download actually finished and verified before the interruption, the app goes straight to offering the install. There is no state an update can get stuck in. The system installer still asks you to confirm, as Android requires. The update check works over ordinary internet whether or not Tailscale is up, and it never touches the bridge listener.

***

*Source: Leverine/Leverine-BunnyBridge\@902c77c — `docs/site/BunnyBridge/getting-started.html`.*


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.