Install
What you need
Section titled “What you need”- Node 22 or later. The
kindgiCLI is a Node program, for TypeScript and Python projects alike. - Docker (Docker Desktop, or a Docker engine on Linux).
kindgi devruns the Kindgi runtime as a container, and starts a Postgres container for it unless you point it at your own database. - For a Python pack: Python 3.11 or later, and uv (or Poetry, or pip). The CLI still needs Node 22.
Nothing else: the runtime is a container image that kindgi dev pulls and
runs for you.
A TypeScript project
Section titled “A TypeScript project”The CLI is project-local: a project depends on @kindgi/cli as a
devDependency and runs the version it pins, so everyone on the project runs
the same one. kindgi init adds it, with @kindgi/sdk:
npx @kindgi/cli init my-pack # a new pack; in an existing app: npx @kindgi/cli initFrom then on, run kindgi through the project's package manager:
| Package manager | Command |
|---|---|
| pnpm | pnpm exec kindgi dev |
| npm | npx --no kindgi dev |
| yarn | yarn kindgi dev |
| bun | bun run kindgi dev |
Use the scoped name, @kindgi/cli: there is no unscoped kindgi package
on npm.
A Python project
Section titled “A Python project”A Python app has no npm project for the CLI, so run it with npx (it comes
with Node 22), pinned to Kindgi's minor version:
npx --yes @kindgi/cli@0.1 init my-pack --template=pythonIn a Python project, every kindgi <command> in these docs is
npx --yes @kindgi/cli@0.1 <command>. (--yes skips npx's install prompt,
so a coding agent never waits on it.)
The Python SDK is the kindgi package. kindgi init adds it to your
pyproject.toml; to add it yourself:
uv add kindgi # or: poetry add kindgi, or: pip install kindgiCalling Kindgi from an application
Section titled “Calling Kindgi from an application”An app that only starts runs and reads their results (no pack of its own) needs just the SDK's client:
- TypeScript:
@kindgi/sdk, andcreateClientfrom@kindgi/sdk/client. - Python:
kindgi, andKindgi(orAsyncKindgi) fromkindgi.client.