Skip to main content
Pre-release

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

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

Runner Runtime

The SDK provides Runner component definitions, protocol entities, runtime dispatch, run-scoped Host API helpers, and low-level daemon relay primitives used by runner/plugin packages that need an outbound user-side runtime process. This includes run-scoped pull APIs on RunnerAPIProxy (history, events, state, run ledger) and steering_pull for absorbing follow-up user input into an active run when the runner declares capabilities.steering in its manifest. The SDK does not provide a managed, generic remote Runner product: external harness execution policy, process launch details, authentication, workspace selection, and provider-specific behavior belong to the runner/plugin package or a deployment-owned remote daemon or managed agent platform.

Documentation

License

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

Release files for langbot-plugin 0.6.0b4

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

Source distribution (sdist)

Source distribution for langbot-plugin 0.6.0b4
File Size Uploaded
langbot_plugin-0.6.0b4.tar.gz 613.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langbot-plugin 0.6.0b4
File Interpreter ABI Platform
langbot_plugin-0.6.0b4-py3-none-any.whl Python 3 none any Details

Total release size: 1.0 MB

Release files / langbot_plugin-0.6.0b4.tar.gz

Download URL langbot_plugin-0.6.0b4.tar.gz
Size 613.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2087c652cda486835f2ade53751325102138fe09647cea7331e6b9d170ca26dc
BLAKE2b-256 checksum
How to use checksums
7203e53f67754154809092ed88d65e95abde8ca64b6ab22d268cf24f55e1dd93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","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}

Release files / langbot_plugin-0.6.0b4-py3-none-any.whl

Download URL langbot_plugin-0.6.0b4-py3-none-any.whl
Size 408.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dbd9a551b6ffa1cd0f40682d3bfe15c717f620d6da1c5096fe2abefa3663e95e
BLAKE2b-256 checksum
How to use checksums
3a36bd3328304b508813df1f9a03d806318599348b857e3e8de667f5ae024847
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","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}

Release history Release notifications | RSS feed

0.6.1

2 release files

This release

0.6.0b4 This release

2 release files

0.5.8

2 release files

0.5.7

2 release files

0.5.6

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.17

2 release files

0.4.16

2 release files

0.4.15

2 release files

0.4.14

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.11

2 release files

0.3.10

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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