Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

openmsg

Latest version: v0.9.1

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: marciob
2 Stars
2 Forks
19 Versions
1.2K Downloads
JavaScript Repo language

Scan summary

openmsg was last scanned on 23 Nov 2026 at version 0.9.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 19 versions; the latest 5 were published within 2 days (22 and 23 Nov 2026).
  • Findings: No rules fired in version 0.9.1.
  • Downloads: 1,202 downloads.

Versions

19 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.9.1 LATEST 23 Nov 2026 No rules fired
0.9.0 23 Nov 2026 No rules fired
0.8.2 23 Nov 2026 No rules fired
0.8.1 22 Nov 2026 Not shown
0.8.0 22 Nov 2026 Not shown

No rules fired in 0.9.1

Findings

Findings for v0.9.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.9.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

openmsg

Messages between AI coding agents of different vendors, on one machine or between two people.

A Claude Code session can send a message to a Codex session. An OpenCode session can answer a Claude Code session. The message goes into the session that already runs, with its context, and not into a new process.

Two people who work on one project can do the same across their machines. Those messages are sealed end to end, and the server that carries them cannot read one.

Status: version 0.2 is on npm. Version 0.1, between the agents of one person, works and is tested with live sessions. Version 0.2, between two people, passes the fourteen acceptance cases of its specification, and the live tests on one machine. No team has run it across the internet yet.

How it works

Each vendor has its own way to accept a message while it runs. openmsg uses that native way, and gives all of them one command:

openmsg list                  # the agents that run now, and the work of each
openmsg note "<text>"         # tell the other agents what this one does
openmsg send <agent> "<text>" # deliver a message now
openmsg inbox                 # the messages for this agent
openmsg whoami                # how other agents address this one

An address is <vendor>:<name>, for example claude:api-worker.

Vendor How openmsg delivers the message State
Claude Code The inbox socket of the session Works, tested live
Codex codex queue on the shared app-server daemon Works, tested live
OpenCode 2.x: POST /api/session/{id}/prompt on the shared service, with the password from ~/.local/state/opencode/service.json. 1.x: POST /session/{id}/prompt_async Works both ways, tested live with 2.2.6
Cursor CLI A hook reads the mailbox at the end of each turn Written, tested with fixtures. A live test needs CURSOR_API_KEY
Gemini CLI The same hook, as an AfterAgent deny Written, tested with fixtures. Gemini CLI is not installed here
Antigravity CLI (agy) A Stop hook in ~/.gemini/config/hooks.json that continues the turn with the message. Discovery reads the presence files that a live session holds open Written, tested with fixtures. A live test is next
An agent that wakes on an HTTP request openmsg webhook add <name> <url>. The request carries a notice with no text of the sender, and the agent reads the message with openmsg inbox Works, tested live with a hosted bot on its own machine, through a relay on a private network
A chat product that takes an MCP connector openmsg mcp add <name>, and openmsg mcp serve --as <name> as the server. Nothing wakes the agent: it reads its mailbox with a tool, and the tool can wait 45 seconds for an answer Works, tested live with three chat products: ChatGPT through a tunnel of its vendor, Claude on the web over HTTP behind a token, and Gemini on the web over HTTP with OAuth
Other agents tmux send-keys Not started

A reply is a new message. The receiving agent answers with openmsg send. No program reads the screen of another program.

Gemini on the web as an orchestrator

Gemini on the web can send work to your Claude Code and Codex sessions, and wait for the answer in the same turn. You do not ask it to check again.

  1. Name Gemini as an MCP agent, and give the addresses that it can write to:

    openmsg mcp add gemini --allow "claude:*" --allow "codex:*"
  2. Start its server on the loopback address, on a random path, with OAuth. Gemini takes no fixed token, so it needs OAuth:

    P=/$(openssl rand -hex 16)
    openmsg mcp serve --as gemini --http --port 7813 --path "$P" \
      --oauth --public-url "https://<your-host>$P"
  3. Give the port to the internet with TLS, for example with Tailscale Funnel:

    tailscale funnel --bg 7813

    Gemini also reads the OAuth discovery paths under /.well-known/, so the proxy must give the root of the port, not only the path.

  4. In Gemini, add a custom connector with the URL https://<your-host>$P. The approval page asks for a secret. The secret is in ~/.openmsg/mcp-gemini.token.

  5. In the settings of the connector, set the tools to "always allowed".

Then write in a new chat:

@Openmsg send to claude:api-worker "run the tests and tell me the result"

What happens:

  • After a send, the tool tells Gemini to call read_inbox with wait_seconds 45.
  • read_inbox returns when the answer arrives, or after 45 seconds.
  • Gemini calls it again while no answer arrives.
  • A live test passed: one wait of 45.9 seconds, a second call, and the answer in the chat, with no question from the user.

Limits:

  • Start the message with @Openmsg. Without it, Gemini sometimes answers from its memory and does not call the tool.
  • Use a new chat after a change of the server. An old chat keeps the tools that it got at its start.
  • One report says that Gemini stops a tool call after about 60 seconds. One wait is therefore 45 seconds at most.
  • The number of calls in one turn has a limit, and Google does not give it. Two calls worked. A task of many minutes can end the turn before the answer arrives. Then ask Gemini to read its inbox.
  • Nothing wakes Gemini after its turn ends.
  • Custom connectors are not available on every Google account.
  • Gemini keeps one OAuth token for each host name, and it ignores the port. Two connectors on one host name disconnect each other, even on two ports. Give each server its own host name.

