CleverKeys is the only fully open-source neural network gesture keyboard for Android. Featuring an AI-powered swipe engine that runs entirely on-device, unlimited clipboard history, and a powerful theme engine with DIY customization. No proprietary libraries. No cloud dependencies. No data collection.
| Feature | CleverKeys | HeliBoard | FUTO | FlorisBoard | AnySoftKeyboard |
|---|---|---|---|---|---|
| Gesture Typing in Termux | ✅ | ❌ Broken | |||
| Gesture/Swipe Typing | ✅ Stable | ✅ Stable | |||
| Multi-Language Swipe⁹ | ✅ 11 languages | ❌ | ❌ | ||
| Gesture Engine Open Source | ✅ | ❌¹ | ✅² | ✅ | ✅ |
| ML Training Code Public | ✅ | N/A | ✅⁶ | N/A³ | N/A³ |
| Model Size | 13MB | Proprietary | 62MB | N/A | N/A |
| APK Size | ~52MB | ~45MB | ~200MB | ~15MB | ~25MB |
| Clipboard History | ✅ Unlimited | ✅ 25 items | ✅ 20-100 items | ❌ 15s hint only | |
| Short-Swipe Actions⁸ | ✅ 208 gestures | ❌ | |||
| Per-Key Customization | ✅ 204+ commands | ❌ | ❌ | ❌ | ❌ |
| Custom Layouts | ✅ XML (8 sublabels) | ✅ JSON | ✅ YAML | ||
| DIY Theme Creator | ✅ | ✅ | ❌ (16 built-in) | ✅ Snygg v2 | ✅ |
| Word Suggestions | ✅ | ✅ | ✅ | ❌ (v0.6 planned) | ✅ |
| No Internet Access | ✅ | ✅ | ✅ | ✅ | ✅ |
| License | GPL-3.0 | GPL-3.0 | Source-First² | Apache-2.0 | Apache-2.0 |
Footnotes & Sources
¹ HeliBoard requires Google's proprietary libjni_latinimegoogle.so library for gesture typing (source)
² FUTO uses "Source First License 1.1" — source-available but restricts commercial use (source)
³ FlorisBoard and AnySoftKeyboard use algorithmic approaches (corner matching, template matching) — no ML training involved
⁴ HeliBoard has a known bug where swipe typing in Termux produces duplicated/corrupted output
⁵ FlorisBoard glide typing is disabled by default and labeled "alpha quality" — must be enabled manually in advanced settings
⁶ FUTO swipe training dataset is public on HuggingFace with training code in their repo
⁷ HeliBoard clipboard retention defaults to 10 minutes but is configurable; items are not persisted across restarts by default
⁸ Short-swipe actions: 8 directions × 26 keys = 208 one-touch gestures for navigation (arrows, home/end), editing (select all, undo, cut/copy/paste), function keys (F1-F12), and more — no long-press menus needed
⁹ Multi-language swipe typing: CleverKeys uses the same neural network model for all languages — dictionaries provide word candidates, not language-specific models. 6 languages bundled (en, es, fr, pt, it, de), 5 downloadable (nl, id, ms, tl, sw). Primary + secondary language support with automatic best-match selection.
CleverKeys uses a custom transformer neural network (encoder-decoder architecture) trained specifically for swipe typing. Unlike algorithmic approaches, neural models learn complex patterns from real swipe data. The model architecture, training code, and datasets are all publicly available at CleverKeys-ML — making it fully reproducible and auditable.
Key differentiators:
- Only keyboard with public ML training pipeline — verify exactly how the model was trained
- ONNX format — cross-platform, hardware-accelerated inference via XNNPACK
- Sub-200ms predictions — optimized for mobile with beam search decoding
- 208 customizable short-swipe gestures — 8 directions × 26 letter keys
Android restricts clipboard access for security - apps can't read clipboard contents in the background. But keyboards are special. As an Input Method Editor (IME), CleverKeys has legitimate clipboard access, making it the only way to get truly unlimited clipboard history without root.
CleverKeys is the only open-source keyboard with reliable swipe/gesture typing in Termux. Other keyboards either disable gestures in terminals (FlorisBoard), produce corrupted output (HeliBoard), or simply don't work (FUTO). Commercial keyboards like Gboard and SwiftKey also disable swipe in Termux. CleverKeys works everywhere — including terminal emulators, SSH sessions, and developer tools.
*Recommended — Obtainium pulls directly from GitHub releases, avoiding F-Droid's typical 24-48 hour update delay.
CleverKeys features one of the most powerful keyboard theme engines available:
- CleverKeys Dark — Deep purple with silver accents (default)
- CleverKeys Light — Silver keys with purple accents
- Neon Cyan/Magenta — Vibrant cyberpunk aesthetic
- ePaper / ePaper Black — High contrast e-ink styles
- Jungle — Tropical teal theme
- Everforest Light — Soft green nature theme
- Monet (Auto) — Material You dynamic colors
- Dark / Light / Black / Alt Black — Classic options
- And many more...
Build your own themes on-the-fly with full control over:
- Key Colors — Default, Activated, Locked, Modifier, Special
- Label Colors — Primary, Sub-label, Secondary labels
- Border Colors — Full border customization
- Trail Effects — Swipe trail color and style
- Transformer-based encoder-decoder model (5.4MB encoder + 7.4MB decoder)
- Sub-200ms predictions with hardware acceleration (XNNPACK)
- 100% local processing — works in airplane mode
- Full inference control — beam width, length normalization, pruning, early stopping
As an IME, CleverKeys has legitimate clipboard access that other apps don't:
- Unlimited history (configurable by count or storage size)
- Pin important items
- Search through history
- Persistent across reboots
- Export/Import for backup
- Zero network permissions — literally cannot phone home
- No analytics or telemetry
- No cloud sync
- All processing on-device
- Open source = auditable
Unlike black-box keyboards, CleverKeys exposes all parameters:
- Beam search tuning (width, length normalization, pruning)
- Autocorrect settings (thresholds, style presets)
- Dictionary control (custom words, frequency adjustments)
- Gesture sensitivity and thresholds
Assign custom actions to any key's 8 swipe directions:
- 204+ built-in commands — navigation, editing, clipboard, function keys, special characters
- Custom text macros — email addresses, signatures, code snippets, emoji sequences
- System actions — keyboard settings, voice typing, language switch, numeric pad
- Visual feedback — custom icons displayed as sublabels on keys
- Import/Export — share your customizations as JSON profiles
Inherited from Unexpected Keyboard:
- QWERTY, AZERTY, QWERTZ, Dvorak, Colemak
- Programming layouts with special characters
- International layouts for 30+ languages
- Customizable bottom row and modifiers
- Terminal mode — Ctrl/Meta/Fn keys for Termux users
- Short swipe gestures — Swipe keys for symbols, navigation, clipboard, and function keys
- Selection-Delete mode — Hold backspace and swipe to select text, then delete on release
- TrackPoint navigation — Joystick-style cursor control on nav keys (hold to activate)
- Timestamp keys — Insert formatted date/time with custom patterns (8 pre-defined shortcuts)
- Quick Settings tile — Switch keyboards from Android Quick Settings
- Password manager privacy — Exclude clipboard from password managers (1Password, Bitwarden, etc.)
- Backup & Restore — Export all settings and custom data as profiles
CleverKeys supports swipe typing in 11 languages with intelligent multi-language features:
Included in the APK — no additional download required:
| Language | Code | Dictionary Size |
|---|---|---|
| English | en | 52,000 words |
| Spanish | es | 50,000 words |
| French | fr | 25,000 words |
| Portuguese | pt | 25,000 words |
| Italian | it | 25,000 words |
| German | de | 25,000 words |
Available via Settings → Languages → Download Language Packs:
| Language | Code | Dictionary Size | Source |
|---|---|---|---|
| Dutch | nl | 20,000 words | wordfreq |
| Indonesian | id | 20,000 words | wordfreq |
| Malay | ms | 20,000 words | wordfreq |
| Tagalog | tl | 20,000 words | wordfreq |
| Swahili | sw | 20,000 words | Wikipedia corpus |
Primary + Secondary Language
- Set your primary language for main typing
- Add a secondary language for automatic detection
- Neural network evaluates both dictionaries simultaneously
- Best prediction selected automatically per swipe
Smart Accent & Punctuation Insertion
- Automatic accent marks for languages that need them (café, naïve, señor)
- Language-aware punctuation (Spanish ¿¡, French « », German „")
- Proper handling of contractions across languages
Per-Language Dictionary Manager
- Separate tabs for each active language
- View word frequencies and dictionary statistics
- Add custom words per language
- Import/export language-specific word lists
You can create dictionaries for any language using the included Python scripts:
# Navigate to scripts directory
cd scripts/
# Option 1: Generate from wordfreq (requires Python wordfreq package)
# Supported: en, es, fr, de, it, pt, nl, id, ms, tl, and 20+ more
python build_langpack.py --lang fr --output langpack-fr.zip
# Option 2: Build from custom word frequency list
# Format: word,frequency (one per line)
python build_dictionary.py --input my_words.csv --output my_lang.bin
# Option 3: Build all supported languages at once
python build_all_languages.pyScript Details:
build_langpack.py— Creates complete .zip language packs from wordfreqbuild_dictionary.py— Builds binary dictionary from CSV word listsbuild_all_languages.py— Batch builds all supported languagesget_wordlist.py— Extracts top N words from wordfreq for a language
Language packs are simple .zip files containing:
{lang}_enhanced.bin— Binary dictionary with frequency data{lang}_enhanced.json— Human-readable word list with frequenciesmanifest.json— Metadata (language code, version, word count)
Pre-built Language Packs:
Available in scripts/dictionaries/ for testing, or download directly from the app.
- User Guide Wiki — 38-page comprehensive documentation
- Feature Specifications — Technical documentation for developers
- Changelog — Version history and release notes
- Roadmap — Planned features and development path
- Minimum SDK level 26 (Android 8.0+)
- Kotlin based — 100% Kotlin, zero Java
- ONNX Runtime — Microsoft's cross-platform inference engine
- Kotlin Coroutines — Asynchronous processing
- Flow — Reactive data streams
- Material 3 — Google's latest design system
- Android SDK (API 26+)
- Gradle 8.6+
- Kotlin 1.9.20
- JDK 17
# Clone repository
git clone https://github.com/tribixbite/CleverKeys.git
cd CleverKeys
# Debug build
./gradlew assembleDebug
# Run tests
./gradlew test
# APK location
# build/outputs/apk/debug/cleverkeys.apkUse the included build script which handles ARM64-specific AAPT2:
./build-on-termux.shCleverKeys uses a custom transformer neural network model for gesture recognition:
| Component | Details |
|---|---|
| Architecture | Encoder-Decoder Transformer |
| Encoder | Processes swipe trajectories (x, y, velocity, acceleration, nearest keys) |
| Decoder | Generates word predictions from encoded features |
| Format | ONNX (cross-platform, optimized inference) |
| Runtime | ONNX Runtime 1.20.0 with XNNPACK acceleration |
| Total Size | ~13MB (encoder + decoder) |
Training code, model architecture, and datasets: CleverKeys-ML
This application is completely free and open source. If you want to support continued development, you can send a donation via the methods below:
triQem2gDXHXweNceTKWGfDfN6AnpCHmjR745LXcbix |
|---|
CleverKeys began as a fork of Unexpected Keyboard by Jules Aguillon (@Julow). The original is an excellent, highly customizable keyboard with support for 100+ layouts.
Our projects have since diverged significantly (~900 commits apart):
- Complete rewrite from Java to Kotlin
- Addition of gesture typing via custom neural network model
- Clipboard history system
- Different architecture (coroutines, ONNX integration)
If you want a lightweight keyboard without gesture typing, we recommend the original Unexpected Keyboard.
- Neural Swipe Typing by @proshian — Initial architecture inspiration
- How We Swipe — Research paper and dataset on swipe behavior
- FUTO Swipe Dataset — Hugging Face dataset
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Security: See SECURITY.md
CleverKeys - Neural Gesture Keyboard for Android
Copyright (C) 2024-2026 tribixbite
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Built with Kotlin, ONNX, and a commitment to privacy.
Developed in Termux on Android.
🦝✨





.jpg)

