Quick Start
This guide takes you from zero to a working KalamDB flow:
- Run the server
- Bootstrap authentication
- Create a namespace and table
- Execute SQL
- Connect from the TypeScript SDK or CLI
Use this path if you want the fastest route into a working local KalamDB setup before moving into the TypeScript SDK, HTTP API, PostgreSQL extension, or production guides.
Prerequisites
- Git
- Rust
1.92+for source builds, or Docker
Option 1: Build From Source
Default server address is http://127.0.0.1:2900.
Option 2: Docker
Use the official compose files in the KalamDB repo:
- single node:
docker/run/single/docker-compose.yml - cluster:
docker/run/cluster/docker-compose.yml
Detailed steps: Docker Deployment
Verify Health
Bootstrap Authentication
Check whether the server still needs first-time setup:
If it returns "needs_setup": true, initialize root + DBA user:
If the server is already configured, this endpoint returns conflict; in that case, go directly to login.
Then log in:
Keep the returned access_token for API calls.
Create Namespace And Table
Insert And Query
Connect With TypeScript SDK (@kalamdb/client)
Install the package first:
Package reference: @kalamdb/client on npm
Connect With Kalam CLI
Install the CLI with npm or the curl installer:
Log in and run a query:
If you want to test the OIDC flow instead of local password login:
Full CLI reference: CLI Guide
Use KalamDB Skills With Coding Agents
Install the official KalamDB skill for Codex, Claude Code, OpenCode, and Agent Skills-compatible tools:
Choose Your Next Track
Building an app or AI-agent backend in TypeScript
Continue with TypeScript Setup, Authentication, Querying & DML, and Realtime Subscriptions.
Building background workers and agent automation
Continue with Topic Consumers & ACK, Consumer Runtime, and AI Agent Coding Guidelines.
Integrating through PostgreSQL
Continue with PostgreSQL Extension Getting Started, SQL Syntax, and Data Type Conversions.
Hardening for production
Continue with Authentication & Bootstrap, Configuration, Security, and OIDC & Issuer Trust.
Advanced features and integrations
Continue with SQL Reference, Vector Search, Dex, OIDC & Issuer Trust, MinIO (S3-Compatible), Jaeger, and OpenTelemetry (OTEL).