Skip to main content

Add your description here

Project description

kagi-cli-py

Python CLI and client for Kagi services.

PyPI package name: kagi-cli

Features

  • proofread: improve text quality
  • summarize: summarize URLs
  • ask: query Kagi Assistant
  • search: run Kagi search queries

Requirements

  • Python 3.12+
  • A valid KAGI_SESSION value 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kagi_cli-0.1.0.tar.gz (49.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kagi_cli-0.1.0-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file kagi_cli-0.1.0.tar.gz.

File metadata

  • Download URL: kagi_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 49.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kagi_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 984650008c3ab8c29ecd3eb082f3c0d3cce98c14bd4191b3352087c24f475f45
MD5 a23f40288f5c56234a556f3dc6e16284
BLAKE2b-256 3ed4729c5883bfc880ccd9fc1f41223c58bf50e9710b390fdfb214deb93b62a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for kagi_cli-0.1.0.tar.gz:

Publisher: release.yml on CaddyGlow/kagi-cli-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kagi_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: kagi_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kagi_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe11d4feb389b2890954c73ca7bf0bcacfe872180c934cbc2e22a640537717f5
MD5 a373da77cdd6f7ee25055555ac7b8caf
BLAKE2b-256 9cc69151c901c4243c267dd6722c43d3e8ee7b37685f239d54beba49bec9faad

See more details on using hashes here.

Provenance

The following attestation bundles were made for kagi_cli-0.1.0-py3-none-any.whl:

Publisher: release.yml on CaddyGlow/kagi-cli-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page