Conduit links a phone to a desktop over your local network. It syncs the clipboard between them, transfers files in both directions, relays SMS threads and notifications, forwards calls, mirrors the phone's screen onto the desktop, acts as a remote trackpad and keyboard, and runs trigger-to-action automation. Transport is a local WebSocket hub on the desktop with mDNS discovery, so a phone on the same network finds the desktop on its own. A relay is built into the desktop app and is on by default, for when the two devices are not on the same network. There is no account system, no hosted service and no telemetry.
Conduit is pre-release software. The feature set is incomplete, two
subsystems are known not to work, and the desktop app cannot be built from a
fresh clone. Do not depend on it for anything you cannot lose. Every component
is at version 0.1.0; there is no release artefact, installer or published
package for any of them, so building from source is the only supported path.
- Pairing a phone with a desktop over the local network, by QR code or by hand.
- Clipboard sharing and history, held in the desktop's encrypted database.
- File transfer in both directions, chunked, with progress, resume and cancel.
- Notification relay to the desktop, with read, dismiss and reply.
- SMS thread and message relay to the desktop, with per-thread read state.
- Call signalling: the phone reports incoming and forwarded calls and the desktop can answer or reject.
- Remote input from the phone to the desktop, as a trackpad and as a keyboard including modifier keys.
- Screen mirroring, where the phone is the capture device and the desktop is the viewer.
- Trigger-to-action automation rules, held on the desktop, with a deny-by-default shell command allowlist.
- The relay, which runs inside the desktop app as a background task. It is on by default, both clients sign their routes with a per-device key, and it forwards opaque envelopes without ever seeing plaintext.
- The relay certificate, generated into the app data directory from the
relay_hostnamesetting, with the SPKI pin published on a loopback-only health port.
- Mobile certificate pinning does not work as specified. The mobile client
hashes the whole DER certificate while the relay publishes an SPKI pin, so
the two can never match. The desktop has no pin configuration target. This is
now live rather than hypothetical, because the relay runs by default. See
docs/relay-tls.md. - A fresh clone cannot build the desktop app. See The vendored OpenSSL requirement.
The full list of known limitations is in
CHANGELOG.md, under "Known limitations".
Screenshots are not committed yet. To add them:
The desktop application is the easiest of the two to screenshot, because it runs on the machine you are already using. The mobile app needs a connected device or a running emulator.
- A phone pairs with the desktop by QR code or by entering the details manually, using a single-use pairing token that expires.
- The desktop's own webview reaches the local hub with a per-launch capability token that is held in memory and never written to disk.
- The desktop advertises itself over mDNS and the phone browses for it, so a phone on the same network finds the desktop without an address being typed.
- The desktop hub answers a peer that announces a protocol version above the
one it implements with
unsupported_protocol_version. - Paired devices are listed in the desktop interface and can be found by name or device type from the desktop search field.
- Clipboard contents are shared between the two devices, with the history kept in the desktop's encrypted database.
- Clipboard sync can be turned off in settings.
- Files are transferred in both directions in chunks, with request, accept, progress, resume, cancel and completion states.
- Chunked transfer is bounded, and download paths are validated and rejected when they fall outside the downloads root or attempt path traversal.
- An auto-accept setting is available for trusted peers.
- Notifications posted on the phone are stored on the desktop, where they can be marked read, dismissed or replied to.
- The seed list of notification apps is configurable; the desktop cannot enumerate the apps installed on a phone, so it is told which ones to expect.
- Relayed notifications can be searched by title or body from the desktop search field.
- SMS threads and individual messages are relayed to the desktop with per-thread read state.
- The phone reports incoming and forwarded calls, and the desktop can answer or reject them.
- An audio stream between the two devices, with playback control.
- The two clients use different call verbs on purpose: the phone emits
incomingandforward, the desktop emitsanswerandreject.
- The phone captures its own screen and the desktop displays it, with touch, key and scroll input sent back to the phone.
- The phone acts as a trackpad (move, click, scroll) and as a keyboard, including modifier keys.
- Remote input is refused at the dispatcher for any client that has not authenticated, before the handler runs.
- Trigger and action rules are held on the desktop, with create, delete, sync and triggered-event messages.
- Shell commands in rules are denied by default. A command has to appear in the operator-configured allowlist, and that allowlist is parsed fail-closed: a missing, malformed or non-array setting produces an empty allowlist rather than an open one.
- The allowlist is enforced on the write path, on the triggered path and again at execution time.
- Messages are wrapped in an encrypted envelope using X25519 key agreement and XChaCha20-Poly1305, with HMAC-SHA256 for message authentication.
- This is not end-to-end encryption. The desktop hub decrypts each message
and dispatches the inner payload, and a relay verifies signatures on messages
and routes them. Traffic is protected from a passive observer on your local
network and from tampering in transit. It is not protected from the desktop
itself, and the desktop is the only place the key exists — there is no
third-party relay operator to worry about, because the relay runs inside the
desktop process. The cost of that arrangement is that the relay shares a
process with the hub rather than being isolated from it: a bug or a
compromise in the relay path is a bug or a compromise in the desktop app. The
status bar reports this as "Not E2E". See
SECURITY.mdand ADR-0007. - Desktop data is held in a SQLCipher-encrypted SQLite database. The database
key is stored in the OS keyring under service
conduit_appand accountsqlite_key, with a permission-restricted key file as a fallback when the keyring cannot be written. - The mobile app stores its secrets in the platform keystore.
- Conduit is not a sandbox. A process running as your own user can read the
database and the configuration; the threat model says so in
SECURITY.md.
- The relay, crate
conduit-relay, is a library the desktop app runs in-process as a background task. There is nothing to deploy and no separate service; it is on by default and Conduit works on a local network without it. - An authentication handshake, and
relay_routeHMAC verification under a per-device key derived from that device's pairing secret, so a device can sign for itself and for nothing else. A re-pair rotates the key automatically, so there is no key rotation window. A replay-protection nonce cache guards the rest. - Binary frame version 2 with a versioned prefix. The relay rejects the superseded version 1 prefix rather than guessing.
- Health, metrics and certificate-pin HTTP endpoints on a loopback-only port,
/healthand/behind a bearer token. - The relay forwards opaque envelopes only. It never sees plaintext.
| Tool | Version | Needed for | Notes |
|---|---|---|---|
| Rust | 1.98, pinned by rust-toolchain.toml |
conduit, conduit-relay |
Both are edition 2024. conduit-protocol is edition 2021. |
| Node.js | 24, pinned by .nvmrc |
desktop frontend, code generation | npm 11 or newer. apps/desktop/.npmrc sets legacy-peer-deps=true, so use npm ci. |
| Flutter | 3.47 | apps/mobile |
With Dart 3.13. pubspec.yaml declares sdk: '>=3.12.0 <4.0.0'. |
| Vendored OpenSSL | 3.5.8, win64 | the desktop crate only | Blocking. See below. |
The desktop app cannot be built from a fresh clone. This is the largest onboarding obstacle in the repository, and it is not fixed.
apps/desktop/src-tauri depends on rusqlite with the bundled-sqlcipher
feature. That compiles SQLCipher from source, but SQLCipher still has to link
against a crypto library, so the build needs OpenSSL headers and static
libraries. .cargo/config.toml supplies them by pointing two environment
variables at a vendored copy:
# .cargo/config.toml
[env]
OPENSSL_LIB_DIR = { value = ".tools/openssl-win64/lib/static", relative = true }
OPENSSL_INCLUDE_DIR = { value = ".tools/openssl-win64/include", relative = true }relative = true resolves those paths against the workspace root, so the
directory has to be <repo>/.tools/openssl-win64/, with lib/static/ and
include/ directly under it. The source is named in the comment in that file:
the OpenSSL-Distribution releases published under TaurusTLS-Developers.
The copy this release was developed against is 3.5.8 win64, about 80 MB.
Four things make this a blocker rather than a footnote:
- There is no download script.
.gitignorelabels.tools/as fetched byscripts/, but noscripts/fetch-openssl.ps1exists. - There is no version pin recorded in any tracked file, so the 3.5.8 in use is unrecorded knowledge.
- There is no checksum. An arbitrary archive from a release page would be accepted without verification.
.tools/is gitignored, so a clone never receives it. The failure surfaces as a link error fromlibsqlite3-sys's build script rather than as a message that names the missing directory.
To build the desktop app on Windows, download the win64 package from that
release page, extract it to <repo>/.tools/openssl-win64/, and confirm that
lib/static/*.lib and include/openssl/*.h sit directly under it.
.cargo/config.toml is unconditional, so on Linux the two variables still
point at a Windows-only layout and the desktop crate has no working build
path. For that reason the CI workflow runs the desktop crate's clippy, test
and build steps as non-blocking and emits a warning instead.
conduit-protocol and conduit-relay do not need any of this. Neither depends
on rusqlite or SQLCipher, and both build with no vendored dependencies.
Run every cargo command from the repository root. Run npm commands
from apps/desktop and flutter commands from apps/mobile. There is no
root package.json and no root Flutter project; the root Cargo.toml is a
virtual workspace that owns all three Rust crates.
The crate name and the directory name do not always match, and the mismatch is the second most common source of build friction:
| Directory | -p name |
|---|---|
packages/protocol |
conduit-protocol |
apps/desktop/src-tauri |
conduit |
services/relay |
conduit-relay |
Always pass -p. cargo test -p src-tauri will not resolve, and neither will
cargo test -p desktop.
Protocol crate (library only, no binary and no I/O):
# repository root
cargo build -p conduit-protocol
cargo test -p conduit-protocolRelay library (no binary):
# repository root
cargo build -p conduit-relay
cargo test -p conduit-relayThere is no cargo run for the relay: it is a library, and the desktop app
hosts it as a background task in
apps/desktop/src-tauri/src/relay.rs. The desktop configures it from its own
Settings, not from environment variables.
Desktop app (requires the vendored OpenSSL above):
cd apps\desktop
npm ci
npm run tauri -- dev # Vite on 5173 plus the Tauri window
npm run tauri -- build # release bundlescripts\build-desktop.ps1 wraps the same sequence and accepts -Release and
-Clean. Frontend-only work needs neither Rust nor OpenSSL: npm run dev
serves the React app on port 5173, where Tauri IPC is unavailable and every
invoke() call fails, so the app renders in a degraded state. That is the same
environment the Playwright suite runs in.
Mobile app:
cd apps\mobile
flutter pub get
flutter runIf flutter is not on PATH, add your Flutter SDK's bin directory to PATH
for the session before running it. Build with flutter build apk --debug for
Android, or flutter build ios --debug --no-codesign for iOS from a macOS
host. scripts\build-mobile.ps1 -Target android wraps this.
Code generation (regenerates the client models from
packages/protocol/schema.json):
cd apps\desktop
npm run generateThat writes apps/desktop/src/types/websocket.ts and
apps/mobile/lib/models/protocol.dart. Both are generated files and must
never be hand-edited. See docs/DEVELOPMENT.md.
| Path | Crate or package | What it is |
|---|---|---|
packages/protocol |
conduit-protocol (Rust, edition 2021) |
The shared wire-format source of truth. src/types.rs holds the message types, the port constants and the binary frame constants; src/lib.rs holds HMAC signing, key derivation and the replay nonce cache; schema.json is hand-maintained and held in sync with the types by five tests; PROTOCOL.md is the normative prose specification. Library only. |
apps/desktop |
conduit-desktop (npm) and conduit (Rust, in src-tauri/) |
The Tauri v2 desktop app. src/ is React 19, TypeScript, Vite 8 and Tailwind 4. src-tauri/ is the Rust backend and owns the local WebSocket hub, SQLCipher storage, mDNS advertisement, automation, file transfer, screen mirroring, remote input and audio. |
apps/mobile |
conduit (Flutter) |
The Flutter app for Android and iOS. Owns mDNS browsing, the WebSocket client, secure storage, on-device QR scanning, screen capture and the SMS, notification and call bridges. |
services/relay |
conduit-relay (Rust, edition 2024) |
The relay, as a library: the router, the authentication handshake, relay_route verification under per-device keys, binary frame v2, TLS certificate generation, and the health, metrics and pin endpoints. No binary target; the desktop app hosts it in-process as a background task (apps/desktop/src-tauri/src/relay.rs). |
scripts |
— | PowerShell build and lint wrappers, the JavaScript code generators, the certificate pin helper, and scripts/icons/, the Python brand-asset generator. |
assets/brand |
— | The brand source of truth. conduit.mark.json is rendered into every icon, the logo component and the Dart logo widget. |
docs |
— | ARCHITECTURE.md, DEVELOPMENT.md, TESTING.md, relay-tls.md and decisions/. |
Cargo.lock |
— | The only lockfile. Nested ones are forbidden by .gitignore (**/Cargo.lock with !/Cargo.lock). |
Both Rust clients bind to the wire format by path dependency, and both
frontends bind to it by code generation from schema.json. schema.json is
maintained by hand rather than generated from types.rs, and five tests in
conduit-protocol hold the two together, the load-bearing one serialising
every Rust message type and asserting that the schema accepts the result.
The port constants live in packages/protocol/src/types.rs (LAN_WS_PORT,
LAN_WSS_PORT).
| Port | Protocol | Component | Purpose |
|---|---|---|---|
| 9527 | ws://, plaintext |
desktop | The local hub, and the desktop's own diagnostic path. |
| 9531 | wss://, TLS |
desktop | The only port a LAN client dials. |
| 9528 | — | — | Nothing listens here. It was the relay's plaintext listener and is now an unused library default (RELAY_WS_PORT); the desktop deliberately does not open it. |
| 9531 | ws://, plaintext |
relay, loopback only | The relay's plaintext listener. It is how the desktop joins the relay it hosts, so the desktop appears in the routing table without a certificate check (DEFAULT_RELAY_LOCAL_PORT). Nothing off the machine can reach it. |
| 9529 | wss://, TLS |
relay | The relay's WebSocket listener. The port a phone on another network dials, via relay_port. |
| 9530 | HTTP | relay | /healthz, /health, /metrics, /pin. Loopback-only by construction, so the unauthenticated /pin and /healthz are not exposed to the network. |
Rule: never dial wss:// on 9527, and never silently downgrade a LAN peer to
ws://.
The mobile app once inlined wss://$ip:9527 at three call sites, which made
local pairing non-functional. It now carries kLanWsPort = 9527 and
kLanWssPort = 9531, mirrored from types.rs, and a test in
conduit-protocol reads the Dart source to assert that no call site
hard-codes either number. The desktop binds 0.0.0.0:9527 and serves TLS
separately on 9531, with a test pinning the bind address to the plaintext
port.
The relay runs inside the desktop app as a background task
(apps/desktop/src-tauri/src/relay.rs). It is on by default, it is not a
deployment, and there is nothing to install: no container, no compose file, no
service to keep alive. It carries traffic between two devices that are not on
the same network, and it forwards only opaque envelopes, so it never sees
plaintext. A desktop on a local network works perfectly well without it, which
is why the toggle is there.
- Turning it off is Settings → Other Networks. The other settings there
are
relay_port(9529),relay_health_port(9530) andrelay_hostname. - The bearer token is not a setting. It is generated once and kept in the OS
keyring under account
relay_token, beside the database key and the X25519 identity. Never type it anywhere; a phone is told the relay's details by pairing, not by copying a token out of a file. - The port has to be reachable. A phone on another network cannot reach 9529 on your desktop's LAN address. You need a router port-forward, a VPN, or a tunnel — and Conduit does not configure any of that for you. It is the one part of the relay path that is your problem.
- A relay restart is a desktop restart, because the relay is a task inside the app.
- The relay never sees plaintext. It routes already-encrypted envelopes between two peer connections.
See docs/relay-tls.md for how the certificate and the
pin work.
The stack is free and open source. There is no paid API, no managed database,
no telemetry SDK and no license-key-gated dependency in any of the three
ecosystems: 70 direct Rust dependency declarations across the three
Cargo.toml files and 750 packages in the single root Cargo.lock, 37 npm
dependencies in apps/desktop/package.json, and 20 Dart dependencies in
apps/mobile/pubspec.yaml.
Several choices exist specifically to keep a cost off a hosted service:
secrets go to the OS keyring on the desktop and the platform keystore on the
phone, discovery uses mdns-sd and multicast_dns rather than a rendezvous
service, QR scanning runs on the device, and at-rest storage is SQLCipher
compiled from source rather than a managed database.
Those choices move cost onto your hardware rather than removing it. The QR scanner needs a one-time model download on Android before it works offline, the keyring is only as durable as the operating system's credential store (a desktop with no secret service falls back to a permission-restricted key file), and SQLCipher compiled from source is exactly what makes the desktop Rust build depend on a vendored OpenSSL.
Run every cargo command from the repository root with -p, and run npm
and flutter commands from their own component directory.
| Suite | Working directory | Command | Current result |
|---|---|---|---|
| Relay | repository root | cargo test -p conduit-relay |
247 passed, 0 failed, 1 ignored, plus 2 doctests |
| Protocol | repository root | cargo test -p conduit-protocol |
281 passed, 0 failed, plus 1 doctest |
| Desktop Rust | repository root | cargo test -p conduit |
817 passed, 0 failed. Needs the vendored OpenSSL. |
| Desktop typecheck | apps/desktop |
npx tsc --noEmit |
exit 0 |
| Desktop unit | apps/desktop |
npm test |
249 passed, 22 files |
| Desktop e2e | apps/desktop |
npm run test:e2e |
Playwright against a plain browser. Tauri IPC is unavailable, so it covers the shell and nothing behind it. |
| Mobile unit | apps/mobile |
flutter test |
194 passed |
| Mobile analyze | apps/mobile |
dart analyze --fatal-infos |
370 lint infos, 0 errors, 0 warnings. Exits non-zero because --fatal-infos treats infos as fatal, which is why the CI step is non-blocking. Plain dart analyze exits 0. |
| Rust format | repository root | cargo fmt --all -- --check |
clean |
| Mobile integration | apps/mobile |
flutter test integration_test |
needs a connected device or a running emulator |
Every figure in this table was re-measured. All of them were wrong before: the
0.1.0 release figures (187 / 275 / 724 / 222 / 87 / 362) had been carried here
unchanged through three commits that added tests, and the relay row also omits
the one #[ignore]d fixture generator.
The coverage is not uniform, and the gaps are worth stating plainly rather than reading a green run as more than it is:
- There are no Rust integration tests. No
tests/directory exists anywhere in the repository. Every Rust test is an in-crate unit test, so none of them can exercise the crate the way a consumer would. - No test exercises real Tauri IPC. The mock at
apps/desktop/__mocks__/tauri.tsis three lines and itsinvokereturnsundefinedfor every command. - There is no cross-language conformance test. Nothing verifies that
types.rs, the generated TypeScript and the generated Dart agree. The schema-sync tests link the Rust types toschema.jsonand check a few textual invariants in the Dart source; beyond that, the guarantee is two regeneration steps and discipline. - The Playwright suite cannot reach the backend at all. It proves the React shell renders and degrades. It proves nothing about a Rust command.
dart formatis checked and is not blocking. Most of the Dart tree is unformatted, so do not assume a Dart diff is format-clean.
docs/TESTING.md covers all of this in detail, including
what each suite does cover and a prioritised list of the gaps.
| Document | What it covers |
|---|---|
docs/ARCHITECTURE.md |
Component design, ownership, data flow and the module boundaries. |
docs/DEVELOPMENT.md |
The three working directories, prerequisites, build, lint, code generation, and the checklist for a cross-layer protocol change. |
docs/TESTING.md |
Every test command, what each suite covers, and what is not covered. |
docs/relay-tls.md |
Relay certificates, SANs, the pin algorithm, ACME, renewal and troubleshooting. |
docs/decisions/ |
Architecture decision records, with an index and a one-line summary per decision. |
packages/protocol/PROTOCOL.md |
The normative wire protocol specification, message by message. |
packages/protocol/README.md |
The conduit-protocol crate specifically. |
SECURITY.md |
Threat model, what is and is not defended against, and how to report a vulnerability. |
CONTRIBUTING.md |
How to get the project running, which checks to run, and the conventions a change is expected to follow. |
CHANGELOG.md |
Release history and the current list of known limitations. |
CODE_OF_CONDUCT.md |
The Contributor Covenant, and how to report a violation. |
LICENSE |
The MIT licence text. |
Conduit is maintained by one person outside working hours, so a first response
to an issue or a pull request can take a while, and review tends to be detailed
and slow. Read CONTRIBUTING.md before your first change:
it covers the setup, the checks, and the two invariants worth defending in
review, the single root Cargo.lock and the rule that generated files are
never hand-edited. Small, well-scoped pull requests are easier to land than
large ones.
Conduit is released under the MIT licence. The full text is in
LICENSE.
Only conduit-protocol and conduit-relay declare license = "MIT" in their
crate manifests so far; the conduit manifest does not yet carry a license
field.