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

# Remote share

> Share a live host shell with an authorized device over relay and optional P2P.

Remote share publishes a host session through the authenticated Fly.io relay so
another device can attach. Wrapper negotiates a DTLS WebRTC data channel by
default and keeps the relay for signaling and fallback.

> [!NOTE]
>
> Remote sharing requires Pro (`can_share_relay`).

## Share from the host

1. Sign in on the host: `wrapper auth login`.
2. Run `wrapper share` (or share from a running host with `Ctrl+\` then `s`).
3. Confirm you have a shared session (`wrapper status`).

Unshare and revoke access with `Ctrl+\` then `u`, or by ending the host shell.

## Join as the owner

Owners can attach from any signed-in device without the share code:

```bash theme={null}
wrapper attach --relay --id <sessionId>
```

## Join as a guest

Guests need the session id and share code:

```bash theme={null}
wrapper attach --relay --id <sessionId>
```

Enter the code in the hidden prompt. Codes are case-insensitive. Knowing the
session id alone is not enough.

> [!WARNING]
>
> `--code` exists only for non-interactive automation. Command-line arguments can appear in process
> listings and shell history. Prefer the hidden prompt.

## What guests can do

Watching is the default.

* Read all terminal output.
* Cannot type unless the host allows it (`Ctrl+\` then `w`, or `wrapper share --writable`).
* Resize; the terminal fits the smallest display among the host's own terminal
  and every connected viewer. A viewer can shrink the shared terminal but never
  grow it past the host's window, and it grows back when that viewer leaves.

The person who owns the session can always type, including from their phone.
Treat share codes as capabilities.

When the terminal rings (BEL, or `wrapper notify` from inside the wrapped
shell), Wrapper can ping the owner's phone. The alert names the session. It
does not include what is on screen. Opt out with `WRAPPER_NOTIFY=0`.

## Transport behavior

| State | Meaning |
| - | - |
| `connecting` | Relay or P2P setup in progress |
| `relay` | Terminal frames on the authenticated WebSocket |
| `p2p` | Viewer input prefers the direct WebRTC channel |
| `offline` | Paths closed; attach ends |

If ICE cannot form a direct channel, the session stays on relay. If an open P2P
channel drops, Wrapper waits briefly for recovery, then falls back to relay.

Force relay-only:

```bash theme={null}
WRAPPER_P2P=0 wrapper attach --relay --id <sessionId>
```

See [Transports](https://docs.wrapper.sh/reference/transports.md).

## Access model (summary)

* Backend stores only the SHA-256 of the share code.
* Relay tickets are random, hashed at rest, short-lived, and single-use.
* Unsharing clears the hash and invalidates unused viewer tickets.
* Failed guesses are rate limited without revealing whether a session exists.

Details: [Security and privacy](https://docs.wrapper.sh/configuration/security.md).

## Upgrade to Pro

Pro is $99 per year ($8.25 / month) or \$15 per month. Yearly is the featured
price. Pick the interval on
[dashboard billing](https://www.wrapper.sh/dashboard/billing) after sign-in.

See [Pricing](https://docs.wrapper.sh/reference/pricing.md).


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