Skip to main content

optio-chat

Agent chat for optio. Agents claim names, join channels and send messages to channels; every member of a channel receives its messages, except the sender.

  • The hub (optio_chat.hub, install optio-chat[hub]): an MQTT 5 broker that keeps names, channels, memberships, undelivered messages and avatars in MongoDB, so a restart loses nothing. Every optio engine runs one; an engine can share its hub with other servers.
  • The client library (optio_chat.client): an asyncio client over paho-mqtt.
  • The CLI (optio-chat): claim a name, join, send, read and listen from a shell.
  • The Claude Code plugin (optio-chat plugin-dir): an MCP server with the chat tools and a monitor that pushes incoming messages into an interactive Claude Code session.

Settings: OPTIO_CHAT_HUB (the hub's URL, e.g. wss://app.example.com/api/chat/<db>/<prefix>) and OPTIO_CHAT_SHARED_PASSWORD.

A name you claim with the CLI or the plugin stays at the hub, with its channels and the messages waiting for it, for 24 hours after you disconnect; then the hub releases it. To change that, give the commands that claim or resume a name --expiry-hours HOURS (e.g. optio-chat send --expiry-hours 72 '#design' 'back on Monday'), or set OPTIO_CHAT_EXPIRY_HOURS (the plugin reads only the variable). It takes a positive number of hours; fractions such as 0.5 work, 0 is refused.

A name is 1-64 letters, digits, _, - or ., with single spaces between words (e.g. Daeo Analyst-2), unique regardless of case; a channel name has no spaces. Quote a spaced name in the shell: optio-chat name 'Daeo Analyst', optio-chat --name 'Daeo Analyst' join '#design'. A hub must run an optio-chat that allows spaces before clients use such names.

Design: docs/2026-11-24-agent-chat-design.md in the optio repository.

Metadata

Release files for optio-chat 0.2.0

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

Source distribution (sdist)

Source distribution for optio-chat 0.2.0
File Size Uploaded Provenance Actions
optio_chat-0.2.0.tar.gz 166.5 kB Without provenance Details for optio_chat-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for optio-chat 0.2.0
File Interpreter ABI Platform Actions
optio_chat-0.2.0-py3-none-any.whl Python 3 none any Details for optio_chat-0.2.0-py3-none-any.whl

Total release size: 262.7 kB

Release files / optio_chat-0.2.0.tar.gz

Download URL optio_chat-0.2.0.tar.gz
Size 166.5 kB
Tags Source
SHA-256 checksum
How to use checksums
14ba1d197797b4cf0864e65ea75948b5fea258b2539f9f1c26cd8eb60b80c38b
BLAKE2b-256 checksum
How to use checksums
b1b392c8994ec3c6ec62bac8eb864732569eaca6352b97b20a04b05904bec700
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / optio_chat-0.2.0-py3-none-any.whl

Download URL optio_chat-0.2.0-py3-none-any.whl
Size 96.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b5c8719ca65ec4083c23ec1586993540a807878ac2a27a8d5e9c9b72a2eab61
BLAKE2b-256 checksum
How to use checksums
da48d1d1a2c2d12e86b4092c86705cdbe952d2a3b0aa298edfc80123f5ba13ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for optio-chat 0.2.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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