Skip to main content
Glama
README.md
<div align="center">

<img src="public/logo.svg" width="96" alt="Detour logo">

# Detour

**An SSH client for teams, with no server in the middle.**

Hosts, keys and passwords are shared through a Git repository or a folder you already have,<br>
encrypted end to end and signed on every change.

[![CI](https://github.com/INotSleep/Detour/actions/workflows/ci.yml/badge.svg)](https://github.com/INotSleep/Detour/actions/workflows/ci.yml)
[![License: AGPL-3.0](https://img.shields.io/badge/license-AGPL--3.0-6e9bff)](LICENSE)
![macOS | Windows | Linux | iOS](https://img.shields.io/badge/macOS%20%7C%20Windows%20%7C%20Linux%20%7C%20iOS-3ecf8e)

[**Download**](https://github.com/INotSleep/Detour/releases/latest) · [App Store](https://apps.apple.com/app/id6836001774) · [Docs](https://inotsleep.com/projects/detour/wiki) · [Security design](docs/teams.md) · [Build from source](#build-from-source)

<img src="docs/images/demo.gif" alt="Importing a key, adding a host, connecting, splitting the terminal and browsing files" width="100%">

</div>

## Features

- **Terminal.** Tabs, split panes, search, themes. Output that comes without colours gets them: the prompt, paths, addresses, sizes and status words. Copy and paste like your system terminal, or like Termius.
- **SFTP.** Files and whole folders with progress and cancel, permissions, a terminal in the current folder. A failed transfer never leaves a half-written file.
- **Tunnels.** Local (`-L`), remote (`-R`) and SOCKS (`-D`) forwarding.
- **Proxies.** Chains of jump hosts (`-J`), and saved proxies hosts go through: SOCKS5, HTTP, WireGuard (only for Detour, no system VPN) and VLESS over TCP or XHTTP with TLS, REALITY and Vision. From a `vless://` link or a `.conf` file.
- **Import.** `~/.ssh/config` with `Include`, patterns and `ProxyJump`, keys and `known_hosts`.
- **All your devices.** Your vault syncs between them. A new device joins with a one-time code.
- **iPhone and iPad.** [Detour SSH](https://apps.apple.com/app/id6836001774) on the App Store: the terminal with a key bar of your own, files over SFTP, keys, snippets, Face ID, sync and teams.
- **Teams.** Access per host, key and snippet, per person.
- **Command line.** `detour` does everything the app does, in a terminal and on servers without a desktop. [More](https://inotsleep.com/projects/detour/wiki/command-line/cli)
- **AI agents.** Claude Code, Codex, Cursor and others work on your servers over MCP, only where and for as long as you allow, without ever seeing a password or key. [More](https://inotsleep.com/projects/detour/wiki/command-line/agents)

<p>
  <img src="docs/images/hosts.png" alt="Hosts" width="49%">
  <img src="docs/images/access.png" alt="Team access per host and person" width="49%">
</p>

## Security

Detour treats the storage, the network and every other member's computer as hostile. There is no Detour server to trust or to breach.

| If | Then |
|---|---|
| your Git host or shared folder leaks | the attacker gets ciphertext. Names, addresses, logins, members and who can see what are encrypted. |
| the storage alters, reorders, hides or rolls back changes others have seen | every member's Detour detects it and says so. |
| a teammate's copy of Detour is modified | it still holds only the keys that teammate was given. Access is enforced by encryption, not by the app. |
| someone is removed from a team | the rest of the team moves to new keys. Nothing written afterwards is readable to them. |
| your laptop is stolen | the vault is sealed with your master password and locks itself when idle. |
| a server's host key changes | the connection stops before any password or key is sent. |
| a Detour ID is swapped on its way to an admin | the fingerprints you compare don't match. |
| someone publishes a fake update | the app refuses it: updates must carry the project's signature. |
| an AI agent goes further than asked | it reaches only the hosts and rights you allowed, for the time you chose, never sees a password or key, and can't accept a new server key. |

**Built on** [age](https://age-encryption.org) (X25519, scrypt), ChaCha20-Poly1305, Ed25519 signatures and per-device hash chains, [russh](https://github.com/Eugeny/russh) and [rustls](https://github.com/rustls/rustls). No accounts, no telemetry.

The full design, including what cryptography can't protect against: [docs/teams.md](docs/teams.md).

## Teams

1. Create a team in a Git repository (any SSH or HTTPS remote) or in a shared folder (Syncthing, Dropbox, OneDrive, SMB).
2. Add a teammate by the Detour ID they send you, and pick what they can see.
3. They open the same repository or folder.

## Install

Installers for macOS, Windows and Linux are on the [Releases](https://github.com/INotSleep/Detour/releases/latest) page. Detour updates itself from there. They put the `detour` command line on your `PATH` too; for servers without a desktop, the release has it alone (`detour-cli-<version>-<system>`).

For iPhone and iPad, get [Detour SSH](https://apps.apple.com/app/id6836001774) from the App Store.

The interface is in English and Russian.

## Privacy

Detour sends nothing to anyone except the servers, repositories and folders you set up yourself, and GitHub releases when it checks for updates (this can be turned off in Settings).

## Build from source

Requirements: Node 20+, Rust (stable), and the [Tauri prerequisites](https://tauri.app/start/prerequisites/) for your system.

```bash
npm install
npm run tauri dev        # the desktop app
npm run dev              # the UI alone in a browser, with demo data
cargo run -p detour-cli -- --help   # the command line
cargo test --workspace
```

<details>
<summary>Release builds</summary>

Release builds sign their update files with the updater key: set `TAURI_SIGNING_PRIVATE_KEY` (and `TAURI_SIGNING_PRIVATE_KEY_PASSWORD` if it has one), or build without update files:

```bash
npm run tauri build -- --config src-tauri/tauri.bundle.conf.json --config "{\"bundle\":{\"createUpdaterArtifacts\":false}}"
```

`tauri.bundle.conf.json` builds the command line (`scripts/sidecar.mjs`) and puts it into the installers, with the `PATH` set up on Windows (`src-tauri/windows/`).

CI builds the macOS and Linux installers and the command line archives for every `v*` tag into a draft release. The Windows ones are signed with a Certum code signing certificate in SimplySign, so they are built locally and added to that draft by `scripts/release-windows.ps1`. It then makes the MCP bundle (`detour-<version>.mcpb`, for Claude Desktop and the [MCP Registry](https://registry.modelcontextprotocol.io)) with `scripts/mcpb.py`, which also updates `server.json` for `mcp-publisher publish`.

</details>

### Layout

```
crates/detour-core/   SSH, SFTP, vaults, team sync, crypto. No UI dependencies.
crates/detour-ipc/    the protocol between the core and its clients
crates/detour-daemon/ the core as a process: sessions, tunnels, sync, AI agents
crates/detour-cli/    the `detour` command line and MCP server
src-tauri/            Tauri 2 shell: the window, the tray, a proxy to the core
src/                  React + TypeScript UI, xterm.js terminal
  lib/api.ts          the only boundary between the UI and the core
```

## Contributing

Issues and pull requests are welcome. Contributions are published under the project's license. `cargo test --workspace` and `npx tsc --noEmit` must pass.

## License

Detour is free software under the [GNU AGPL v3](LICENSE) with the additional terms in [NOTICE](NOTICE).

Use it anywhere, including at work, at no cost. Whoever distributes a modified version, or runs one as a network service, must publish its source under the same license, credit it as **Based on Detour** with a link to this repository, and must not call it Detour.

TDQS

B3.1/5.0

Scored across 33 tools

Disambiguation4/5

Tools are grouped cleanly by resource (sessions, files, hosts, snippets, tunnels, access), and pairs that could collide are explicitly differentiated in the descriptions — run_command vs run_snippet vs send_input, read_file vs read_screen, request_access vs wait_for_access. The only mild ambiguity is `remove` and `rename`, which act on host filesystem paths but carry no noun in the name, so an agent must infer their scope from context.

Naming Consistency4/5

The dominant pattern is verb_noun (read_file, add_host, start_tunnel, list_snippets, request_access), applied consistently across the four collection domains. Deviations are bare verbs — remove, rename, upload, download, sync_now — and the file-level `remove` is inconsistent with its own siblings remove_host/remove_snippet/remove_tunnel; also `make_dir` uses 'make' where the rest of the server uses 'add'.

Tool Count3/5

33 tools is high in absolute terms, though it is spread across six genuinely distinct sub-domains (sessions, filesystem, hosts/vault, snippets, tunnels, access negotiation), each of which needs its CRUD surface. A few could be folded (e.g. start/stop_tunnel or upload/download as a single transfer tool), so the surface is heavier than strictly necessary but not padded.

Completeness4/5

Coverage is strong: hosts have add/update/remove/list, files have read/write/list/make_dir/rename/chmod/remove/upload/download, tunnels have the full add/update/remove/start/stop/list lifecycle, and access negotiation has both request and wait. The notable gap is snippets — add/remove/list/run exist but there is no update_snippet, so a saved command can only be deleted and recreated.

Maintenance

ActivityMaintained
ResponsivenessLimited data