# Waycar is open source

The full source of Waycar, the free iPhone and iPad console for coding agents, is now public, with swift-mosh and simslot in their own repositories.

Published 2026-12-01

I set out to build one console for every coding agent I run, whatever runs it: Claude Code, Codex, opencode, pi and others, on herdr, tmux, Zellij, herdr-core or Ultimate, or in Codex's and OpenCode's own servers. It had to work on a bad connection and with none. That became Waycar, my free iPhone and iPad app. I built it with a team of AI coding agents: they wrote, reviewed and tested the code; I decided what to build and checked the results.

Its full source is public, in three repositories:

- [waycar/waycar-app](https://github.com/waycar/waycar-app): the native app, the Host Tools plugin, the Push Relay and the website, under Apache-2.0.
- [waycar/swift-mosh](https://github.com/waycar/swift-mosh): wiedymi's pure-Swift mosh client, with the patches Waycar ships on top, under MIT like upstream.
- [waycar/simslot](https://github.com/waycar/simslot): the machine-wide queue that lets many coding agents share one Mac's iOS simulators, under Apache-2.0.

The upstream libraries keep their own licenses and notices.

## What it does

I wanted quick answers away from my desk. Which agent needs me? What is it asking? Can I send the next message without fighting a phone terminal?

The Console puts agents from your Hosts in one list, with blocked agents first. Open one to see its live terminal. Write a message in a native Composer, then send the whole message at once. Chat Mode lets you read supported agents' replies as a chat. The Host Tools handle pairing, status hooks, and encrypted notifications when an agent needs input or finishes.

It is an agent console, not a place to run models on your phone. You need an iPhone or iPad on iOS or iPadOS 18 or later, SSH access, and a Host that stays on and reachable, running herdr 0.7.5 or later, tmux 3.2 or later, Zellij 0.46 or later, herdr-core 0.1.10 or later, a Codex 0.167 server or OpenCode 2.2. Features differ by runtime.

herdr is an independent open-source project. Waycar is a third-party client, not part of herdr.

Waycar connects over SSH. Terminals can use mosh when the Host has `mosh-server` and UDP can reach it, so they ride out network changes; otherwise they use SSH. A message you write, or an agent you start, while the Host is out of reach waits on the phone and goes out when it is back. There is no cloud relay for your sessions. Optional push notifications are separate: the Host encrypts their content, and a Push Relay forwards it to Apple. That relay still sees delivery metadata. Optional analytics, AI Summaries and iCloud Sync have their own data paths, described in the [privacy policy](https://waycar.dev/privacy).

## Why open source

The App Store app is free. I want the source to be open too, so using it does not mean taking my word for how it connects, stores keys or sends notifications.

With the whole repo open, you can check those boundaries yourself. You can follow a notification from the Host Tools through the relay to the app. You can read a transport fix next to the test that caught it. You can build a version for your own setup.

I also want the work behind the app to be useful outside it. Mobile terminals have awkward edge cases. Some of the most useful changes here came from tracing one wrong screen or one slow connection through several layers. Those fixes are worth sharing, even if you never install Waycar.

The code is not finished. There are rough edges, and features differ between backends. With the source and tests in the open, those limits are easier to discuss.

## What is in the repo

- `Sources/` holds the SwiftUI app and its native extensions. `Tests/` holds app and UI tests.
- `Packages/WaycarSSH/` wraps libssh2 and OpenSSL. `Packages/SwiftMosh/` holds the Swift mosh client. `Packages/GhosttyTerminal/` holds the terminal integration. Their provenance notes record local changes.
- `plugin/` holds the Host Tools: a static Rust program, status hooks, pairing and notification support. The tools do not need Node on the Host.
- `relay/` holds the stateless Push Relay and its tests. It uses Node for development and testing.
- `apps/web/` holds the Astro site, help pages and articles.
- `docs/` records design decisions and setup guides. `scripts/` and the root `Makefile` cover builds, tests and release tasks.

## Build it or contribute

Start with [CONTRIBUTING.md](https://github.com/waycar/waycar-app/blob/main/CONTRIBUTING.md). The native app needs a Mac, Xcode and XcodeGen. Clone the repo, install XcodeGen, then use the Make targets:

```sh
git clone https://github.com/waycar/waycar-app.git
cd waycar-app
brew install xcodegen
make help
make build-sim
```

Use `make test` for the native tests. Simulator targets share a slot queue; free your slot with `make sim-release` when you are done. A device build needs your own signing setup. A self-built app that uses its own Push Relay also needs Apple push credentials for its bundle ID.

For the Host Tools, run `cargo test --locked` inside `plugin/`. For the relay, run `npm test` inside `relay/`. You can work on either without building the iOS app.

Bug reports from real setups help. Include the backend version, OS, SSH setup, what you expected and what happened. Remove keys, tokens, addresses and private project details. For a change, pick one problem, read the nearby design notes, and include a focused test. Report suspected security issues privately, not in a public issue.

## The story behind it

I wrote down how Waycar was built, and what went wrong along the way:

- [One developer, a team of AI agents, and the stack under an iPhone app](https://waycar.dev/articles/the-waycar-story): how I built the app and the libraries under it with AI coding agents, reviews and tests.

Technical chapters go deeper:

- [A mosh diff belongs to its base, not the screen I happen to show](https://waycar.dev/articles/mosh-older-base-repaint): why a newer screen update can depend on an older screen.
- [Making SSH channel opens overlap without making the session unsafe](https://waycar.dev/articles/libssh2-pipelined-opens): opening SSH channels without waiting for each round trip in turn.
- herdr's 100 ms API tick, coming later: tracing a request delay to the server's read loop.

## Thanks

Waycar stands on other people's work. Thank you to wiedymi for [swift-mosh](https://github.com/wiedymi/swift-mosh), and to the people behind [herdr](https://herdr.dev), [mosh](https://mosh.org), [libssh2](https://libssh2.org), [OpenSSL](https://openssl.org), [Ghostty](https://ghostty.org) and [libghostty-spm](https://github.com/Lakr233/libghostty-spm).

Their work is a large part of what you see on screen. I hope the source, fixes and tests here give something useful back.

---

Waycar: https://waycar.dev/help/what-is-waycar. On the App Store: https://apps.apple.com/app/id6815881853

Waycar Articles: https://waycar.dev/articles/waycar-is-open-source
