Skip to main content

AI chatbot CLI toolkit for developers — chat, sessions, and pluggable LLM providers

Project description

KChat 💬

AI chatbot CLI toolkit — Chatea con IA desde la terminal, con modo demo offline y proveedores reales (OpenAI-compatible).

By @javifriasj · mismo autor que KScan y KLogLib


Instalación

pip install kchat

Uso rápido (modo demo)

Sin API key, KChat responde con un proveedor mock ideal para probar el CLI y la demo del portfolio:

kchat ask "Hola, ¿qué puedes hacer?"
kchat models
kchat config show

Comandos

kchat ask — Pregunta en una sola línea

kchat ask "Explica qué es asyncio en Python"

kchat ask "Resume este error" --provider openai --model gpt-4o-mini

kchat chat — Conversación interactiva

kchat chat
# escribe mensajes; `exit` o Ctrl+C para salir

kchat models — Modelos disponibles

kchat models

kchat config show — Variables de entorno

kchat config show

Proveedor real (OpenAI-compatible)

export KCHAT_PROVIDER=openai
export KCHAT_API_KEY=sk-...
export KCHAT_MODEL=gpt-4o-mini
# opcional: export KCHAT_BASE_URL=https://api.openai.com/v1

kchat ask "¿Cómo estructuro un paquete Python?"

Desarrollo local

git clone https://github.com/javifriasj/kchat
cd kchat
pip install -e ".[dev]"
pytest

Licencia

MIT © Javier Frías Jiménez

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

kchat-0.1.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

kchat-0.1.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kchat-0.1.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for kchat-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c58b2b222812f058c7be33705720cf914b574b830ecb15946404f5598a227bdc
MD5 ee8a37fe74d2e01d4bca118db05583e7
BLAKE2b-256 62a81f47529bd48ede33cb964ccbde64d6388e1370de7d0284c7dda10699f364

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kchat-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for kchat-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f8e1151aec21454b52e886f4a65bc778404291076cb69c2b4faba60f9e1fea51
MD5 8aca8f6e90cd49f10164a7b9ac2408e3
BLAKE2b-256 7310aef385f80950322564a44cffada8b810b396b2c02ca2a7e179e50b5313fd

See more details on using hashes here.

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