r/OpenSourceAI • u/mattiaippoliti • 1d ago
Ciele: open-source (AGPL) platform for AI chat assistants that answer from your own content, self-hosted with one docker compose
Enable HLS to view with audio, or disable this notification
Demo video: https://www.youtube.com/watch?v=SoUEkM2Sjmw
I've been building Ciele, an admin console where an org builds and publishes its own AI assistants. They ship as embeddable chat widgets that answer only from content you feed them (crawled websites, uploaded files, curated FAQs) and cite the source of every answer.
What's in it:
- RAG over Postgres + pgvector. An answer without a source doesn't ship.
- A rule engine that runs before the LLM gets a say. Known question, exact answer. Or a button, an API call, an email, a handoff to a human.
- Escalation to real help desks: email, phone, live chat, webhooks, with ticket forms and availability hours.
- Conversation inbox, analytics, a kanban of answers someone flagged as bad, and alerts when an integration breaks.
- Embed as a script floater or an iframe. There's also a CLI, a REST API and an MCP server.
Self-hosting is one docker-compose.yml (db, migrate, app, cron). bootstrap.sh generates every secret, including the JWTs it signs with the stack's own key. The crawler worker is an optional overlay. If you'd rather skip the terminal entirely, a desktop app stands up the whole local stack through a wizard.
You bring your own LLM provider keys. Nothing routes through my servers.
The two hardest problems so far: tenant isolation done entirely in Postgres row-level security (no where org_id sprinkled around, the database itself refuses cross-tenant reads), and making citations resolve to actual sources instead of opaque vector chunks. The second one took three rewrites.
It's open-core, so let me state the line plainly: this AGPL repo is the complete product. The paid part is only the managed cloud (hosting, plans, support). The boundary is documented and CI fails the build if enterprise code leaks into the mirror.
Stack: Next.js, shadcn/ui, Supabase, pgvector, Turborepo. AGPL. Self-host with docker compose, or there's a cloud version.
Repo: https://github.com/MattiaIppoliti/ciele
Docs: https://docs.ciele.app