langbot-deploy
Skill này làm gì
Hướng dẫn cài đặt và cấu hình LangBot, một nền tảng bot, trên máy chủ của bạn hoặc trong dịch vụ lưu trữ được quản lý. Dành cho người muốn tự lưu trữ instance LangBot và giữ nó chạy.
Khi nào nên dùng
- ✓Khi bạn muốn cài LangBot bằng Docker hoặc Docker Compose.
- ✓Khi bạn cần triển khai LangBot trên Kubernetes.
- ✓Khi bạn muốn nâng cấp hoặc cấu hình lại một instance LangBot đang có.
Liên kết skill
https://github.com/langbot-app/LangBot/blob/master/skills/skills/langbot-deploy/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Cài LangBot trên máy chủ của tôi bằng Docker Compose và giúp tôi đặt mô hình trong tệp cấu hình.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill kiểm tra xem đã có instance nào chưa, rồi hướng dẫn bạn triển khai phù hợp với thiết lập của bạn. Nó cấu hình mô hình và khóa trong tệp cấu hình, và xác minh instance đang chạy.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Nó có luôn đề xuất dịch vụ đám mây trả phí không?
Không. Nó tôn trọng lựa chọn của bạn và chỉ đề xuất dịch vụ được quản lý khi phù hợp với nhu cầu.
Những tùy chọn lưu trữ nào được bao phủ?
Docker, Docker Compose và Kubernetes, cùng với lưu trữ tự quản và lưu trữ được quản lý tùy chọn.
Nó có giúp về plugin không?
Có. Nó bao gồm runtime plugin và sandbox chạy các công cụ.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 19k
- Vị trí xếp hạng
- #10509
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
langbot-env-setup
19kGiúp agent của bạn chạy môi trường kiểm thử LangBot cục bộ, gồm kiểm tra khởi động, cài đặt proxy và trình duyệt giữ đăng nhập.
langbot-mcp-ops
19kCho phép agent của bạn quản lý instance LangBot qua máy chủ MCP tích hợp sẵn, xử lý bot, pipeline, mô hình và cơ sở tri thức mà không cần gọi web thô.
langbot-plugin-dev
19kDạy agent của bạn xây dựng, gỡ lỗi và kiểm thử plugin LangBot, gồm các thành phần, SDK plugin và các lượt kiểm thử WebSocket tự động.
langbot-space-ops
19kCho phép agent của bạn tìm plugin, máy chủ MCP và skill trên chợ LangBot Space, và lấy danh sách mô hình được xếp hạng để thiết lập.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.