Install AskDB
Start · Install
AskDB is a set of focused packages — install only what your use case needs. Pick your path below; each guide starts with the exact install commands, and the package reference covers every package individually.
Upgrading from an earlier release? Upgrade AskDB shows the steps, and Upgrade notes by release lists what to change for each release.
On the day an AskDB version is published, pnpm dlx askdb@latest and yarn dlx askdb@latest install an older one. pnpm 11 and later, and Yarn 4.18, skip versions less than a day old by default (pnpm’s minimumReleaseAge, Yarn’s npmMinimalAgeGate). npm installs the new version at once. Step 2 of the Quickstart shows the setting that lets pnpm and Yarn install AskDB’s newest release.
What to install — by use case
Section titled “What to install — by use case”askdb and your database’s driver (pg, mysql2, better-sqlite3 or mssql) are enough to introspect, enrich, and ask from the CLI. askdb init installs the driver for you.Embedding in a Node service@askdb/client + @askdb/core + @askdb/config + ai + an AI SDK provider package such as @ai-sdk/openai.Standing up an HTTP serviceAdd @askdb/http-api on top of the embedding install.Working with a large schemaAdd @askdb/rag and a vector store (pgvector recommended).Reading a Prisma schema fileAdd @askdb/prisma next to askdb. It brings in Prisma, whose build pnpm 11 must approve.© 2026 Yahya Gilany

