Knowledge Stack Python SDK (ksapi) — auto-generated from the OpenAPI spec. For most agent use cases, use the MCP server (ks-mcp); this SDK is for admin/write operations and infrastructure tooling.
> **Focus on agents. We handle document intelligence.** > > Python client for the Knowledge Stack API. ```bash pip install ksapi uv pip install ksapi ``` - **[ks-cookbook](https://github.com/knowledgestack/ks-cookbook)** — 32 production-style agent demos using this SDK and the MCP server. - **[ks-mcp](https://github.com/knowledgestack/ks-mcp)** — MCP server for agent frameworks.