Zafiro is an open-source intelligent Agent running on Android devices, with BYOK support. It understands your screen, controls your device, and carries out operations across apps — with full support for Skills, MCP, and memory. It can also run Shell and Python 3 natively and wrap tools on its own to perform tasks such as web search and file downloads, or connect to a remote dev machine via SSH.
| Phone-Use | HTML Generation | External Agents | Multimodal |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
| Model Providers | Termux | Safety Guard | Session Management |
![]() |
![]() |
![]() |
![]() |
[!IMPORTANT] For native apps, Zafiro controls the phone via Accessibility Service; for non-native apps, it can also operate via Shizuku without Root. Root users get the full experience.
You can download a release from Releases, or choose to build from source.
Through the LSPosed framework, Zafiro can take over your system voice assistant — wake Breeno or XiaoAi, and the one actually answering is your own Agent. You can decide, based on keywords, which requests go to Zafiro and which pass through to the native assistant. After takeover, the assistant retains full Agent capabilities including device control.
[!NOTE] Taking over the system voice assistant requires Root + LSPosed, and currently supports: OPPO - Breeno
Voice takeover availability may be affected by phone model, system version, voice assistant version, and vendor system restrictions. When your device does not yet support system assistant takeover, you can still use Zafiro's chat interface with all Agent capabilities.
| Breeno | XiaoAi |
|---|---|
![]() |
![]() |
| Category | Technology |
|---|---|
| Language | Kotlin |
| UI Framework | Jetpack Compose |
| Design Language | Material Design 3 Expressive |
| Liquid Glass | Android Liquid Glass |
| Agent Runtime | Okia |
| Python Runtime | Chaquopy |
| System Takeover | LSPosed + Xposed API |
| Terminal / SSH | libterm |
| SVG Rendering | coil-resvg (resvg) |
| G2 Rounded Corners | Capsule |
./gradlew assembleDebug
keytool -genkeypair -v -keystore my-release.jks \
-keyalg RSA -keysize 2048 -validity 10000 -alias my_key
./gradlew assembleRelease \
-PRELEASE_STORE_FILE=/absolute/path/to/my-release.jks \
-PRELEASE_STORE_PASSWORD=yourStorePassword \
-PRELEASE_KEY_ALIAS=my_key \
-PRELEASE_KEY_PASSWORD=yourKeyPassword
./
├── app/ # Main app: Compose UI, AgentRuntimeService, Xposed hooks
├── business/ # Core business layer (separation of contracts and implementations)
│ ├── api/ # Public business contract interfaces
│ ├── agent/ # Agent core logic, conversation orchestration & state flow
│ ├── files/ # File attachments, document path resolution
│ ├── notification/ # Resident notification, foreground service & channel management
│ ├── permission/ # Unified permission manager (Root / Shizuku auto-granting, tool approval)
│ └── application/ # Application management & lifecycle
├── agent-runtime/ # Agent runtime: LLM invocation, Tool/Skill/MCP execution, Python runtime
├── xsettings/ # Lightweight configuration module (depended on by modules as needed)
├── store/ # Store persistence, IPC bridge (XIpcBridge)
├── ui-kit/ # Shared Compose components, LiquidScreen shell, navigation
├── remote-view/ # Cross-process / floating RemoteView components
├── xposed-api/ # Xposed event types, shared constants (shared by main app and host process)
├── xposed-runtime/ # Xposed runtime, hook base classes
└── libs/
├── logging/ # Logging library
├── okia/ # Okia Agent runtime base library
└── libterm/ # Terminal library (multiple backends: libsu, shizuku, ssh, etc.)
/skill hints, and cloud skill importsPull requests are welcome!
git checkout -b feat/your-feature)git commit -m 'feat: add your feature', following Conventional Commits)git push origin feat/your-feature)Before contributing using coding agents like Codex, make sure they have read the project's AGENTS.md.
When reporting an issue, please include as much detail as possible: phone model and Android version, system voice assistant and its version, Zafiro version, steps to reproduce, and screenshots or screen recordings.
We welcome sponsorships through the following channels:
MIT — see LICENSE.
Made with ✨️ by niki914
| 日期 | 榜单 | 排名 | 周期新增 | 总 STAR |
|---|