Skip to main content

Install the Kamiwaza SDK

The Kamiwaza SDK is the kamiwaza-sdk Python package. It gives you the Python client for the Kamiwaza API and the kz-ext command for building extensions. It needs Python 3.10 or later.

Pick the version for your Kamiwaza​

Use the SDK whose minor version matches your Kamiwaza: SDK 1.4.x works with Kamiwaza 1.4.x. An SDK patch release comes out only when the SDK itself changes, so its patch number can differ from your Kamiwaza's.

pip install "kamiwaza-sdk~=1.4.0"

Replace 1.4 with your Kamiwaza's major and minor version. ~=1.4.0 installs the newest 1.4.x release.

Check what you have:

pip show kamiwaza-sdk
kz-ext --version

kz-ext has its own version number, separate from the package that installs it.

Optional extras​

pip install "kamiwaza-sdk[publish]~=1.4.0" # adds kz-ext publish
pip install "kamiwaza-sdk[convert]~=1.4.0" # adds kz-ext convert
pip install "kamiwaza-sdk[all]~=1.4.0" # publish, convert and flight

Extension libraries​

An extension uses a runtime library for sign-in, user identity and calls to Kamiwaza. The libraries keep their own 0.x version, and this SDK works with 0.6.x of both:

Your extension's codeInstall
Pythonpip install "kamiwaza-extensions-lib~=0.6.0" (installing kamiwaza-sdk also installs it)
TypeScriptnpm install "@kamiwaza-ai/extensions-lib@~0.6.0"

kz-ext create adds the right library to a new extension, and kz-ext doctor reports one outside that range.

Next steps​

  • Build an app, service or tool with the Extension Developer Guide.
  • Use the Python client: browse the SDK services in the sidebar, starting with the Auth Service.