kagi-cli-py
Python CLI and client for Kagi services.
PyPI package name: kagi-cli
Features
proofread: improve text qualitysummarize: summarize URLsask: query Kagi Assistantsearch: run Kagi search queries
Requirements
- Python 3.12+
- A valid
KAGI_SESSIONvalue from your Kagi session link
Install
uv sync
Install and run from PyPI
# Run without installing globally
uvx --from kagi-cli kagi --help
pipx run --spec kagi-cli kagi --help
# Install globally with pipx
pipx install kagi-cli
kagi --help
Authentication
Set KAGI_SESSION from your Kagi session link before using the CLI:
export KAGI_SESSION="your_session_value_from_link"
CLI usage
# Show help
uv run kagi --help
# Show version (git tag when available)
uv run kagi --version
# Proofread text
uv run kagi proofread "Ths is a tset."
# Summarize a URL
uv run kagi summarize "https://example.com"
# Ask assistant
uv run kagi ask "What is 2+2?"
# Search
uv run kagi search "python async"
Output formats
Commands support:
--format console(default)--format json--format md--format csv
Run tests
uv run pytest -q
Metadata
Release files for kagi-cli 0.1.0
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 | |
|---|---|---|---|---|
| kagi_cli-0.1.0.tar.gz | 49.9 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kagi_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 70.2 kB
Release files / kagi_cli-0.1.0.tar.gz
| Download URL | kagi_cli-0.1.0.tar.gz |
|---|---|
| Size | 49.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
984650008c3ab8c29ecd3eb082f3c0d3cce98c14bd4191b3352087c24f475f45
|
|
BLAKE2b-256 checksum How to use checksums |
3ed4729c5883bfc880ccd9fc1f41223c58bf50e9710b390fdfb214deb93b62a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Feb 28, 2026.
Transparency logRelease files / kagi_cli-0.1.0-py3-none-any.whl
| Download URL | kagi_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 20.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fe11d4feb389b2890954c73ca7bf0bcacfe872180c934cbc2e22a640537717f5
|
|
BLAKE2b-256 checksum How to use checksums |
9cc69151c901c4243c267dd6722c43d3e8ee7b37685f239d54beba49bec9faad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Feb 28, 2026.
Transparency logSecurity for kagi-cli 0.1.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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for kagi_cli-0.1.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 Feb 28, 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.