Skip to main content

This package contains the SDK, CLI for building plugins for LangBot, plus the runtime for hosting LangBot plugins

Project description

LangBot Plugin Infra

Plugin SDK, CLI, Plugin Runtime and Box sandbox runtime for LangBot.

PyPI Python License

English / 简体中文

Documentation · Plugin Market · LangBot

Overview

This repository is the shared infrastructure powering LangBot's plugin and sandbox subsystems. It is published to PyPI as the single langbot-plugin package and ships three things:

  • Plugin SDK & CLI (lbp) — Python APIs, base classes and the lbp command for scaffolding, building, debugging and publishing plugins.
  • Plugin Runtime (lbp rt) — the host process that discovers, installs and runs plugins, bridging them to LangBot over stdio or WebSocket.
  • Box Runtime (lbp box) — the code-sandbox service backing LangBot's Box subsystem, executing untrusted code via Docker / nsjail / E2B backends.

LangBot depends on this package as the pinned langbot-plugin==<x.y.z> in its pyproject.toml; the canonical version lives in this repo's pyproject.toml.

The Runtime component (src/langbot_plugin/runtime/) is licensed separately under AGPL; everything else in this repository is Apache 2.0. See src/langbot_plugin/runtime/README.md.

Install

pip install langbot-plugin
# or, recommended
uv tool install langbot-plugin

lbp --help

CLI at a glance

Command Purpose
lbp init <name> Scaffold a new plugin project
lbp comp <Type> Generate a component (Command / Tool / EventListener / KnowledgeEngine / Parser / Page)
lbp run Run / remote-debug a plugin against a running LangBot
lbp build Package the plugin into a distributable zip
lbp publish Publish to the LangBot Plugin Market
lbp login / lbp logout Authenticate with your LangBot account
lbp rt Launch a standalone Plugin Runtime (control 5400, debug 5401)
lbp box Launch a standalone Box sandbox runtime (default port 5410)
lbp ver Print the CLI / package version

Component types

Plugins extend LangBot through six component types, scaffolded with lbp comp <Type>:

  • Command — user-triggered actions (e.g. !weather tokyo)
  • Tool — LLM-callable functions for AI agents
  • EventListener — handlers for message-pipeline events
  • KnowledgeEngine — custom knowledge-base retrieval for RAG
  • Parser — custom message / content parsing
  • Page — custom web page embedded in the LangBot admin panel

Documentation

License

Apache 2.0, except the Plugin Runtime (src/langbot_plugin/runtime/) which is AGPL. See LICENSE and the Runtime README.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

langbot_plugin-0.4.6.tar.gz (334.2 kB view details)

Uploaded Source

Built Distribution

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

langbot_plugin-0.4.6-py3-none-any.whl (217.4 kB view details)

Uploaded Python 3

File details

Details for the file langbot_plugin-0.4.6.tar.gz.

File metadata

  • Download URL: langbot_plugin-0.4.6.tar.gz
  • Upload date:
  • Size: 334.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for langbot_plugin-0.4.6.tar.gz
Algorithm Hash digest
SHA256 838e3cd45ed795ed4c3299c73f141b217adfa05f09937a01694e7158619e4f6e
MD5 d08bf4e9e21db486efbfc67fea64024a
BLAKE2b-256 b46a5fdb5365ad04aaa61344e92578d73eb1577af35783b80767c7d6c51cb8b9

See more details on using hashes here.

File details

Details for the file langbot_plugin-0.4.6-py3-none-any.whl.

File metadata

  • Download URL: langbot_plugin-0.4.6-py3-none-any.whl
  • Upload date:
  • Size: 217.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for langbot_plugin-0.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 30eb47efc0b703818ac003a5cd67caf720d9749dd503155eb65cce0c28b194a7
MD5 d575ea1a46c36cb7a30511fab78256e2
BLAKE2b-256 6b557adc2e180a299ed58613e159c64195477e09c05136f949942c6cec5219e8

See more details on using hashes here.

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