Getting Started
Optional: Redis (session store) and PostgreSQL (SQLite works by default). Both drivers come with uv sync --extra full .
stk is a package; your app is a separate, thin package that composes it. stk init writes one, with a .env of fresh secrets:
Visit to see your application: sign-in, two-factor, passkeys, user and role admin, and a dashboard, before you write a line.
With STK_ENV=development (the generated .env sets it) an edited template shows on the page load, and stk run restarts on Python changes. --no-reload turns the restart off.
stk is published on PyPI as stkit ; you still import stk and run stk . The app depends on stkit>=17, installs stk from a local checkout or wheel instead, for working on stk itself.
To drop the uv run prefix, activate the venv once per shell with source .venv/bin/activate , then run stk run , stk shell , stk verify . uv run stk --help lists every command, grouped by purpose. Every command finds the app from [tool.stk] app in the nearest pyproject.toml (override with STK_APP=package.app:app ).
Anything unclear the state of your app? One command answers it:
stk smoke needs a browser for Playwright. If doctor flags it, run uv run playwright install chromium .
Then read The Build Loop for the scaffold, watch, and verify cycle, and Architecture for how the app composes stk.
stk init also writes the production stack, Dockerfile and docker-compose.yml with Redis, PostgreSQL, and Nginx:
The stack refuses to start until .env sets the database and Redis passwords, STK_HOST , TLS_CERTIFICATE , and TLS_PRIVATE_KEY (see the Docker block in the app’s .env-sample and Deployment ).
Environment Configuration
stk init copies .env-sample to .env and fills in SECRET_KEY and SECURITY_PASSWORD_SALT . Key variables:
Settings the app adds go on its own Config , a subclass of stk.Config in myapp/settings.py . See Configuration .
Working on stk itself
Clone the repository and run ./setup.sh : it installs the dev dependencies and writes a .env . Inside the repository, every command runs the bundled example app in examples/minimal , named by [tool.stk] in stk’s own pyproject.toml .
Build Loop : doctor, scaffold, watch, smoke
Shell : async REPL with your models loaded
Architecture : the app package, extensions, and blueprints
Models and Migrations : async SQLAlchemy and Alembic
Frontend : Vue and Vuetify with no build step
Authentication : user management and OAuth setup
Deployment : production deployment
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
