Rafiq
رفيق

A trustworthy companion that runs on your own device.

Rafiq is a family of AI companions that work offline by default, ask before anything leaves your machine, and let you read and edit everything they remember. Fully open source.

Rafiq logo: the Arabic word rafiq glowing inside a dark sphere

One companion, many surfaces

The same Rafiq that tutors you also briefs you in the morning, chats with you, and runs your workflows. Memory, identity and permissions are shared. Only the surface changes.

Local by default

Your device does the work

Models, memory and search run on your laptop, phone or home server. No account needed to start. Cloud models are an option you switch on, never a requirement.

Consent per data flow

Nothing leaves silently

Every connector, cloud model and sync relay is a named grant you can see and revoke in one place. Rafiq shows you which model answered and where it ran.

Yours to keep

Readable memory, open formats

What Rafiq remembers is a document you can read and edit. One export gives you everything in Markdown, JSON and SQLite.

Products

Every product is a thin surface on one shared core. Build order follows the roadmap.

Phase 1

Rafiq AI

The chatbot. Command line first, then desktop and web. Chat with your files, voice in, memory you control, and a badge on every answer saying which model ran and where.

Phase 2

Rafiq Study

Lectures become transcripts, summaries, glossaries, flashcards and quizzes. A tutor that answers only from your course material and cites the exact timestamp or page. Arabic and English from day one.

Phase 3

Rafiq PA

A personal assistant for your day: briefings, calendar and inbox triage, reminders, prayer times and news, with a grant behind every data source.

Phase 3

Rafiq Mobile

Android and iOS. Small models on the phone, voice first, synced end to end encrypted with your own Hub.

Phase 4

Rafiq OS

An agent runtime and capability sandbox for the machine itself, so any app can hand work to Rafiq with every permission visible. Later, a Linux image where Rafiq is the desktop.

Foundation

Rafiq Core and Hub

The shared engine: model gateway, memory, search, agents, permission engine and encrypted sync. Hub packages it as a one-command self-hosted server for a household, school or team.

Open source, verifiably

Trust should not rest on promises. Rafiq is built so that anyone can check.

Open code and open weights

Apps and Core are AGPL-3.0, so a hosted fork must stay open. SDKs and connectors are Apache-2.0, so integrating is free of obligations. Open-weight models are preferred and benchmarked in public.

Published threat model

The threat model was written before the code and is published alongside it. Releases are signed and reproducible. An external audit comes before 1.0.

No telemetry, no dark patterns

Nothing is collected unless you opt in, and then only what is documented field by field. No nagging to enable cloud, no degraded local mode.

Get involved

Rafiq is in its foundation phase. The first installable piece, the rafiq command-line companion, is being built now.

Build

Rust, TypeScript and Python. Contributions are accepted under the Developer Certificate of Origin. No contributor agreement. Watch the GitHub organisation for the public repository.

Evaluate

Help build the Arabic and English evaluation sets that decide which open models Rafiq ships with.

Talk

Questions, partnerships and schools interested in Rafiq Study: hello@rafiqsystems.com.