Lightkone CLI
The command line and Python package for Lightkone, the web reference manager. It works on the same library as the web app: the plain files in your Cloudflare R2 / S3 bucket, your GitHub repository, or a folder on disk. Search, add, tag, file, annotate, export BibTeX and draw the citation map from the terminal, a script or a notebook.
pipx install lightkone # or: pip install lightkone
lightkone setup # set up a bucket or repo: check it, add CORS, file for the web app
lightkone login --from-backup lightkone-settings.json # or: Lightkone → Settings → Backup → Export settings
lightkone ls author:hinton year:2010-2015
lightkone add 2106.09685 10.1103/PhysRevLett.116.061102 -t lensing -f Physics/GR
lightkone export in:Thesis -o thesis.bib
lightkone map in:Thesis --open # which of your papers cite which
lightkone open Hinton2012-in -p 3 # read it in the web app, at page 3
claude mcp add lightkone -- lightkone mcp # let Claude Code search and cite your library
Extras: lightkone[data] (pandas DataFrames), lightkone[graph] (networkx,
GraphML and GEXF), lightkone[crypto] (encrypted settings backups), or
lightkone[all].
The full guide is at https://lightkone.lab.kausalflow.com/docs/cli.html
(docs/CLI.md in the repository).
Working on it
cd cli
pip install -e ".[dev]"
pytest
tests/data/golden.json holds what Lightkone's TypeScript code produces for
the same inputs (BibTeX parsing, citation keys, library.json and
library.bib text, search, merging, filing, the citation graph). It is
written by tests/cli-golden.test.ts in the app's tests, and npm run check
fails when the app's output no longer matches it. After changing one of those
formats in the app, run UPDATE_GOLDEN=1 npx vitest run tests/cli-golden.test.ts
and make the Python side pass pytest again.
License
Apache-2.0 (see the LICENSE and NOTICE files that come with it). The Lightkone web
app in the rest of this repository is under AGPL-3.0.
Metadata
Release files for lightkone 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lightkone-0.2.1.tar.gz | 67.0 kB | With provenance | Details for lightkone-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lightkone-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for lightkone-0.2.1-py3-none-any.whl |
Total release size: 129.2 kB
Release files / lightkone-0.2.1.tar.gz
| Download URL | lightkone-0.2.1.tar.gz |
|---|---|
| Size | 67.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c44cf61d9305acaf6b9ffc44cb82f54af00f478e835621363a9dd27ee7ffb27
|
|
BLAKE2b-256 checksum How to use checksums |
5a6ba899fd5c00b58985720ce47e328464e81558f311332b0e94d8407ea15aaa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
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 Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logRelease files / lightkone-0.2.1-py3-none-any.whl
| Download URL | lightkone-0.2.1-py3-none-any.whl |
|---|---|
| Size | 62.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
852471552368e37f88d529331f4c49d6ed7ef9367df00afbcae0df796977adbe
|
|
BLAKE2b-256 checksum How to use checksums |
f8606a9cfdb10f34b83af1a3e71872ed644228d89c0eee8083cf84f3e009b0a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
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 Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logSecurity for lightkone 0.2.1
Provenance
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for lightkone-0.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logA note on package security
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.