Maskan · مسكن
Private multi-provider AI chat for Android. Bring Your Own Key. Encrypted on device. Arabic-first.

Maskan (مسكن — Arabic for “dwelling, peaceful home”) is a privacy-first Android chat client for AI APIs. It supports 12 providers — from OpenAI and Claude to local models running on your own hardware — and it’s designed with Arabic speakers as first-class citizens.
Your API keys are encrypted with AES-256-GCM on device. Your conversations never leave your phone. The app’s network access is locked to only the providers you’ve enabled. No analytics, no trackers, no telemetry, no Google Play Services.
Supported Providers
| Provider |
API Format |
Notes |
| DeepSeek |
OpenAI-compatible |
Pay-as-you-go |
| OpenAI (GPT-4o, GPT-4o-mini) |
OpenAI-compatible |
Most popular |
| Anthropic Claude |
Anthropic format |
Premium quality |
| Google Gemini |
Gemini format |
Free tier available |
| Groq |
OpenAI-compatible |
Very fast inference |
| Together AI |
OpenAI-compatible |
Open-source models |
| Mistral |
OpenAI-compatible |
GDPR-friendly |
| Venice AI |
OpenAI-compatible |
Privacy-focused, zero-retention |
| OpenRouter |
OpenAI-compatible |
Gateway to 100+ models |
| Ollama (local) |
OpenAI-compatible |
Run models on your own PC |
| LM Studio (local) |
OpenAI-compatible |
Local models with GUI |
| Custom URL |
OpenAI-compatible |
Any compatible endpoint |
Features
- Bring Your Own Key (BYOK) — use your own API keys directly, no middlemen, no subscription
- 12 AI providers — cloud and local, one app
- Encrypted on device — API keys stored with AES-256-GCM via Android Keystore, conversations encrypted with SQLCipher
- Network-locked —
network_security_config.xml restricts traffic to only enabled provider hosts
- Markdown rendering — AI replies render headings, bold, lists, and code blocks, including Arabic/RTL
- Image input — send photos to vision-capable models (OpenAI, Anthropic, Gemini, OpenRouter)
- File attach — attach a
.txt or .html file to a message
- Voice input — speech-to-text with Arabic, English, and Thai recognition
- Voice narration — tap to hear AI responses read aloud, uses Android’s built-in text-to-speech
- Conversation export — share chats as plain text or markdown to any app
- Conversation search — search by title and message content across all conversations
- Stop generation — cancel AI responses mid-stream, partial content preserved
- Anti-screenshot toggle — optionally block screenshots and screen recording (off by default)
- 3 languages — English, Arabic, Thai (full UI translations)
- Arabic-first design — full RTL layout with proper Arabic typography
- Dark mode — follows system theme automatically
- Dialect-aware translation — translate to Levantine, Egyptian, Gulf, Maghrebi, or MSA
- English↔Thai translation presets — dedicated translation support
- 12 system prompt presets — General Assistant, Arabic Writing Coach, Code Reviewer, Classical Arabic Reader, and more
- Classical Arabic literary helper — vocabulary, i’rab, balagha analysis
- Copy & select — long-press AI responses to copy text
- Folder organization — group conversations with custom pastel colors
- No Google Play Services — works on GrapheneOS, CalyxOS, LineageOS
- Open source — GPL-3.0-only, reproducible builds
Screenshots
Installation
F-Droid
Available on F-Droid — app.maskan.chat. Merged via MR !39036; updates are picked up automatically from tagged GitHub releases.
Direct APK
Download the latest signed APK from the Releases page.
Obtainium
Add this repo URL in Obtainium to receive automatic updates from GitHub Releases.
Getting Started
- Install Maskan
- Pick a provider and get an API key (Gemini has a free tier — great for trying it out)
- Open Maskan → Settings → select provider → paste your API key → Save
- Start a new conversation, pick a preset, and chat
Build from Source
git clone https://github.com/humammalhas/maskan.git
cd maskan
./gradlew assembleDebug
Requirements:
- JDK 17+
- Android SDK with API level 35
- Kotlin 2.1.20
- Gradle 9.0+
Privacy & Security
- API keys: AES-256-GCM encrypted via Android Keystore
- Conversations: encrypted with SQLCipher, stored locally only, never uploaded
- Network: locked to provider hosts via
network_security_config.xml
- No third-party SDKs: no analytics, no crash reporting, no ads
- No Google Play Services: no dependency on Google infrastructure
- No background services: the app only runs while open
- No Maskan backend: your device talks directly to the provider API
Tech Stack
- Kotlin 2.1.20
- Jetpack Compose + Material 3 (BOM 2025.04.01)
- Room 2.7.1 + SQLCipher 4.6.1 (encrypted local storage)
- Retrofit 2.11.0 + OkHttp 4.12.0 + kotlinx.serialization 1.7.3
- EncryptedSharedPreferences (AES-256-GCM)
- Manual DI (no Hilt, no Dagger)
- Min SDK 26 (Android 8.0) · Target SDK 35 (Android 15)
Contributing
Issues and pull requests are welcome. For major changes, please open an issue first.
Translations are especially welcome — particularly MENA languages (Farsi, Turkish, Kurdish, Urdu). Add a values-XX/strings.xml file and submit a PR.
License
GPL-3.0-only. See LICENSE.
Maskan — Private multi-provider AI chat
Copyright (C) 2025 Humam Malhas and Maskan contributors
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 3 as
published by the Free Software Foundation.
مسكن
دردشة ذكاء اصطناعي خاصة ومتعددة المزودين لأندرويد. مفتاحك الخاص. مُشفَّر على جهازك. عربي أولاً.
مسكن هو تطبيق أندرويد مفتوح المصدر للدردشة مع نماذج الذكاء الاصطناعي، يدعم 12 مزوّداً — من OpenAI وClaude إلى النماذج المحلية على جهازك.
المميزات:
- استخدم مفتاح API الخاص بك مباشرةً — لا وسطاء ولا اشتراكات
- 12 مزوّد ذكاء اصطناعي (سحابي ومحلي)
- تشفير المفاتيح على جهازك باستخدام AES-256-GCM
- تشفير المحادثات باستخدام SQLCipher
- التطبيق مُقيَّد شبكياً بمزودي الخدمة المفعّلين فقط
- عرض الماركداون — تنسيق ردود الذكاء الاصطناعي (عناوين، خط عريض، قوائم، أكواد) مع دعم العربية وRTL
- إرسال صور لنماذج الرؤية (OpenAI, Anthropic, Gemini, OpenRouter)
- إرفاق ملف نصي (.txt / .html) مع الرسالة
- الإدخال الصوتي — تحويل الكلام إلى نص بالعربية والإنجليزية والتايلاندية
- نطق الردود — استمع إلى ردود الذكاء الاصطناعي عبر محرّك تحويل النص إلى كلام في النظام
- تصدير المحادثات كنص عادي أو ماركداون
- خيار منع لقطات الشاشة (FLAG_SECURE) — معطّل افتراضياً
- بحث في المحادثات حسب العنوان والمحتوى
- إيقاف التوليد أثناء الكتابة مع حفظ المحتوى الجزئي
- 3 لغات: العربية والإنجليزية والتايلاندية
- واجهة عربية كاملة مع دعم RTL
- الوضع الداكن يتبع إعداد النظام تلقائياً
- ترجمة تراعي اللهجات: الشامي، المصري، الخليجي، المغاربي، والفصحى
- قوالب ترجمة إنجليزي↔تايلاندي
- نسخ النصوص من ردود الذكاء الاصطناعي
- 12 قالب محادثة جاهز
- يعمل بدون خدمات Google Play
- مصدر مفتوح بترخيص GPL-3.0
التثبيت:
١. حمّل التطبيق من صفحة الإصدارات على GitHub
٢. اختر مزوّداً واحصل على مفتاح API (جوجل Gemini يوفّر طبقة مجانية)
٣. الصق المفتاح في الإعدادات
٤. ابدأ محادثة جديدة واختر قالباً
الترخيص: GPL-3.0-only