---
title: "Security — Hoptail"
description: "What Hoptail protects and what it doesn’t: the network, paired devices, other users. Plus a Claude Code sandbox profile that keeps agents out of its files."
url: https://hoptail.app/security
updated: 2026-11-03
---

# What Hoptail protects, and what it doesn’t

Last updated 3 November 2026

## Short answer

Hoptail limits what can be done through it: from the network, from devices you haven’t paired and from other users on your computer. A program that runs as you outside a sandbox can get around those limits through Hoptail’s files or your tmux, and Hoptail doesn’t claim otherwise. For your agents, turn on Claude Code’s sandbox with the profile on this page.

## Where the line is.

The `hoptail` program runs under your user account and keeps its settings, device list and keys in your home folder. Anything else that runs as you can read the same files and type into the same tmux, with or without Hoptail. So the line is your user account: Hoptail keeps out the network, other devices and other users, and it treats programs you run as you. Your coding agents are programs you run.

## What Hoptail protects.

- **The connection.** Your iPhone talks to your computer over your tailnet. TLS is on by default, pinned to your computer’s certificate; `hoptail status` shows its fingerprint. If you turn TLS off in Hoptail’s settings, or its key can’t be loaded, the connection inside your tailnet isn’t encrypted by Hoptail. Hoptail listens only on that computer and your tailnet.
- **Pairing.** Each device gets its own token. With hoptail 0.1.10 or later and an up-to-date iPhone app, adding a device takes your yes on your paired iPhone, and your iPhone tells you about every device that’s added, with Revoke on the notification.
- **Browsers.** With hoptail 0.1.23 or later and an up-to-date iPhone app, a new browser signs in with a one-time code from your iPhone: confirm the request with Face ID, tap Yes, It’s Me, and type the code your iPhone shows into that browser. Or use a code you issue from your iPhone or with `hoptail pair`. From hoptail 0.1.11, once your iPhone approves new devices, only the iPhone can let a browser in. A program on your computer can also start a sign-in request, so tap Yes only for a sign-in you started yourself and type the code only into that browser. Hoptail never asks for it in a chat or a terminal.
- **What you send.** With hoptail 0.1.13 or later and an up-to-date app, after you pair again once, your iPhone signs what you send, such as typing, answers to permission requests and settings, with a key kept in its Secure Enclave. Your computer then refuses unsigned requests from that iPhone. Devices that don’t sign yet are still accepted unsigned until you pair them again, or until you run `hoptail security require`.
- **Claude Code’s events.** With hoptail 0.1.16 or later, Claude Code’s hooks reach Hoptail with a secret only your account can read. For events that could change what Hoptail does, it also checks which process sent them, on a Mac from 0.1.18; an event it can’t trace back does none of those things.
- **Other users on your computer.** Hoptail’s files are readable only by your account, so other users can’t get its tokens, keys or the hook secret.
- **Notifications.** Their content is end-to-end encrypted, so our relay can pass them on but can’t read what they say. [What the relay stores →](https://hoptail.app/privacy#push-notifications-and-the-relay)

## What it doesn’t.

- **Programs that run as you without a sandbox.** They can read Hoptail’s files, change its settings or type into your tmux directly. Agents in bypass mode, started with `--dangerously-skip-permissions` or in `bypassPermissions`, count here too: they can rewrite their own settings without asking, sandbox included.
- **What you meant.** A signed Allow proves it came from your iPhone. It doesn’t prove you read what you allowed, so read the request first.
- **Everything around Hoptail.** Your shell, tmux, Tailscale and the agents’ own settings are yours to set up. This page gives a profile for the part that touches Hoptail.

## Who could try, and what stops them

| Who | What they have | What stops them |
| --- | --- | --- |
| A device in your tailnet you haven’t paired | Network access to your computer | Device tokens, TLS, and checks on where each request comes from |
| A web page open in your browser | Your browser | Hoptail’s web client accepts only its own address, and its cookie isn’t sent from other sites |
| Someone with a stolen device token | The token | If that device signs its requests, they can’t type or answer without its key; with `hoptail security require`, no unsigned device can. The token alone still lets them read |
| Another user on your computer | Their own account | File permissions: Hoptail’s tokens, keys and hook secret are readable only by your account |
| An agent in Claude Code’s sandbox with the profile below | A shell that can’t see Hoptail’s files or your tmux, and reaches Hoptail’s ports only if you allow it | The sandbox, as long as nothing outside it runs code the agent wrote and you answer No when a command asks to reach this computer |
| A program running as you without a sandbox | Everything your account can do | Nothing in Hoptail. This is the line |

## A sandbox profile for Claude Code

Claude Code’s sandbox is off by default. It covers Bash commands and what they start; Claude’s file tools follow permission rules instead. This profile keeps both away from Hoptail’s files and its service, and keeps Claude’s file tools off your Claude Code settings. It goes into your user settings, `~/.claude/settings.json`, so it applies to Claude Code in every project on this computer, not only to agents you use with Hoptail.

Hoptail adds it only when you ask. With hoptail 0.1.23 or later, run `hoptail setup --sandbox`: it shows what would change and what you give up, merges the profile with what’s already there and asks before it writes. `hoptail setup --remove-sandbox` takes off what Hoptail added; if it can’t tell what that was, it shows what it would remove and asks first. You can also merge the JSON below by hand.

Before you add it, look at `sandbox.excludedCommands` in your settings: those commands run outside the sandbox with your full account. Remove any that can run code an agent wrote, such as an interpreter or a script runner. `hoptail setup --sandbox` warns you about them too.

On a Mac:

~/.claude/settings.json

```json
{
  "permissions": {
    "disableBypassPermissionsMode": "disable",
    "deny": [
      "Read(~/Library/Application Support/Hoptail/**)",
      "Edit(~/Library/Application Support/Hoptail/**)",
      "Read(~/.claude/session-env/**)",
      "Edit(//**/.claude/settings*.json)",
      "Edit(~/.claude.json)",
      "Edit(~/Library/LaunchAgents/dev.hoptail.daemon.plist)",
      "Edit(//opt/homebrew/bin/hoptail)",
      "Edit(//opt/homebrew/Cellar/hoptail/**)"
    ]
  },
  "sandbox": {
    "enabled": true,
    "failIfUnavailable": true,
    "allowUnsandboxedCommands": false,
    "autoAllowBashIfSandboxed": false,
    "filesystem": {
      "denyRead": ["~/Library/Application Support/Hoptail", "~/.claude/session-env"],
      "denyWrite": ["~/Library/Application Support/Hoptail", "~/.claude/session-env"]
    }
  }
}
```

On Linux:

~/.claude/settings.json

```json
{
  "permissions": {
    "disableBypassPermissionsMode": "disable",
    "deny": [
      "Read(~/.config/hoptail/**)",
      "Edit(~/.config/hoptail/**)",
      "Read(~/.claude/session-env/**)",
      "Edit(//**/.claude/settings*.json)",
      "Edit(~/.claude.json)",
      "Edit(~/.config/systemd/user/hoptail.service)",
      "Edit(//home/linuxbrew/.linuxbrew/bin/hoptail)",
      "Edit(//home/linuxbrew/.linuxbrew/Cellar/hoptail/**)",
      "Edit(~/.local/bin/hoptail)",
      "Edit(//usr/local/bin/hoptail)"
    ]
  },
  "sandbox": {
    "enabled": true,
    "failIfUnavailable": true,
    "allowUnsandboxedCommands": false,
    "autoAllowBashIfSandboxed": false,
    "filesystem": {
      "denyRead": ["~/.config/hoptail", "~/.claude/session-env"],
      "denyWrite": ["~/.config/hoptail", "~/.claude/session-env"]
    }
  }
}
```

If you set `XDG_CONFIG_HOME`, Hoptail’s folder and its service file live there instead of in `~/.config`: use those paths. Claude Code’s sandbox on Linux needs bubblewrap and socat.

## What each part does.

- **The sandbox is on, or Claude Code doesn’t start.** `failIfUnavailable` stops it from quietly running commands unsandboxed, and `allowUnsandboxedCommands: false` takes away the retry outside the sandbox.
- **Bash still asks you.** On its own, the sandbox lets Bash commands that stay in it run without asking. `autoAllowBashIfSandboxed: false` keeps the usual permission prompts, so they still reach your iPhone. `hoptail setup --sandbox` adds it from 0.1.23; if you set up the sandbox with 0.1.22, run it again. Set it to `true` if you’d rather they run without asking, at the cost of deciding from your phone.
- **Hoptail’s folder is closed.** Bash commands and Claude’s file tools can’t read or change Hoptail’s settings, device list, keys or hook script.
- **Session files are closed.** Claude Code keeps each session’s environment in `~/.claude/session-env`, where hooks, Hoptail’s among them, can leave values for that agent. Commands still get those values; they just can’t read other sessions’ files.
- **Settings and the service stay put.** Claude’s file tools can’t edit `.claude/settings*.json`, `~/.claude.json`, Hoptail’s service file or the `hoptail` program, and sandboxed Bash can’t write them either. Bypass mode is off, so an agent can’t skip these rules.
- **Your computer’s ports stay closed until you say Yes.** Sandboxed commands can’t connect to this computer’s ports directly. Through the sandbox’s proxy, a command can still ask to reach it as 127.0.0.1, localhost, 0.0.0.0 or one of its IP addresses. Answer No: Yes opens every port on it, Hoptail’s included, for the rest of the session, and “Yes, and don’t ask again” keeps it open in a rule in `.claude/settings.local.json`. If you chose that, remove the rule. Leave `allowLocalBinding` off too: on a Mac it opens them as well.

The profile was checked on 2026-10-27 with Claude Code 2.1.311 on macOS; the Linux notes come from a check with Claude Code 2.1.310 on Ubuntu. The question about reaching this computer was seen on 2026-11-01 with Claude Code 2.1.316 on macOS; on Linux we haven’t checked it and rely on Anthropic’s documentation. See Anthropic’s [sandboxing](https://code.claude.com/docs/en/sandboxing) and [permissions](https://code.claude.com/docs/en/permissions) documentation for every key.

## What you give up.

- **Every project gets the profile.** It’s in your user settings, so Claude Code runs every session this way, Hoptail or not.
- **Writes outside the project.** Commands an agent runs can write only to the project folder, folders you added with `--add-dir` and the temp folder. Tools that keep caches elsewhere fail until you list those folders in `sandbox.filesystem.allowWrite`.
- **Servers on your computer.** Commands an agent runs can’t reach a server running outside the sandbox, such as a database or a dev server you started. Letting one through the proxy would open Hoptail’s ports too. On a Mac they also can’t listen on local ports, so tests and dev servers on localhost fail; `allowLocalBinding` brings those back, but also opens Hoptail’s ports to those commands. On Linux a command can still start its own server and reach it.
- **Network and some tools.** The first time a command reaches a new host, Claude Code asks you. `docker` and `watchman` don’t work in the sandbox, and plain `ssh` and most database drivers can’t connect, even to hosts you allowed.
- **Some tools on a Mac.** `gh`, `gcloud` and `terraform` may fail TLS checks in the sandbox, and git over SSH fails: use HTTPS remotes. Listing a tool in `sandbox.excludedCommands`, such as `"gh *"`, runs it outside the sandbox with your full account.
- **hoptail commands inside an agent.** `hoptail status` and the rest can’t read Hoptail’s folder from the sandbox. Run them yourself in a terminal.
- **Agents in bypass mode.** With bypass mode off, an agent you used to start with `--dangerously-skip-permissions` won’t start that way, and neither will `hoptail restore --allow-bypass`.
- **Messages between agents.** On a Mac, agents can’t use `hoptail send`, `ask` or `wait` from the sandbox yet. On Linux they may not be able to either: where Claude Code installs its socket filter, it closes Unix sockets.
- **Edits to settings through Claude.** Claude can’t change your `settings.json` files for you. Edit them yourself.

The Claude Code limits come from Anthropic’s [sandboxing](https://code.claude.com/docs/en/sandboxing) documentation, checked on 1 November 2026 with Claude Code 2.1.316.

## Limits to know about.

- **Start Claude Code in a project folder.** Sandboxed commands can write to the folder you started `claude` in. Start it in your home folder, or above it, and they can change programs in your `PATH` folders there, such as `~/.local/bin`, files your shell startup files load, `~/.tmux.conf` and, on a Mac, your LaunchAgents. These run later, outside the sandbox. The same goes for a folder in `PATH` that you open to the sandbox with `allowWrite` or `--add-dir`.
- **Keep `.` and relative folders out of your `PATH`.** If your shell’s `PATH` has `.`, an empty element (a `:` at the start or end, or `::`) or a relative folder such as `./node_modules/.bin`, remove it. Otherwise `claude` typed in a project folder, by you or by `hoptail restore`, can run a file the project put there. Shell hooks that run project files when you enter a folder, such as a zsh `chpwd` function, carry the same risk.
- **The project is untrusted input.** An agent in the sandbox can change files in the project, including `CLAUDE.md`, `AGENTS.md` and other agents’ settings such as `.codex/`. The next agent you start there, at your computer or from your iPhone, reads them as it would any project files: Hoptail doesn’t check them.
- **Hooks and MCP servers run outside the sandbox.** That’s how Hoptail’s hooks keep working with this profile, and it’s also why a hook or MCP server you add runs with your full account. Keep their scripts outside folders your agents can write, such as your projects.
- **Your own account can change this profile.** Any program that runs as you outside the sandbox can edit `~/.claude/settings.json`. For a guarantee, an administrator deploys the profile as [managed settings](https://code.claude.com/docs/en/managed-settings), which user and project settings can’t override.
- **Some Linux servers need a weaker profile.** Where Claude Code can’t install its socket filter, every sandboxed command fails, as we saw on an Ubuntu server. There you need `"allowAllUnixSockets": true` under `sandbox.network`, which lets commands reach every Unix socket. Then also add to `denyRead` the folders of sockets that control things outside the sandbox: `/tmp/tmux-<uid>` for tmux, `/run/user/<uid>/bus` and `/run/user/<uid>/systemd`, your SSH agent and Docker. Abstract sockets have no path, so they can’t be closed this way.

## FAQ

### I lost my iPhone. What now?

On your computer, run `hoptail devices` and `hoptail devices revoke` with the iPhone’s id, then pair your new iPhone with `hoptail pair`.

### Does Hoptail need admin rights?

Hoptail runs under your user account. On Linux, installing `libatomic1` or turning on lingering takes `sudo` once. Managed settings for Claude Code need an administrator, and only if you want them.

### How do I report a security problem?

Email [feedback@hoptail.app](mailto:feedback@hoptail.app) with what you found and how to reproduce it.

---

Hoptail is made by Dmitrii Emelianov PR Računarsko programiranje Novi Sad, a sole proprietorship registered in Serbia (APR registration no. 67225627, tax ID 113970406), Novi Sad, Serbia. Contact: [feedback@hoptail.app](mailto:feedback@hoptail.app)

Hoptail isn’t made or endorsed by Anthropic, Apple or Tailscale. Trademarks belong to their owners. [Details](https://hoptail.app/terms#17-trademarks)
