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.

KKR Mind is an independent project by Kaustav Kanti Ray (@iamkkronly). Its architecture is inspired by / references AIMind by GlitchyAPI (pypi.org/project/aimind), also MIT licensed — thanks!

👤 Developer

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

Built with ❤️ by Kaustav Kanti Ray

Release files for kkrmind 1.1.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 kkrmind 1.1.0
File Size Uploaded
kkrmind-1.1.0.tar.gz 12.4 kB Details

Built distribution (wheel)

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

Total release size: 25.7 kB

Release files / kkrmind-1.1.0.tar.gz

Download URL kkrmind-1.1.0.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
beccfd4bfba52ee5f95fa70b51b178bde983cf17c9512dd496bb241ed7580ab6
BLAKE2b-256 checksum
How to use checksums
b003c6c932d3e5c9c6335e2fd47cf78cc7ff201653eacb92d43ef4ae2b57a07b
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.0-py3-none-any.whl

Download URL kkrmind-1.1.0-py3-none-any.whl
Size 13.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68dda965d8b334b32107b58336cd3a45ba7bfcefbae944df95402040f0d08629
BLAKE2b-256 checksum
How to use checksums
752a1f4c1bf1248c061b3805b2858a6ac76124eec9f1cae2b67d00498411d855
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

1.1.1

2 release files

This release

1.1.0 This release

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