Skip to main content

KKR Mind — Unified AI Interface

One API. One private AI engine. Memory. Streaming. No model names.

Developer / Founder কৌস্তভ কান্তি রায় (Kaustav Kanti Ray)
Handle @iamkkronly
License MIT
Python 3.7+
Backend Private Cloudflare Worker

KKR Mind routes every request through a single private AI engine. No vendor names. No model IDs. Just ask, and get an answer.


✨ Features

  • One private engine — a single unified AI behind one simple API (no model names are ever exposed, by design)
  • Memory — multi-turn conversations with context
  • Streaming UX — word-by-word responses for a live feel
  • Personas — any system prompt per call
  • Any language — Bengali, Hindi, English, and more
  • Health Checks — ping() diagnostics with latency
  • Slim & fast — one dependency (requests), ~500 lines of code
  • Privacy-First — no storage, no cloud, no tracking

📦 Installation

pip install kkrmind

From source:

git clone https://github.com/iamkkronly/kkr-mind
cd kkr-mind
pip install -e .

Requirements: Python 3.7+, requests>=2.28.0 (auto-installed).

🚀 Quick Start

from kkrmind import KKRMind

ai = KKRMind()

# Chat
response = ai.chat("Hello!")
print(response)

# Any language
print(ai.chat("তুমি কে?"))

# With a persona
print(ai.chat("hi", system_prompt="You are a pirate."))

# Streaming (word-by-word)
for chunk in ai.chat_stream("Tell me a short story"):
    print(chunk, end="", flush=True)

🧠 Memory

ai = KKRMind(memory=True, max_history=50)

ai.chat("My name is Rahul")
print(ai.chat("What is my name?"))   # -> "Your name is Rahul."

ai.clear_memory()

🩺 Health Checks

report = ai.ping()
print(f"Status: {report['status']}, Latency: {report['latency_ms']}ms")

🔌 Backend

KKR Mind is built on top of a single private Cloudflare Worker:

GET https://img-thumb-cache.iamkkronly58.workers.dev/api
    ?chat=<message>
    &system=<optional persona>
{
  "status": "ok",
  "query": "hello",
  "response": "Hello! How can I help you today?",
  "latency_ms": 1523,
  "developer": "Kaustav Kanti Ray @iamkkronly"
}

The backend also reports a model field — KKR Mind discards it on purpose, so users never see model names. To point the library at a different backend, edit Config.API_BASE in kkrmind/config.py.

🔐 Privacy

  • ✅ Local state only — nothing stored anywhere
  • ✅ No cloud sync — data never leaves your machine
  • ✅ No telemetry — zero usage tracking
  • ✅ No accounts — no registration required
  • ✅ No model names — the engine stays private
  • ✅ Full control — you own all your data

📁 Project Structure

kkr-mind/
├── LICENSE                  # MIT (with upstream credit)
├── MANIFEST.in
├── README.md
├── requirements.txt
├── setup.py                 # PyPI packaging
├── setup.cfg
├── BUILD_GUIDE.md           # How to build & publish this project
├── kkrmind/
│   ├── __init__.py          # Public API + help()
│   ├── client.py            # KKRMind client (chat, stream, memory, ping)
│   ├── config.py            # Backend endpoint + settings
│   ├── exceptions.py        # KKRMindError hierarchy
│   ├── memory.py            # Conversation memory
│   └── docs.md              # Full in-package documentation
└── examples/
    ├── demo_chat.py
    ├── demo_stream.py
    ├── demo_memory.py
    └── demo_ping.py

🧩 Development

python -m venv .venv
source .venv/bin/activate        # Windows: .venv\Scripts\activate
pip install -e .
python examples/demo_chat.py

Full step-by-step (packaging, building the wheel, publishing to PyPI): see BUILD_GUIDE.md.

📚 In-package docs

import kkrmind
kkrmind.help()            # full docs
kkrmind.help("memory")    # one section

📄 License

MIT License — see LICENSE.

👤 Developer

কৌস্তভ কান্তি রায় (Kaustav Kanti Ray) — @iamkkronly

Built with ❤️ by Kaustav Kanti Ray

Release files for kkrmind 1.1.1

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

Source distribution (sdist)

Source distribution for kkrmind 1.1.1
File Size Uploaded
kkrmind-1.1.1.tar.gz 12.1 kB Details

Built distribution (wheel)

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

Total release size: 25.2 kB

Release files / kkrmind-1.1.1.tar.gz

Download URL kkrmind-1.1.1.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
18a5d3bf343ac302f32c69e5821fc79ece78386178c1132d7db7f3ed4d8559ed
BLAKE2b-256 checksum
How to use checksums
e53bb8093455eb65b93f991e76911f1709b597d79227b3da661984406c10f223
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / kkrmind-1.1.1-py3-none-any.whl

Download URL kkrmind-1.1.1-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3102d39309e5df5d68cedff40017fb9a4c03481b3b8a33f136806bcd62e13fae
BLAKE2b-256 checksum
How to use checksums
dcff9794f5266366a23f397cb4d6d2f3c6bd2862c3e5633bc2e1fa0085b4e9df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

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