Agent development kit for Kingsoft Cloud
A cloud-native framework to build, deploy, debug, and observe enterprise AI agents. It works with Google ADK, LangGraph, LangChain, and DeepAgents, with one-command OpenClaw and Hermes runtime launch paths.
python -m venv .venv
source .venv/bin/activate
pip install -U "ksadk[all]"
agentengine init demo-agent -f langgraph
cd demo-agent
agentengine config set OPENAI_API_KEY=your-api-key OPENAI_MODEL_NAME=gpt-4o-mini
agentengine run -iStart the local debugging Web UI:
agentengine web . --no-openKsADK 0.8.3 converges framework adaptation into stable runtime layers while preserving each framework's native execution semantics:
- Trusted kernel: owns concurrency, cancellation, recovery, state consistency, and runtime safety boundaries.
- Harness execution layer: owns composition, Activation, lifecycle, and shared-capability injection; each Activation selects exactly one Provider.
- Pluggable Providers: Codex, KsADK Harness, DSH/Cordis, and Subagent run behind one Harness contract while retaining native thread, checkpoint, and event semantics.
- Unified events:
RuntimeEvent(schema_version=2)is the event source of truth for storage, replay, APIs, Studio, and hosted surfaces; v1 is read-only compatibility projection only. - Controlled plugins: DSH Bundle/Profile uses a pinned toolchain, immutable source digests, and rollback on failed upgrades; official Codex plugins remain owned by Codex App Server.
- Local development loop: Studio covers authoring, builds, debugging, evaluation, and Scheduler Lite; the bundled UI is pinned to
@kingsoftcloud/ksadk-web@0.3.4.
Start with the 0.8.3 runtime architecture, AgentKit Local Studio, and plugins and automations. See the changelog and PyPI badge for version history and publication status.
The event path is canonical RuntimeEvent(schema_version=2). Its capability descriptor is RuntimeEventVersions=[1,2], RuntimeEventDefault=2, RuntimeEventV1ProjectionModes=["snapshot_only","identity_replace"], and RuntimeEventV1ProjectionDefault="snapshot_only". Version 1 is a read-only compatibility projection.
Most agent frameworks solve how to build agents. KsADK solves how to run, debug, deploy, and observe them.
- Local development:
agentengine init,agentengine run,agentengine web. - Unified debugging: browser Web UI, streaming, attachments, workspace files, tool calls, and sessions.
- Unified protocol: local
/v1/responsesand/v1/chat/completions. - Tool boundaries: Skill Runtime, Workspace, Sandbox, Memory, Knowledge.
- Engineering workflow: packaging, deployment, OpenClaw / Hermes runtimes, OpenTelemetry observability.
Agent Kernel centralizes trusted control, Harness owns composition and lifecycle, and pluggable Providers preserve native execution semantics. RuntimeEvent v2 supplies one event fact chain for APIs, Studio, and hosted surfaces.
- Documentation: https://kingsoftcloud.github.io/ksadk-python/
- Quick Start: https://kingsoftcloud.github.io/ksadk-python/en/docs/framework/getting-started/quickstart/
- Why KsADK: https://kingsoftcloud.github.io/ksadk-python/en/docs/framework/getting-started/why-ksadk/
- Architecture: https://kingsoftcloud.github.io/ksadk-python/en/docs/framework/getting-started/architecture/
- Ecosystem Positioning: https://kingsoftcloud.github.io/ksadk-python/en/docs/framework/getting-started/comparison/
- Observability: https://kingsoftcloud.github.io/ksadk-python/en/docs/framework/guides/observability-tracing/
- Cloud Deployment: https://kingsoftcloud.github.io/ksadk-python/en/docs/framework/guides/cloud-deployment/
- Hosted UI and Event Replay: https://kingsoftcloud.github.io/ksadk-python/en/docs/framework/guides/hosted-ui-events/
- Environment Variables: https://kingsoftcloud.github.io/ksadk-python/en/docs/references/environment-variables/
- Samples: https://github.com/kingsoftcloud/ksadk-samples
- KsADK repository: https://github.com/kingsoftcloud/ksadk-python
- Web UI repository: https://github.com/kingsoftcloud/ksadk-web
- PyPI: https://pypi.org/project/ksadk/
Issues, pull requests, samples, and documentation improvements are welcome. Before submitting, run:
make public-preflightLicense: Apache-2.0.



