Skip to content

Latest commit

 

History

History
71 lines (42 loc) · 4.04 KB

README.md

File metadata and controls

71 lines (42 loc) · 4.04 KB
Kothai

Save now. Remember later.

A self-hosted library for everything you save, that any AI can use.

Documentation · Quick start · API

release image license


You throw links at one box. A model reads each one in the background, gives it a title, picks tags, and turns it into a vector so you can search by meaning instead of exact words. Flip it into Ask and put questions to the pile. Answers are built only from what you saved, and every claim points back at the card it came from.

Why Kothai?

  • Save links, find them later. Articles, videos, posts, repos. A model reads and indexes each page so you search by meaning, not keywords.
  • Ask your own stuff. Answers are built only from what you saved, with every claim citing the card it came from.
  • Runs on your hardware. One container, one SQLite file, no cloud account. About 300 MB of RAM; a Raspberry Pi 5 handles it.
  • AI is optional. Point it at any OpenAI-compatible endpoint, run Ollama yourself, or turn it off entirely. Run the models yourself and your data stays on your machine, with Telegram capture below as the one opt-in exception.
  • Capture from your phone. Message a link to a Telegram bot and it lands in your archive — no app to install, nothing exposed to the internet. Opt-in, and whatever you send it is stored on Telegram's servers too.

See What is Kothai? for the full feature list.

Quick start

curl -fsSL https://getkothai.com/install.sh | sh

Or deploy to Railway:

Deploy on Railway

One service on ~300 MB of RAM, pointed at an inference endpoint you bring — OpenAI, OpenRouter, anything OpenAI-compatible that also serves embeddings.

Want nothing leaving your own machines? Self-host with the install script above and add the Ollama profile (docker compose --profile ollama up). Railway has no GPUs, so a model hosted there is too slow to be useful.

Next steps: Configuration · Remote access · Backups · Build from source

How it works

Saving runs in two phases. Phase one writes the note immediately. Phase two is a background queue that fetches metadata, describes thumbnails, classifies, and embeds. The UI never waits on a model and a model that's off or unreachable leaves you with the phase-one version rather than an error.

Read more: Architecture · Models & inference · Security

Development

git clone https://github.com/IbrahimTareq/kothai.git
cd kothai && corepack enable && pnpm install
pnpm dev    # server on :5173, Vite HMR on :5174
pnpm test   # the full gate, ~5s

See the full Development guide.

Contributing

Issues and PRs are welcome. The server stays thin on purpose: no framework, no ORM, no build step. Open an issue first for anything sizeable so we can agree on the shape. AI-assisted PRs are fine as long as a human has actually read them.

License

Released under AGPL-3.0.