Skip to main content

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 login --from-backup lightkone-settings.json   # 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.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lightkone 0.2.0
File Size Uploaded Provenance Actions
lightkone-0.2.0.tar.gz 60.3 kB With provenance Details for lightkone-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lightkone 0.2.0
File Interpreter ABI Platform Actions
lightkone-0.2.0-py3-none-any.whl Python 3 none any Details for lightkone-0.2.0-py3-none-any.whl

Total release size: 116.4 kB

Release files / lightkone-0.2.0.tar.gz

Download URL lightkone-0.2.0.tar.gz
Size 60.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0713257e5116ec433f193cf65a59cb729c65ae7406c570b637d309705ce33f0a
BLAKE2b-256 checksum
How to use checksums
30615682bb58676cb099e810256b3216ff707510cb62f12035bd6e168c24bba8
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 log

Release files / lightkone-0.2.0-py3-none-any.whl

Download URL lightkone-0.2.0-py3-none-any.whl
Size 56.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92aaa4827495f630dfc5b8ff1c262118c057c3c364e062bb60b64930b47dfa66
BLAKE2b-256 checksum
How to use checksums
d9e7648df8771b75328617297edcf26bfd5ea8edc46039ea39a9ccb8d0123fed
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 log

Security for lightkone 0.2.0

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.

Select from 2 files

Attestation for lightkone-0.2.0.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 log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page