Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

session-peer

PyPI PyPI downloads per week PyPI downloads per month CI License: MIT

English · 한국어 · 日本語 · 简体中文

Find and message Claude Code and Codex sessions, locally or over SSH, from one CLI.

Ask a session on another machine to review a change, report progress, or pick up a task. For example, ask api-worker on SSH host worker to review a change. session-peer uses native agent inboxes and queues; the receiving agent controls how incoming messages are handled.

See it in action

This 26-second recording uses live Codex and Claude Code sessions over the local transport—there is no mocked output.

  1. Codex discovers the exact Claude Code session.
  2. Codex posts a review request to the session's native inbox.
  3. Claude Code follows the structured reply address and sends a response.
  4. Codex receives the explicit reply in its own session.
sequenceDiagram
    participant C as Codex session
    participant P as session-peer CLI
    participant I as Claude Code native inbox
    participant H as Claude Code session
    C->>P: Discover exact session
    P-->>C: Return host and session ID
    C->>P: Send request and reply address
    P->>I: Write via local or SSH transport
    I-->>H: Deliver request
    H->>P: Send explicit reply
    P-->>C: Deliver to Codex native inbox

Live Codex-to-Claude Code messaging demo

26-second looping demo: Codex sends a request to Claude Code and receives an explicit reply. A successful post confirms only the inbox write. The explicit reply at the end confirms that the receiving session consumed the request and responded.

Quick start

Python 3.9+. The core CLI has no third-party Python dependencies.

pipx install session-peer
# Alternative: uv tool install session-peer

session-peer list
session-peer list --host worker

Send your first message

The names and UUID below are fictional examples. Discover your destination first, then replace them with a session from its listing.

session-peer send --to api-worker --message "Report progress"
session-peer send --host worker --to 'codex:00000000-0000-4000-8000-000000000001' --message "Review the change"

Replace worker with your SSH host or alias, api-worker with a discovered session name, and the example UUID with the full ID from the destination's listing. The destination needs Python and the target agent's inbox or queue; session-peer itself need not be installed there for SSH list/send.

posted / queued means submitted, not read or completed. Saved Codex threads may be inactive. Ask for an explicit reply when completion matters.

Common tasks

Task Command / guide
Filter by agent session-peer list --agent codex
Inspect connectivity and agent setup session-peer doctor --host worker
Resolve without sending session-peer send --to api-worker --dry-run -m "hello"
Get JSON results session-peer list --output-format json
Read a message from a file session-peer send --to api-worker -m - < message.txt
Optional MCP tools / Codex plugin MCP setup
Activate a queued Codex session Opt-in wake

Installation options

Install the runtime with pipx or uv, or run python -m pip install session-peer in an activated virtual environment. Install the agent skill separately from its dedicated repository:

npx -y skills@latest add abruption/session-peer-skill \
  --skill session-peer --global \
  --agent claude-code --agent codex --agent antigravity \
  --copy --yes

For air-gapped or SSH deployment, the POSIX ./install.sh [--host worker] path continues to bundle a compatibility copy of the skill. On native Windows use a Python package manager for the runtime. Optional MCP tools require Python 3.10+ and session-peer[mcp]. See installation details.

Let an AI assistant help

If you would rather describe the goal than work through every document, give your coding agent the AI-assisted setup and operation guide. It provides a reusable request, approval and secret-handling boundaries, validation steps, and a completion-report format. You remain in control of account changes, public exposure, payments, reboots, merges, releases, and publication.

Optional 1.0 release candidate features

The opt-in 1.0.0rc4 release candidate carries the authenticated public relay toward the stable v1 contract and keeps the experimental Antigravity bridge. Unfiltered list also includes live registered bridges. Paired devices / encrypted relay require Unix, Python 3.11+ and the [relay] extra. Device identities are pinned and targets need explicit authorization on the receiving endpoint. The blind WSS relay cannot decrypt application messages; hosted-service availability remains separate from the package. Install the release candidate explicitly with pipx install 'session-peer[relay]==1.0.0rc4'; normal upgrades do not select prereleases. Start with the session-peer project page and the paired-device guide above. RC publication does not establish hosted-service availability. Ordinary local/SSH commands remain dependency-free.

Before you send

  • Use the correct destination account and agent home; for custom Codex homes, pass the listed codexHome path with --codex-home. SSH access and receiver permissions still apply.
  • Plain sends do not activate inactive sessions. Explicit wake can start a turn and consume usage; MCP requires separate wake permission.
  • Redact secrets, conversation text, session IDs, and personal paths before sharing diagnostics.

Documentation

The README and detailed documentation are available in English, Korean, Japanese, and Simplified Chinese. English is canonical; CI checks that translated files, commands, requirements, and behavior stay aligned. These translations do not change the CLI output language.

Support and security

GitHub Issues for bugs and features; private reporting for vulnerabilities (security policy). For private questions or an alternative security contact, email support@abruption.dev with [session-peer] in the subject. Support is best effort. Emails are reviewed manually and never automatically published as issues. English and Korean reports are welcome.

MIT license.

Release files for session-peer 1.0.0rc4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for session-peer 1.0.0rc4
File Size Uploaded
session_peer-1.0.0rc4.tar.gz 3.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for session-peer 1.0.0rc4
File Interpreter ABI Platform
session_peer-1.0.0rc4-py3-none-any.whl Python 3 none any Details

Total release size: 3.4 MB

Release files / session_peer-1.0.0rc4.tar.gz

Download URL session_peer-1.0.0rc4.tar.gz
Size 3.3 MB
Tags Source
SHA-256 checksum
How to use checksums
1055041985ccaff88ebe6c8e8f0ab33d1902ce970f65af9b9948eda890bea93b
BLAKE2b-256 checksum
How to use checksums
18d07d15338841a8f30a60efa81ffcdcec6430cfaf10210850bbf006156862a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release files / session_peer-1.0.0rc4-py3-none-any.whl

Download URL session_peer-1.0.0rc4-py3-none-any.whl
Size 103.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3caab3b999a88536cd50e41496d481d522d7e27e7a646201f1a3a5183802fb38
BLAKE2b-256 checksum
How to use checksums
d4b545da691c35667b22c55ec123d51a9846a7fdb0384137ed33f32f784886b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page