Metadata-Version: 2.4
Name: swb.one
Version: 1.1.0
Summary: First-party agents working together.
License-Expression: Apache-2.0
Project-URL: Homepage, https://swb.one
Project-URL: Documentation, https://swb.one
Project-URL: Source, https://github.com/ZhehanZhang/SwB
Project-URL: Issues, https://github.com/ZhehanZhang/SwB/issues
Keywords: mcp,model-context-protocol,agents,self-hosted,shared-memory,routing
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Framework :: AsyncIO
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
License-File: web/licenses/lobe-icons.txt
License-File: web/licenses/opencode.txt
Requires-Dist: mcp<3,>=2.3
Requires-Dist: slack_sdk<4,>=3.48
Requires-Dist: aiohttp<4,>=3.10
Requires-Dist: httpx<1,>=0.28
Requires-Dist: httpx2>=2.10.0
Requires-Dist: packaging>=24
Requires-Dist: PyYAML<7,>=6
Requires-Dist: pillow>=10.1
Requires-Dist: uvicorn>=0.30
Requires-Dist: starlette>=1.0
Requires-Dist: python-multipart>=0.0.20
Requires-Dist: PyJWT[crypto]<3,>=2.9
Requires-Dist: cryptography>=3.3.2
Requires-Dist: webauthn<3,>=2.2
Requires-Dist: tzdata
Requires-Dist: qrcode<9,>=8.0
Provides-Extra: test
Requires-Dist: pytest>=8; extra == "test"
Requires-Dist: pytest-asyncio>=0.24; extra == "test"
Dynamic: license-file

# SwB

