Local-first AI data workspace: server, CLI, and runtime
pip install kontext-studio==0.263.1 Copy PIP instructions
Local server and CLI composition root for Kontext. It is the end-user entry point: kontext-studio starts the local API server, serves the built React app, and runs an embedded local job worker.
This package is installed as part of the unified kontext-studio wheel. See the repository README for the end-user install path.
For local development, sync the whole uv workspace from the repository root:
uv sync pyfiglet, rich, and python-dotenv are regular dependencies of this package.
# Start the local server and web app (default command) kontext # Same, via the explicit serve entry point kontext serve # Manage projects, import data, run jobs, and query kontext project list kontext project create --name "My project" kontext project import --project ./data kontext job list kontext job run --project kontext query "select * from my_table limit 10" --project Run kontext --help or kontext --help for flags.
At startup the server prints the URL to open, including a per-run launch token in the fragment (http://127.0.0.1:8000/#token=...). Open that URL rather than the bare host: the API only issues credentials to callers presenting the token. The app removes the token from the address bar after reading it, and keeps the session in an HttpOnly cookie so file previews and new tabs work. The latest token is in ~/.kontext/runtime/launch.token; a per-port copy lives in launch- .token when several servers run.
src/kontext/labs/ ├── cli.py # argparse entry points (kontext) ├── server.py # FastAPI app: serves the UI and the local API surface ├── local_worker.py # Embedded local job worker ├── async_cleanup.py ├── telemetry.py └── _app_dist/ # Built React app synced in at package time The kontext console script points at kontext.labs.cli. Local routers reuse the standard routers from kontext-api; keep local routes compatible with that contract rather than inventing separate local shapes.
# Run the whole local stack (API + app) from the repository root pnpm run dev:local # Package tests uv run --package kontext-studio pytest py/kontext-labs/tests License MIT. See the repository LICENSE.
1 file in this release has provenance metadata.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.
1 file in this release has been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