A message for a later session

A program with no session, such as a scheduled check, can send to a directory:

OPENMSG_SELF=cron:memcheck openmsg send project:~/dev/app "<text>" --key leak
openmsg clear project:~/dev/app --key leak   # the fault is gone
openmsg waiting                              # the messages that wait

If a Claude Code session runs in that directory, or in a directory inside it, it gets the message now. If no session runs, the message waits on disk. The next session in that directory gets it one time, through a SessionStart hook. A message with the same --key replaces the one that waits, so a daily check keeps one message. A message expires after 30 days.

The agents of another person

Version 0.2 adds one more step: an address with an owner, such as claude:api-worker@alice.

openmsg id create --label alice       # a signing key and a sealing key
openmsg invite create --project web   # a token for the other person
openmsg invite accept <token> --fingerprint "A1B2 ..."
openmsg publish claude:api-worker     # let the project reach this session
openmsg gateway start --relay <url>   # the one process that the network reaches
openmsg send claude:reviewer@bob "the migration drops a column"

What holds:

  • Nothing is published by default. A session is reachable after openmsg publish, and only in the project that the owner names.
  • A new sender waits. The first message of a person stays outside the model until the owner runs openmsg accept. Membership of a project is not permission to write into a session.
  • Every message is sealed end to end. The relay carries bytes that it cannot read. It learns who writes to whom, when, and in which project, because it needs that to route. The product does not pretend otherwise. The relay speaks TLS, and it refuses to listen on any address but this machine without a certificate.
  • A relay takes only the owners of its team. On the machine of the relay, name each owner with openmsg relay allow <owner-id>. Without a list, any owner that finds the address of the relay can connect, and the secret address is the only bound. The relay calls a wake address only on the public internet.
  • A signature proves the person, and a fingerprint proves the key. Two people compare a fingerprint out of band before the first message.
  • Each machine holds its own key. The owner key stays on one machine and signs a delegation for the others. One stolen machine costs one delegation, and the identity of that person holds. Several machines of one person work at the same time, and a message is sealed for the machine that holds the session.
  • A message never carries authority. The receiving agent works inside the permissions that its own user already gave it.

The states of a message are queued, held, adapter-accepted, agent-acknowledged, replied, refused, and expired. A write to a socket is not a read by a model: only an event from the agent gives agent-acknowledged.

Message format

The envelope uses the field names of the A2A standard (messageId, contextId, parts, role). The same message can travel over A2A on HTTP later, between two machines.

Each delivered message carries a header that names the sender. The text tells the receiving model that the message is from another agent, and that it approves nothing. Each message keeps a list of the agents that it passed through, so a loop between two agents stops.

Install

npx openmsg list

Or from the source:

git clone https://github.com/marciob/openmsg.git && cd openmsg
node src/cli.mjs list

Node 22 or later. No dependencies, and none for the relay either: the WebSocket of src/wsframe.mjs is both sides of RFC 6455 in one small file.

Run the tests with node --test. 105 of them, and they need no account: they run two gateways and a relay on this machine, as two people.

An agent with no push entry point needs its hook. Claude Code needs its hook for a message to a directory:

openmsg install --hooks

Troubleshooting

EPERM: operation not permitted on macOS

The symptoms:

  • openmsg list or openmsg send stops with EPERM: operation not permitted, open '.../src/cli.mjs'.
  • Codex shows Hook failed: hook exited with code 126.

The cause: macOS protects ~/Desktop, ~/Documents, and ~/Downloads. A program in a terminal gets access to these folders through the terminal app. When the terminal app loses this access, every agent in that terminal loses it too. An update of the terminal app can cause this. On 2026-10-22, an update of Cursor caused it on one Mac. The sandbox of the agent is not the cause.

To find the process that macOS blocks:

log show --last 10m --predicate 'eventMessage CONTAINS "System Policy"' | grep deny

To correct the fault:

  1. Open System Settings > Privacy & Security > Full Disk Access.
  2. Remove the terminal app (Cursor, VS Code, iTerm, or Terminal), then add it again.
  3. Quit the terminal app, then open it again. A running app keeps the old state.

Until you do this, an agent in that terminal still receives a message, because the entry point of each vendor is outside these folders. The agent cannot send a message.

How each vendor lets a message in

research/2026-09-19-transport-research.md is the work that produced this design. It tests every way one program can put a message into a running agent: typing into the terminal of another program, the native entry point of each vendor, subprocess calls, mailboxes, A2A, and ACP. Each claim carries a label: [local] for a fact that a test on one Mac verified, [docs] for a fact from the vendor, and [not verified] for a fact from a source without a test.

The short answer: typing into a terminal is possible and bad, and each of the four main agents has an official way to take a message while it runs.

Spec

  • spec/openmsg-0.1.md: the protocol for the agents of one person on one machine.
  • spec/openmsg-0.2-draft.md: the agents of different people on one project. The identity of an owner, the sealed envelope, the gateway, the relay, the seven states of a message, and the trust rules. Every rule of 0.1 still holds.

The code implements both, and the fourteen acceptance cases of section 11 of 0.2 pass as tests.

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm openmsg

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229