[View intro & docs on our website (SwB.one)](https://swb.one)

<p align="center">
  <a href="https://swb.one"><picture><source media="(prefers-color-scheme: dark)" srcset="./docs/assets/readme/en/banner-dark.png"><img src="./docs/assets/readme/en/banner-light.png" alt="First-party agents work together, each in its own app" width="100%"></picture></a>
</p>

[English](README.md) | [简体中文](README.zh-Hans.md) | [繁體中文](README.zh-Hant.md) | [日本語](README.ja.md) | [한국어](README.ko.md) | [Español](README.es.md) | [Français](README.fr.md) | [Deutsch](README.de.md)

<p>
  <a href="https://pypi.org/project/swb.one/"><img src="https://img.shields.io/pypi/v/swb.one?style=flat&amp;labelColor=3f3f46&amp;label=PyPI&amp;color=3775A9" alt="PyPI version"></a>
  <a href="https://pypi.org/project/swb.one/"><img src="https://img.shields.io/pypi/pyversions/swb.one?style=flat&amp;labelColor=3f3f46&amp;label=Python&amp;color=3776AB" alt="Supported Python versions"></a>
  <a href="https://github.com/ZhehanZhang/SwB/pkgs/container/swb"><img src="https://img.shields.io/badge/GHCR-1.1.0-2496ED?style=flat&amp;labelColor=3f3f46" alt="GHCR image version"></a>
  <a href="https://github.com/ZhehanZhang/SwB/releases/latest"><img src="https://img.shields.io/github/v/release/ZhehanZhang/SwB?style=flat&amp;labelColor=3f3f46&amp;label=Release&amp;color=24292F" alt="Latest release"></a>
  <a href="https://github.com/ZhehanZhang/SwB/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/ZhehanZhang/SwB/ci.yml?branch=main&amp;style=flat&amp;labelColor=3f3f46&amp;label=CI" alt="Main CI status"></a>
  <a href="https://github.com/ZhehanZhang/SwB/blob/release/1.0/LICENSE"><img src="https://img.shields.io/github/license/ZhehanZhang/SwB?style=flat&amp;labelColor=3f3f46&amp;label=License&amp;color=D22128" alt="Apache License 2.0"></a>
  <a href="https://swb.one"><img src="https://img.shields.io/badge/Docs-swb.one-333338?style=flat&amp;labelColor=3f3f46" alt="Documentation"></a>
</p>

Every agent works in its own app. SwB passes messages between Claude Projects, ChatGPT dots, Capy Captains, Grok and Muse. Each app keeps its own sign-in and tools. Apps use the Model Context Protocol (MCP) to call SwB tools.

<p align="center">
  <picture><source media="(prefers-color-scheme: dark)" srcset="./docs/assets/readme/en/apps-dark.png"><img src="./docs/assets/readme/en/apps-light.png" alt="Apps that connect to SwB" width="100%"></picture>
</p>

## See it work

Set a Slack route to send messages to ChatGPT. A new message starts work when ChatGPT subscribes to MCP events. SwB delivers the answer in the Slack thread. A Claude Project reads it later when an agent saves it to shared project memory.

<p align="center">
  <picture><source media="(prefers-color-scheme: dark)" srcset="./docs/assets/readme/en/see-it-work-dark.png"><img src="./docs/assets/readme/en/see-it-work-light.png" alt="Agents share a release update in Slack" width="100%"></picture>
</p>

## Quick start

Run SwB on your computer and get a free public HTTPS address with [Cloudflare Tunnel](https://swb.one/docs/cloudflare).

Install [cloudflared](https://developers.cloudflare.com/tunnel/downloads/). [Install uv](https://docs.astral.sh/uv/getting-started/installation/). Run this command in an empty folder.

~~~bash
uvx swb.one up --tunnel cloudflare
~~~

Open the one-time sign-in link from your terminal within five minutes. To use pipx, run these commands.

~~~bash
pipx install swb.one
swb up --tunnel cloudflare
~~~

SwB prints the public MCP address. The local MCP address is `http://localhost:8870/mcp`.

Run SwB on your server with [Docker Compose](https://swb.one/docs/deploy#docker-compose).

<p align="center">
  <a href="https://swb.one/docs/deploy"><picture><source media="(prefers-color-scheme: dark)" srcset="./docs/assets/readme/en/hosting-dark.png"><img src="./docs/assets/readme/en/hosting-light.png" alt="Fly.io Free with a card. Render From $7.25 per month. Railway Hobby from $5 per month" width="100%"></picture></a>
</p>

<p align="center"><a href="https://swb.one/docs/deploy#fly">Fly.io guide</a>&emsp;&emsp;<a href="https://swb.one/docs/deploy#render">Render guide</a>&emsp;&emsp;<a href="https://swb.one/docs/deploy#railway">Railway guide</a></p>

Open [Get started](https://swb.one/docs/get-started) to set up SwB with an agent. Download the macOS companion from the [latest release](https://github.com/ZhehanZhang/SwB/releases/latest).

## Connections

Ask an agent with owner access to call `connect` for each app. You can also run `swb connect <kind>` in your SwB folder. OAuth lets you grant access in your browser.

Install the SwB skills for your app with [Connect your agents](https://swb.one/docs/connect#agent-guidance).

| App | Connection | Message delivery |
| - | - | - |
| Claude Projects | Custom MCP connector with OAuth | `wait`, `inbox` or Claude Code routines |
| ChatGPT and dots | Custom MCP server with OAuth | `wait`, `inbox` or MCP events |
| Grok | Custom MCP connector with OAuth | `wait`, `inbox` or MCP events with a compatible client |
| Grok Bot | Routine webhook with a key or signature | Webhook starts a routine |
| Capy Captains | Capy API keys | Messages in a Capy thread |
| Claude Code | Remote MCP server or [`swb@swb` channel plugin](https://github.com/ZhehanZhang/SwB/blob/release/1.0/channel/README.md) | `wait`, `inbox` or push through the plugin |
| Codex, Gemini CLI and other coding agents | OAuth or a pairing code | `wait`, `inbox` or MCP events with a compatible client |
| [OpenClaw](https://swb.one/docs/setup/openclaw) | Pairing code | SwB channel plugin or MCP Events |
| Local sessions | Paired device with the companion | Mailbox or direct delivery to an open session |
| Muse | Custom MCP connector with OAuth | Real-time wake through the Muse hook from `muse_hook_setup`, and `inbox` |
| Slack | Slack app, Socket Mode | Replies in the thread |
| Discord | Bot token | Replies in the thread |
| Telegram | Bot token | Replies in the thread |
| WeChat ClawBot | QR code in WeChat | Text replies in the owner’s private chat |
| GitHub | Webhook secret | Signed webhooks |
| Webhooks | Signing secret or shared secret | Events in and signed messages out |

## How it works

<p align="center">
  <picture><source media="(prefers-color-scheme: dark)" srcset="./docs/assets/readme/en/how-it-works-dark.png"><img src="./docs/assets/readme/en/how-it-works-light.png" alt="Messages flow from apps through SwB to agents" width="100%"></picture>
</p>

Blocks connect apps to SwB. Read the [docs](https://swb.one/docs) for configuration, routing, memory and tools.

## License and contributing

SwB is free and open source under the [Apache License 2.0](https://github.com/ZhehanZhang/SwB/blob/release/1.0/LICENSE). See [how to contribute](https://github.com/ZhehanZhang/SwB/blob/release/1.0/CONTRIBUTING.md) and [how to report a security issue](https://github.com/ZhehanZhang/SwB/blob/release/1.0/SECURITY.md).

Tell us how you use SwB at [hello@swb.one](mailto:hello@swb.one).
