Skip to content
itsh-cloudPublic

About

falar: end-to-end encrypted messaging between AI agent sessions across machines

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

falar

End to end encrypted messaging between your AI agent sessions, across machines.

License Go version Status Platforms

You run Claude Code or Codex on a laptop, a workstation and a build box. falar lets those sessions find each other, talk and hand over files, without you copying text between terminals.

What it does

  • Messages: any session of your account can message any other, by session ID or name.
  • Files: up to 5 files per message, each at most 25 MiB.
  • Wake: an idle session is woken when a message arrives for it.
  • Links: one of your sessions can talk to one session of someone else's account, once you both agree.
  • End to end encrypted: the relay forwards ciphertext it cannot read.
flowchart LR
    subgraph laptop
        S1["agent session"] -- "falar_send" --> D1["falar daemon"]
    end
    subgraph workstation
        D2["falar daemon"] -- "hook or wake, then falar_read" --> S2["agent session"]
    end
    D1 == "signed, sealed envelope" ==> R[("relay")]
    R == "signed, sealed envelope" ==> D2
Loading

The sending daemon signs each message and encrypts it to the receiving machine's key, so only the two ends can read it.

Status

falar is in closed beta at falar.dev. The protocol and the commands can still change.

Install

Method Command
Installer curl -fsSL https://falar.dev/install.sh | sh (checks the binary against the release's SHA256SUMS)
Go 1.27 or later go install falar.dev/falar/cmd/falar@latest
From source see below

From source, with just:

git clone https://github.com/itsh-cloud/falar.git
cd falar
just build                                   # writes dist/falar
install -m 0755 dist/falar ~/.local/bin/falar

just test, just vet and just lint run the checks.

Quick start

On the first machine:

falar login    # GitHub device login, or --email ADDR for a mailed code
falar setup    # installs the falar plugin into Claude Code and Codex

The first login creates the account and shows its recovery string. Write it down and keep it offline.

On each further machine, run the same two commands. falar login prints falar devices approve <ID>: run that on a machine already in the account, type the 6-digit code it shows into the new machine, then answer y.

After falar setup:

  • Claude Code: restart running sessions to load the plugin.
  • Codex: at its next start, Codex asks you to review falar's hooks. Choose "Review hooks" and check them against the commands falar setup printed.
  • Other MCP clients: falar setup prints the server entry to add.

Then ask an agent, for example "send the failing test log to the session on the build box". It uses the tools below.

Commands

Command What it does
falar login Log in, then create the account or join it from another device
falar login --rejoin Pair this device again as a new device, after a fork or key alarm
falar login --recover [--keep-devices] Add this device with the recovery string; revokes the other devices unless --keep-devices
falar devices [list] List the devices, and those waiting for approval
falar devices approve [DEVICE-ID] Approve a new device by its 6-digit code
falar devices revoke DEVICE-ID Remove a device from the account
falar devices rotations DEVICE-ID List a device's key rotations, to compare across devices
falar devices activity DEVICE-ID [--entries [--days N]] Count or list the envelopes exchanged with a device
falar devices activity compare DEVICE-ID Compare a block that device printed with this device's records
falar link ... Links to other accounts, see below
falar sessions List the account's agent sessions
falar status Connection, alarms, warnings, and each local session's hooks and wake
falar setup [--remove] Install or remove the Claude Code and Codex plugins
falar daemon Run the per-machine daemon; other commands start it
falar mcp Serve the MCP tools on stdio; the plugins run it
falar hook EVENT --harness HARNESS Handle one harness hook; the plugins run it
falar version Print the version

falar login also takes --name NAME (default: the host name) and --relay URL. The relay is https://relay.falar.dev unless --relay, FALAR_RELAY or relay in config.json names another.

MCP tools

Tool What it does
falar_sessions List the account's sessions, on this machine and others
falar_send Send text to a session, or over a link with link
falar_send_file Send up to 5 files with optional text; they upload in the background
falar_sent List sent messages with their delivery status
falar_read Read and remove unread messages; received files land on this machine
falar_wait Wait up to 50 seconds for a message, then read
falar_status Connection, alarms and warnings
falar_rename Set this session's label
falar_links List the links this session holds

Hooks only tell a session that messages are waiting. The text reaches the model through falar_read or falar_wait, framed as coming from another agent, not from the user.

In auto mode Claude Code can block MCP tools. falar setup offers to allow the read tools (falar_read, falar_wait, falar_sessions, falar_status, falar_sent). Sending stays under Claude Code's review.

Waking idle sessions

  • A session is woken only between turns, and at most 5 times in a row before its user prompts again.
  • Sessions in bypass mode are not woken unless config.json sets "wake_bypass_sessions": true.
  • Claude Code can hold or refuse the wake under its crossSessionInbound setting.

Links to other accounts

A link joins one of your sessions with one session of another person's account. Nothing else crosses: no session lists, no device names.

Step Who Command
1 you falar link invite SESSION, then send the invite over any channel
2 they falar link redeem SESSION, and paste the invite
3 you falar link accept LINK, after comparing the fingerprint, for example on a call
  • An invite works once and expires after 7 days.
  • Each side picks what it takes in: text only by default, files and wake only when allowed. falar link scope LINK [--files on|off] [--wake on|off] changes it.
  • falar link list shows your links. falar link revoke LINK ends one for both sides.
  • Every step asks on the terminal. No MCP tool creates or changes a link.

Security model

End to end encrypted Visible to the relay
Message text Device names, IDs and public keys
Files and their names Who sends to whom, when, and how much
Link labels, and which session holds a link Session names, harness, working directory name and status
  • Each device has its own keys. Messages are sealed with HPKE using hybrid ML-KEM-768 and X25519, and signed with Ed25519.
  • The account's devices form a signed chain. The relay cannot add a device or swap a key, and a proven fork pauses messages.
  • A new device joins only after you compare a 6-digit code.
  • Encryption keys rotate every 7 days.
  • Keys live in a file only your OS user can read, so any process of that user, agents included, can read them.

docs/protocol.md holds the full specification, with the trust model and known limits.

Codex support (experimental)

Codex works through the same plugin, with a few differences:

  • Codex asks you to review falar's hooks again after each falar update.
  • /clear, /new and /resume start a new falar session.
  • Wakes go through codex queue.

Licence

Apache License 2.0

About

falar: end-to-end encrypted messaging between AI agent sessions across machines

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages