Installation
The SDK (@kronbase/client), the CLI and the Docker images are downloaded from the Kronbase registry (registry.kronbase.dev) with a personal token. They are not in the public npm registry, so npm install @kronbase/client without configuring the registry fails with a 404.
1. Create your token
In the dashboard, open Package access and press Create token. The token (kbp_…) is shown only once: copy it. It expires after a year and you can revoke it at any time from the same page. It is personal: do not share it or commit it to a repository.
What you can download depends on your plan: every plan includes the CLI, the SDKs and the local stack; BYOC images belong to the Enterprise plan.
2. Configure npm (once per machine)
~/.npmrc
echo "@kronbase:registry=https://registry.kronbase.dev/npm/" >> ~/.npmrc echo "//registry.kronbase.dev/npm/:_authToken=YOUR_TOKEN" >> ~/.npmrc
3. Install the SDK
npm install @kronbase/client # or, if you also use Next.js: npm install @kronbase/client @kronbase/ssr
4. Install the CLI (optional, for local development)
npm install -g @kronbase/cli # set up Docker (and npm, if you have not yet) with your token kronbase registry login kronbase start
kronbase registry login asks for the token (or reads it from --token or standard input), signs Docker in to registry.kronbase.dev and adds the ~/.npmrc lines without duplicating them. To do it by hand:
echo "YOUR_TOKEN" | docker login registry.kronbase.dev -u kronbase --password-stdin
If you installed before with a GitHub token (npm.pkg.github.com and ghcr.io), switch to your Kronbase token: that shared access will be retired. The next time you run kronbase start, the CLI moves the images in your .kronbase/.env to the Kronbase registry on its own.