Kingsoft Cloud Agent Development Kit - 支持 LangChain/LangGraph/DeepAgents/ADK/OpenClaw/Hermes 的本地运行与云端部署
Project description
ksadk
金山云 Agent Development Kit。ksadk 提供 Python SDK 和命令行,
安装后可使用 agentengine 或等价的 ksadk 命令创建、运行、调试、
打包和部署 AgentEngine 智能体项目。它面向
本地开发、Serverless 运行时、Google ADK、LangChain/LangGraph、
DeepAgents、Hermes、OpenClaw、MCP 和 Skill Runtime 等场景。
当前版本:0.6.3。
安装
pip install -U ksadk
按需安装可选运行时依赖:
pip install -U "ksadk[adk]"
pip install -U "ksadk[langgraph]"
pip install -U "ksadk[deepagents]"
pip install -U "ksadk[skills]"
pip install -U "ksadk[all]"
快速开始
以下示例使用 agentengine;所有命令也可以把 agentengine 替换为 ksadk。
创建并运行一个本地 Agent:
agentengine init my-agent -f langgraph
cd my-agent
agentengine config
agentengine run -i
打开本地 Web UI:
agentengine web . --no-open
如需走部署形态,先使用 dry-run 或内部审核流程确认配置:
agentengine launch . --target serverless
包含能力
- 本地开发命令:
init、config、run、web - 构建与部署命令:
build、deploy、launch - 远程操作:
agent invoke、files、dashboard - 运行时集成:ADK、LangChain、LangGraph、DeepAgents、MCP
- 托管运行时资产:Hermes 和 OpenClaw
- Skill Runtime:Skill Space 发现、zip 下载、
sha256校验、安全解压、instruction 加载,以及local_process或 E2B sandbox workflow 执行 - AgentEngine 内置工具:skill 发现/加载、workspace 文件操作、component status、sandbox status 和 sandbox direct code/command execution
- Sandbox Runtime:通用沙箱抽象与 E2B 兼容后端
0.6.3 重点
- Hosted UI 与最新 gateway / server 对齐
/hosted-ui/chat/、share link、SSE 订阅和 native terminal 代理契约;agentengine dashboard open继续优先打开托管入口,本地agentengine web保持调试用途。 - LangGraph runner 在工具调用后即使没有文本流式 chunk,也会输出最终 answer,避免本地 Web UI 出现空 assistant message。
- Skill Service 支持
KSADK_SKILL_SERVICE_REGION=pre-online的 KOP 路由,自动设置预发所需 header。 - OpenClaw / Hermes 更新已有实例时默认保留服务端已有 env、storage、network、memory 配置,只在显式传入对应 CLI 参数时覆盖。
ksadk.toolsets、Tool Gateway、Skill Runtime 与 Skill Service 相关文件纳入发布包,主推 LangGraph demo 可以在干净安装后直接绑定 AgentEngine 内置工具。
0.6.2 重点
- Skill Runtime 支持 Skill Space 远端发现、按需下载、
sha256校验、安全解压、SKILL.mdinstruction 加载,以及local_process/ E2B sandbox backend workflow 执行。 ksadk.toolsets提供 Skill、Workspace、Platform、Sandbox 内置工具;推荐绑定get_agentengine_tools(include=["focused", "agentengine_tool_dispatcher"]),把低频或高风险工具放进 dispatcher 按需list/describe/call。- Tool Gateway 为 workspace 写入/删除、Skill Runtime 执行、sandbox command/code 等中高风险操作提供统一
approval_requiredenvelope。 - Workspace tools 新增 exact snippet edit 与 lightweight lint;Sandbox tools 新增 direct
run_command/run_code,且只通过 configured isolated sandbox backend 执行。 setup_tracing()优先识别标准OTEL_EXPORTER_OTLP_*HTTP traces 配置,Langfuse 环境变量仍保持兼容。- 环境变量 registry 和公开文档覆盖 OTLP traces、AICP endpoint mode、Skill Service endpoint/scheme、Sandbox Runtime、Skill Runtime 和 Tool Gateway settings。
文档
公开文档托管在 GitHub Pages,并使用 MkDocs Material 与双语 i18n 方案:
项目链接
- 文档:https://kingsoftcloud.github.io/ksadk-python/
- 仓库:https://github.com/kingsoftcloud/ksadk-python
- wiki:https://zread.ai/kingsoftcloud/ksadk-python
- 示例仓库:https://github.com/kingsoftcloud/ksadk-samples
- Web UI 仓库:https://github.com/kingsoftcloud/ksadk-web
- PyPI:https://pypi.org/project/ksadk/
- 开源协议:Apache-2.0
说明
- Skill 注册、CRUD 和版本治理属于 Skill Service;
ksadk在运行时消费 Skill Center。 - Sandbox 模板和实例生命周期属于 Sandbox Service;
ksadk使用配置的沙箱后端执行运行时工作流。 - E2B 兼容沙箱后端使用原生
E2B_API_URL和E2B_API_KEY环境变量。
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ksadk-0.6.3.tar.gz.
File metadata
- Download URL: ksadk-0.6.3.tar.gz
- Upload date:
- Size: 3.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9269810c61eaea4e6a0a71c09ff681c7b27299f5cff1e337bade28f98f530224
|
|
| MD5 |
081c98122cb887b86b5bf94ae1f3cdde
|
|
| BLAKE2b-256 |
c4c03ec6c8069c7a4bf7451bca504effd4b892014ee00efac57a6f28859992aa
|
File details
Details for the file ksadk-0.6.3-py3-none-any.whl.
File metadata
- Download URL: ksadk-0.6.3-py3-none-any.whl
- Upload date:
- Size: 3.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
861cbd791c562a2a4da8006a0e1db3eff598390cba4c205bbd5ef582bfab20a9
|
|
| MD5 |
94d31e5ed38002034550ae52e3a84546
|
|
| BLAKE2b-256 |
092a0026f1f8b2ebe3ffbe3061db556a99bed09adc7a606a655d59c80807025f
|