Skip to main content

Kingsoft Cloud Agent Development Kit - 支持 LangChain/LangGraph/DeepAgents/ADK/OpenClaw/Hermes 的本地运行与云端部署

Project description

ksadk (AgentEngine CLI)

ksadk 是金山云 Agent 开发与部署工具链,统一提供本地调试、构建部署、远端资源管理,以及平台级 KB/LTM、MCP、OpenClaw、Hermes 接入能力。

当前版本:0.5.0

0.5.0 亮点

  • Hermes 正式进入 ksadk 主线,新增独立资源组、共享 runtime 镜像和原生远程 TUI。
  • OpenClaw 新增用户自定义镜像模板,适合直接打包给业务或客户做二次定制。
  • agentengine openclaw deploy 新增 --env KEY=VALUE 透传,可把业务自定义环境变量直接注入容器。
  • 新增 agentengine openclaw repairagentengine openclaw gateway doctor --fix,补齐控制面修复入口。

安装

pip install -U ksadk

可选依赖:

pip install "ksadk[langgraph]"
pip install "ksadk[langchain]"
pip install "ksadk[deepagents]"
pip install "ksadk[adk]"
pip install "ksadk[kb]"

命令入口等价:

agentengine --help
ksadk --help

最快路径

1. 本地运行

agentengine init my_agent -f langgraph
cd my_agent
agentengine config
agentengine run -i
# 或
agentengine web --port 8080

2. 一键部署代码框架

export KSYUN_ACCESS_KEY=your-ak
export KSYUN_SECRET_KEY=your-sk
export KSYUN_ACCOUNT_ID=your-account-id
export KSYUN_REGION=cn-beijing-6

agentengine launch . --target serverless

3. Hermes 云端托管

export KSYUN_ACCESS_KEY=your-ak
export KSYUN_SECRET_KEY=your-sk
export KSYUN_ACCOUNT_ID=your-account-id
export KSYUN_REGION=pre-online
export OPENAI_API_KEY=your-model-key
export OPENAI_BASE_URL=http://kspmas.ksyun.com/v1
export OPENAI_MODEL_NAME=glm-5.1

agentengine init demo-hermes -f hermes
cd demo-hermes
agentengine hermes deploy --name demo-hermes
agentengine invoke demo-hermes

说明:

  • agentengine hermes deploy 默认使用共享 Hermes runtime 镜像,不走本地 build/push。
  • 如果注入的是 kspmas.ksyun.com 公网模型地址,CLI 会在云端 runtime 配置里自动改写为 kspmas-internal.sdns.ksyun.com,避免预发 / 线上 Pod 访问公网网关超时。
  • agentengine invoke <hermes-agent> 默认进入 Hermes 原生远程 TUI;浏览器聊天页请用 agentengine hermes open --chat

4. 打开云端 UI

agentengine dashboard open
# 或显式指定 Agent
agentengine dashboard open --agent ar-xxxx

主文档

专题参考

说明

  • README 现在只保留入口信息,不再承载完整命令说明。
  • 完整 CLI 路径、环境变量、KB/LTM、MCP、OpenClaw、Hermes、JSON 输出等说明统一收口到 使用文档
  • 当前实现设计、核心子系统、关键调用链和与 agentengine-server 的边界统一收口到 技术文档

Project details


Download files

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

Source Distribution

ksadk-0.5.0.tar.gz (5.9 MB view details)

Uploaded Source

Built Distribution

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

ksadk-0.5.0-py3-none-any.whl (6.1 MB view details)

Uploaded Python 3

File details

Details for the file ksadk-0.5.0.tar.gz.

File metadata

  • Download URL: ksadk-0.5.0.tar.gz
  • Upload date:
  • Size: 5.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for ksadk-0.5.0.tar.gz
Algorithm Hash digest
SHA256 1aff53700319cc1239561412d52099472d94e38329938d4c96b1ea55ff2520d8
MD5 608f6f9fa8352069b4963b7b5f02a019
BLAKE2b-256 6ec196dfbbf70ee220f91505bf6d67c2b150f18191388a398d9502d9cca24793

See more details on using hashes here.

File details

Details for the file ksadk-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: ksadk-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for ksadk-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78779507ba1567c2cc5fcdbdcb812f730c5997f449403a8de971ec8c302c0f0e
MD5 8f066e394d3224b8a305ad53cde94522
BLAKE2b-256 338b0b9568466688c09c5ed89a77af6150f4d697aae6f2169cc90b0bef3f84f5

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