Pre-release. Simple KB's first release on PyPI is on its way: until it's out, installing it won't find it.
Self-hosting
Take a base anywhere
On a laptop
One folder (~/.local/share/simple-kb, or $SKB_HOME) with SQLite: nothing to set up.
On a server
- Postgres for the data:
SKB_DATABASE_URL=postgresql://…. - An S3-compatible bucket, such as Cloudflare R2, for files:
SKB_STORAGE_ENDPOINT,SKB_STORAGE_BUCKET,SKB_STORAGE_ACCESS_KEY,SKB_STORAGE_SECRET_KEY.
Search works the same on both databases. Install the extras, with uv set up as in getting started: uv tool install --python 3.13 "simple-kb[formats,ocr,serve,s3,postgres]".
Upgrades
skb migrate applies schema changes; run it before starting a new version.
Settings from the environment
skb serve reads its settings from the environment, so a platform’s variables are enough: PORT, SKB_AUTH, SKB_PUBLIC_URL, SKB_WORKERS and the rest. A flag still wins over its variable. /health/ready says whether the database and storage are ready, and names what isn’t.
Railway
The repository’s .railway/railway.ts defines a hosted skb on Railway: Postgres, a volume, and one service that migrates before each deploy and is health-checked.