Skip to content

KsADK

Kingsoft Cloud Agent Development Kit for building, running, debugging, and packaging Python agent applications. KsADK gives developers one local CLI, runtime surface, OpenAI-compatible protocol layer, and browser UI across Google ADK, LangGraph, LangChain, and DeepAgents projects.

pip install -U ksadk
pip install -U "ksadk[langgraph]"
agentengine init my-agent -f langgraph
cd my-agent
agentengine config set OPENAI_API_KEY=sk-test OPENAI_BASE_URL=https://api.example.com/v1 OPENAI_MODEL_NAME=my-model
agentengine run . -i
agentengine web . --no-open

This site is the curated public documentation for the open-source SDK. It is separate from generated .zread/ code-reading output, internal deployment notes, and private AgentEngine operating procedures.

System At A Glance

flowchart LR
  Dev["Developer"] --> CLI["agentengine CLI"]
  CLI --> Detect["project detection<br/>agentengine.yaml / ksadk.yaml / conventions"]
  Detect --> Runner["framework runner<br/>ADK / LangGraph / LangChain / DeepAgents"]
  Runner --> Runtime["local runtime"]
  Runtime --> API["OpenAI-compatible APIs<br/>/v1/responses<br/>/v1/chat/completions"]
  Runtime --> UI["local Web UI<br/>agentengine web"]
  Runtime --> Sessions["sessions, attachments,<br/>workspace files, tracing"]
  CLI --> Package["build / launch<br/>reviewed cloud path"]
  UI -. "editable source" .-> Web["kingsoftcloud/ksadk-web"]

The important design choice is that the SDK does not replace the framework where the agent is written. It detects and loads the project, adapts it through a runner, then exposes the same local development experience to terminal users, browser users, and API clients.

Documentation Style

KsADK follows the public-docs pattern used by mature agent SDK projects:

  • a short overview for positioning.
  • a quickstart that reaches a running local agent.
  • tutorials with complete files.
  • guides for common tasks and operational decisions.
  • references for command, config, and API contracts.
  • contribution, release, security, and publication gates.

Generated code-reading output can help maintainers understand the repository, but it is not the public documentation source. Public docs must be reviewed, stable, linkable, and safe to publish on GitHub Pages.

Developer Journey

flowchart TD
  A["Install ksadk"] --> B["Create or import an agent project"]
  B --> C["Set model/provider configuration"]
  C --> D["Run in terminal"]
  D --> E["Debug in local Web UI"]
  E --> F["Call local OpenAI-compatible APIs"]
  F --> G["Add tools, files, memory, tracing"]
  G --> H["Build and review release artifacts"]
  H --> I["Publish only after maintainer approval"]

What KsADK Provides

Area What you get
Project bootstrap agentengine init templates for supported framework families.
Local runtime agentengine run starts a local API server for an agent project.
Local Web UI agentengine web opens a browser-based invoke/debug interface.
Configuration agentengine config manages project .env and YAML settings.
Packaging agentengine build prepares deployment artifacts when cloud credentials are configured.
Protocols Local OpenAI-compatible /v1/responses and /v1/chat/completions endpoints.
Extensibility Framework adapters, memory hooks, MCP/A2A integration points, and release tooling.

Typical Use Cases

Use KsADK when you need to:

  • run the same local command against ADK, LangGraph, LangChain, or DeepAgents projects.
  • expose a local OpenAI-compatible endpoint for an agent project.
  • debug an agent in a browser without setting up hosted infrastructure.
  • prepare an agent package for a reviewed cloud deployment path.
  • keep Python SDK docs, Web UI docs, and release checks aligned before a public GitHub import.

Open-Source Boundary

The public repository contains the SDK, CLI, runtime adapters, local development experience, curated documentation, and release checks.

It does not publish the full AgentEngine control plane, internal Kubernetes deployment automation, internal kubeconfig material, private registries, customer data, or private support runbooks. Cloud deployment commands are documented as SDK entry points, but public examples must be runnable locally without internal accounts.

First Workflow

python -m venv .venv
source .venv/bin/activate
pip install -U ksadk

agentengine init my-agent -f langgraph
cd my-agent
agentengine config set OPENAI_API_KEY=sk-test OPENAI_BASE_URL=https://api.example.com/v1 OPENAI_MODEL_NAME=my-model
agentengine run -i

Then open the local Web UI:

agentengine web . --no-open

If you already have an agent file, use:

agentengine init my-agent --from-agent ./agent.py
cd my-agent
agentengine run . -i

Documentation Map

Publication State

The planned public locations are:

  • Python SDK repository: https://github.com/kingsoftcloud/ksadk-python
  • Python SDK docs: https://kingsoftcloud.github.io/ksadk-python/
  • Web UI repository: https://github.com/kingsoftcloud/ksadk-web
  • Web UI docs or demo: https://kingsoftcloud.github.io/ksadk-web/

The first real source import must be reviewed internally before GitHub source, GitHub Pages, GitHub releases, or PyPI publication are enabled.