Skip to main content

Open Agent Bridge — connect agent backends (CLIs, APIs) to chat platforms (Telegram, …).

Project description

OpenAB

OpenAB

Open Agent Bridge — Connect AI agents to chat platforms. One config, one bridge. Currently implemented: Cursor, Codex. Gemini, Claude, OpenClaw not yet implemented.

中文 · Configuration & usage


What it does

OpenAB forwards messages from chat platforms (or HTTP API) to an agent backend you choose and sends the reply back. One config, one bridge.

Agents Chats / API
Cursor, Codex (implemented)
Gemini, Claude, OpenClaw not yet implemented
Telegram, Discord, OpenAI-compatible HTTP API (openab run serve), more planned

Quick start

1. Install (Python 3.10+)

pip install openab
# or: uv tool install openab
# or from repo: uv pip install -e .

2. Create config — Copy the example and edit:

mkdir -p ~/.config/openab
cp config.example.yaml ~/.config/openab/config.yaml
# then edit: set telegram.bot_token and/or discord.bot_token

3. Get a bot token (for Telegram or Discord)

  • Telegram: Open @BotFather → send /newbot → follow prompts → copy the token into telegram.bot_token in config (or pass with openab run telegram --token <token>).
  • Discord: Discord Developer Portal → New Application → Bot → Reset Token → copy into discord.bot_token (or use --token when running).

4. Allow yourself — After the bot is running, send /whoami (Telegram) or !whoami (Discord) to get your user ID. Then either:

  • Add your ID to config: openab config set telegram.allowed_user_ids "YOUR_ID" (or discord.allowed_user_ids), or
  • Send the API key (printed when you run openab run serve once) as a message to the bot; it will add you to the allowlist automatically.

5. Run and chat

openab run telegram   # or: openab run discord
# In Telegram/Discord: open your bot, send any message. Use /resume to see session buttons (resume latest, new session, or pick a history session).
  • API only: Run openab run serve — no bot token needed. Point clients at http://127.0.0.1:8000/v1 with the printed API key.
  • No config? Running openab or openab run will start the API server by default and show a hint.

Full options: Configuration & usage.


Docs


License

MIT — LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openab-0.1.6.tar.gz (35.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openab-0.1.6-py3-none-any.whl (46.3 kB view details)

Uploaded Python 3

File details

Details for the file openab-0.1.6.tar.gz.

File metadata

  • Download URL: openab-0.1.6.tar.gz
  • Upload date:
  • Size: 35.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for openab-0.1.6.tar.gz
Algorithm Hash digest
SHA256 ea6b4a9d494dec480284408e8483d50dfec2684b53ce475352a15706ffd5b749
MD5 0728dc72d0af4ccd50e24fd488e632d3
BLAKE2b-256 3a1e597e35c6862562006fbc54463e77cd87c2753e035f978cdff1560ed6429e

See more details on using hashes here.

Provenance

The following attestation bundles were made for openab-0.1.6.tar.gz:

Publisher: publish.yaml on xx025/openab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openab-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: openab-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 46.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for openab-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3abd774049b82e4af0a9d1175d751a1dc5bd1031f3d32e72ca4141fcc9c9bf1f
MD5 619232e811d0b876cb62a102fb603f2c
BLAKE2b-256 9f724a743c3461a9fc6e41f39abe9a91d0268e04416051162faceaed832fa9aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for openab-0.1.6-py3-none-any.whl:

Publisher: publish.yaml on xx025/openab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page