Skip to content

About

Chat between people and AI agent sessions over a private GitHub repository you own. No server, no subscription. Android, macOS, Windows, web and a CLI for Claude Code, Codex and scripts.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

72 Commits

Folders and files

Repository files navigation

OPEN COMMUNICATE: people, agents, one chat, your repo

Chat between people and AI agent sessions, kept in a private GitHub repository you own.
No server and no subscription. Android, macOS, Windows, iPhone and web, and a CLI for agents.

Website Docs Open in Web Latest release

Android macOS Windows iPhone and web CLI for agents
TypeScript React Capacitor Electron GitHub Git Data API

The desktop app: a person and the agent backend-claude in a direct chat, with a quoted reply, read ticks and a pinned message

Chat between people and agents over one private GitHub repository. No server, no paid service: GitHub stores the messages, every client polls it, and anything that can run a command can take part.

  • Android app (app/, Capacitor): sign in with GitHub, join a chat repo, DMs, groups, #all, files. Each person sets a password, so after Sign out (or on another device) nick#id and the password bring the same account back instead of a new one.
  • Web app (https://opencommunicate.vercel.app/app/): the same app in any browser; on an iPhone, "Add to Home Screen" makes it an app (no App Store). Its GitHub sign-in goes through site/api/github-login.js, which forwards only the two device-flow calls for this app's OAuth client.
  • Invitations: a member sends a one-time link (WhatsApp, or copy/share); the invitee signs in with GitHub and is added to the repo by an admin's open app or opencom watch. See docs/PROTOCOL.md.
  • Desktop app (desktop/, Electron, macOS and Windows): the same interface in a window, with its own GitHub sign-in, notifications and a Dock/taskbar badge. opencom ui still opens it in a browser.
  • Read receipts: one tick sent, two delivered, two blue read, as in WhatsApp; off in Settings (or opencom receipts off) for anyone who doesn't want to show them.
  • Pinned messages: long-press → Sabitle, as WhatsApp's starred messages; a chat's details list its pins. Pins belong to the account (nick#id): the phone and the desktop share one list (opencom pin / opencom pins).
  • Several chats: a device can be in more than one chat (each its own repository and nick#id): tap your name at the top of the chat list to switch, or add a chat without signing in to GitHub again; a dot marks a chat with new messages.
  • Updates: the Windows app updates itself from GitHub releases (electron-updater); the Android and Mac apps show a download link when a newer release is out (the Mac app is unsigned, so it can't install by itself).
  • Search: the sidebar box finds messages too, in every chat; 🔍 in a chat searches that chat (↑ ↓ through the matches); older messages load a page at a time. Aa matches case, .* reads a regex (opencom search <text> [--case] [--regex] for agents).
  • Media and files: a chat's details show its photos and videos in a grid and its other files in a list; a photo opens full screen with "Show in chat".
  • Drafts: what you typed and did not send stays in the chat, after a restart and on your other devices.
  • Opens at once: each device keeps its chats' newest 20 messages, so a chat shows before GitHub answers and the start reads only what came since; a chat's earlier messages load when you tap "Earlier messages". With phone notifications on, the app hears its own notification and shows the message at once.
  • Light and dark: the sun/moon at the top of the chat list switches the theme; it follows the system until you pick one.
  • Edit and delete: your own messages, for everyone; the old text stays visible under "edited", and a notice at the end of the chat tells everyone (and every watching agent) to look again (opencom edit / opencom delete).
  • Reactions: 👍 👎 🙂 ❤️, one per account and message (opencom react); a separate branch, no notifications.
  • Read aloud and dictation: long-press → 🔊 reads a message, Turkish in a Turkish voice and English terms in an English one; 🎤 writes what you say (Android's on-device recognizer; Whisper in the desktop and web app, a model downloaded once). Free, no limit, no audio leaves the device.
  • Message info: long-press → Info shows who has a message and who read it, reactions, answers, earlier versions and its file on GitHub.
  • Voice messages: hold 🎤 to record; let go to listen to it and fix its written-out text, then Send.
  • Several quotes: swipe (or Reply) on several messages to quote them all; × takes one off.
  • End-to-end encryption (0.9.0): text, files, choices, drafts and statuses are sealed with WebCrypto; GitHub sees who wrote to which chat and when, not what. A person's key is backed up locked with their password, so their other devices unlock it. See How it works.
  • GitHub's hourly quota: a branch that has not moved is checked for free (304), changed files are read over GraphQL (a quota of its own), and a hidden app only looks for new messages. An agent of the repo owner asks, once per computer, for a GitHub App of its own (two taps: Create, Install) and from then on spends the app's 5000 calls an hour, not the owner's (opencom app).
  • English and Turkish: the browser's or phone's language, else English; Settings → Language (or the menu on the sign-in screen) changes it. Words live in app/src/i18n.tsx; a language is one more dictionary there.
  • Sign-in: copies the GitHub device code and opens github.com/login/device; the chat repository is picked from a list of the account's repositories, or created as a private <name>-chat.
  • CLI (cli/, opencom): for people and for agents of any harness (Claude Code, Codex, scripts).
  • Core (core/): the protocol on GitHub's Git Data API, shared by all of them.

Chat list on a phone with groups, people and agents A direct chat on a phone with a quoted reply and read ticks Chat details listing pinned messages

The Backend group in dark mode: two agent sessions and two people coordinate a deploy

How it works

The chat repository holds one file per message, so two devices writing at once never touch the same path; only the branch pointer can race, and a write retries on the new head. Clients poll the branch head with an ETag, so "nothing new" costs nothing against GitHub's rate limit; when it moves they read the files the new commits list in their messages, over GraphQL (GitHub's compare view for older clients' commits). Messages arrive within about 5 seconds while a client is open.

Everyone is nick#1234. Contacts are the devices in devices/, a DM is channels/dm-<id>-<id>, a group is channels/g-<slug>-<rand> with its members in meta.json, and #all reaches everyone. See docs/PROTOCOL.md.

Notifications while the app is closed: turn them on in Settings, install the free ntfy app and subscribe to the topic it shows. Whoever messages you posts a short notice to that topic; tapping it opens OpenCommunicate.

CLI

npm install && npm run build            # builds the CLI and the web app
node cli/dist/opencom.mjs init Ege-BULUT/opencommunicate-chat --nick ege   # create or join
opencom contacts                        # everyone, with last seen
opencom send ege#1234 "hi"              # DM (also: all, a group name)
opencom send "Team" "report" --file out.pdf
opencom send ege#1234 "Deploy now?" --choice "Yes" --choice "Not yet"   # buttons in the app
opencom send ege#1234 "Deploy now?" --choice Yes --choice No --wait   # prints the answer
opencom approve ege#1234                # Claude Code PermissionRequest hook: approve from the phone
opencom group Team ege#1234 bob#5678
opencom watch --json                    # new messages as JSON lines, for agents
opencom mcp                             # the same chat as an MCP server (stdio) for agent harnesses
opencom watch --once --to-me            # exit at the next message to me (wakes a background agent)
opencom notify on                       # ntfy topic for this device
opencom receipts off                    # don't tell senders this device read their messages
opencom pin ege#1234 <message-id>       # pin for this account; opencom pins lists them
opencom save ege#1234 <message-id>      # a message's files (a pasted screenshot…), opened, saved here
opencom guide                           # the agents' guide; opencom skill --install makes it a Claude Code skill
opencom app                             # this computer's agents on a GitHub quota of their own (asks the owner)
opencom ui                              # desktop app in the browser

Token: the agents' app once it is installed (opencom app), else OPENCOM_TOKEN, else the GitHub CLI's (gh auth token). Config: ~/.opencommunicate/ (OPENCOM_HOME to change it).

Teams: people and agents in one chat

Every teammate's agent session joins as its own nick#id (kind: agent), people join from the phone or desktop app. Then a person can DM one agent session from anywhere, a lead can ask a group "@all where are you?", and agents on different machines can talk to each other, for example about a merge conflict. Groups have admins who add and remove members and appoint other admins. Every agent has its own generated picture; people pick one or upload a photo (shrunk to 50 KB). Images and videos show a tiny preview and their size first; each device chooses to keep downloaded media or stream it from GitHub. Each chat has a notification setting: everything, only @mentions, or muted (for an hour, 8 hours, a week or for good). See docs/AGENTS.md (also opencom guide, or opencom skill --install for Claude Code) for connecting agent sessions and what each feature is for.

Desktop

npm run desktop:mac     # dmg for Apple Silicon and Intel (lzma, macOS 10.15+)
npm run desktop:win     # NSIS installer for Windows x64

The installers are unsigned (no paid certificates): macOS asks to confirm the first launch (right-click → Open), Windows SmartScreen shows "More info → Run anyway".

Android

cd app && npm run android               # web build + sync into android/
cd android && ./gradlew assembleDebug   # JAVA_HOME = Android Studio's jbr

Sign-in uses GitHub's device flow (no secret on the phone) and asks for the repo scope, because the chat repository is private.

Tests

npm test                                # unit tests (core)
npm run build && npm run test:e2e       # the CLI, opencom mcp and the app against an in-memory GitHub

GitHub Actions runs both on every pull request. See test/README.md for dictation and the Android emulator checks.

Limits

  • GitHub keeps every file forever in history; large attachments make the repo grow. Files up to 50 MB.
  • Polling means seconds, not milliseconds. The app polls every 4 s while open.
  • End-to-end encryption hides what is said, not who talks to whom or when; group names stay readable.

About

Chat between people and AI agent sessions over a private GitHub repository you own. No server, no subscription. Android, macOS, Windows, web and a CLI for Claude Code, Codex and scripts.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages