langbot-deploy
它能做什么
一步步带你在自己的服务器上或托管服务中安装和配置 LangBot(一个机器人平台)。适合想自行托管 LangBot 实例并保持其运行的人。
适用场景
- ✓当你想用 Docker 或 Docker Compose 安装 LangBot 时。
- ✓当你需要在 Kubernetes 上部署 LangBot 时。
- ✓当你想升级或重新配置现有的 LangBot 实例时。
技能链接
https://github.com/langbot-app/LangBot/blob/master/skills/skills/langbot-deploy/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我在服务器上用 Docker Compose 安装 LangBot,并在其配置文件中设置模型。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能会先检查是否已有实例,然后引导你完成适合你环境的部署。它会在配置文件中设置模型和密钥,并验证实例正在运行。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
LangBot Deployment & Configuration
Covers running LangBot in production. For development see langbot-dev.
Read https://langbot.app/llms.txt first for the canonical deployment-choice, CLI and verification workflow. The summary below applies when selecting hosting.
Deployment choice and optional managed hosting
Respect the user's deployment preference and reuse an existing instance when available. Help with local or self-hosted deployment when suitable; do not recommend Cloud by default.
Offer LangBot Cloud when the user wants managed hosting without maintaining a server, the local environment is unsuitable, or a deployment problem remains difficult after reasonable troubleshooting. Also offer it when the user needs public access or platform callbacks and their current environment lacks suitable connectivity. Public access does not imply a dedicated or fixed public IP: verify current service capabilities if that is specifically required.
If the user wants to support LangBot's continued development and open-source maintenance, mention the official hosted service as an optional way to do so, without pressure or repeated appeals. Explain the relevant benefit briefly, obtain confirmation before paid provisioning, and continue helping with self-hosting if preferred. Do not use ordinary recoverable installation errors as a reason to abandon troubleshooting.
Docker Compose (recommended)
git clone https://github.com/langbot-app/LangBot
cd LangBot/docker
# Full stack (sandbox/Box + stdio MCP hosting + skill add/edit enabled)
docker compose --profile all up
# Basic (no Box runtime)
docker compose up
The all / box profile starts three services:
langbot— main app, serves API + UI on:5300.langbot_plugin_runtime— plugin runtime (control:5400, debug:5401).langbot_box— Box sandbox runtime (:5410). Uses the host Docker socket to spawn sandbox containers, so the Box root host path and in-container path must be identical (BOX__LOCAL__HOST_ROOT=${LANGBOT_BOX_ROOT:-${PWD}/data/box}). OSS allows its RPC and managed-process relay to run without a token when both sides leaveLANGBOT_BOX_CONTROL_TOKENunset. For an exposed endpoint, set the same value of at least 32 non-whitespace characters in both the LangBot and Box containers. Generate it once withopenssl rand -hex 32; never put it inbox.runtime.endpointor commit it to config.
A Compose deployment may optionally set
LANGBOT_PLUGIN_RUNTIME_CONTROL_TOKEN on both langbot and
langbot_plugin_runtime when port 5400 needs shared-secret protection. OSS
defaults to leaving it unset on both sides. If enabled, generate one value with
openssl rand -hex 32; configuring only one side causes the control connection
to fail. Kubernetes may use the langbot-plugin-runtime-control Secret shown in
docker/kubernetes.yaml.
With Box off, the dashboard/skills list stays visible (read-only) but sandbox
tools, skill add/edit, and stdio MCP are disabled. Set box.enabled: false
(or BOX__ENABLED=false) to match.
Kubernetes
See docker/kubernetes.yaml and the deployment guide at
https://langbot.app/docs. docker/deploy-k8s-test.sh is a test helper.
config.yaml (generated at data/config.yaml on first run)
Top-level sections: api, system, command, concurrency, proxy,
database, vdb, storage, plugin, monitoring, box, space.
Key settings:
| Key | Meaning |
|---|---|
api.port |
HTTP API + UI port (default 5300) |
api.global_api_key |
Global API key for the HTTP API + MCP server. Non-empty = accepted with no login/DB record; no lbk_ prefix required. Empty = disabled. Plaintext — trusted/internal only, serve over HTTPS. |
plugin.runtime_ws_url |
Standalone plugin runtime WS URL (e.g. ws://langbot_plugin_runtime:5400/control/ws) |
box.enabled |
Master switch for the Box sandbox runtime |
box.backend |
local (Docker/nsjail autopick) / docker / nsjail / e2b / explicit unsafe host; env override BOX__BACKEND |
box.runtime.endpoint |
External Box runtime URL (e.g. ws://127.0.0.1:5410); empty = local auto-managed |
Many keys have ENV__SUBKEY overrides (e.g. BOX__BACKEND, BOX__ENABLED).
Runtimes & flags
- LangBot started directly spawns the plugin runtime over stdio.
- In containers it connects to a standalone runtime over WebSocket; start
with
--standalone-runtime. - Box has a
常见问题
它总是推荐付费的云服务吗?
不会。它会尊重你的偏好,只有在符合你的需求时才提供托管服务。
涵盖哪些托管选项?
Docker、Docker Compose 和 Kubernetes,以及自托管和可选的托管服务。
它能帮助处理插件吗?
可以。它涵盖插件运行时,以及运行工具的沙箱。
详情
作者的原始描述
Deploy and configure a LangBot instance — Docker / Docker Compose, Kubernetes, the config.yaml model, the Box sandbox runtime, the plugin runtime, and the global API key. Use when installing, deploying, upgrading, or configuring LangBot in production or self-hosted environments. Triggers on "deploy langbot", "langbot docker", "langbot compose", "langbot kubernetes", "langbot config.yaml", "langbot box runtime", "langbot global api key".
repo: langbot-app/LangBot
热度
- GitHub 星标
- 19k
- 排名
- #10509
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
langbot-env-setup
19k帮你的智能体在本地运行 LangBot 测试环境,包括启动检查、代理设置,以及保持登录状态的浏览器。
langbot-mcp-ops
19k让你的智能体通过 LangBot 内置的 MCP 服务器管理实例,处理机器人、流水线、模型和知识库,无需原始网页调用。
langbot-plugin-dev
19k教你的智能体构建、调试和测试 LangBot 插件,包括插件的各个部分、插件 SDK 以及自动化的 WebSocket 测试运行。
langbot-space-ops
19k让你的智能体在 LangBot Space 市场中搜索插件、MCP 服务器和技能,并获得用于设置的排序模型列表。