ModalityDance/PalmClaw
[EMNLP 2026 Demo] "PalmClaw: A Native On-Device Agent Framework for Mobile Phones"
📚 Overview
PalmClaw is an open‑source AI‑agent framework that runs directly on Android phones. It keeps the whole agent loop – session handling, context, memory, tool use, and scheduling – on the device, while the large language model (LLM) itself is accessed through any user‑provided API (OpenAI, Claude, etc.).
✨ Core Features
| Feature | What it means for you |
|---|---|
| On‑device agent runtime | No PC needed; the app hosts the agent, stores conversation history, and runs the tool‑calling loop locally. |
| Structured device tools | Typed APIs let the agent read/write files, query contacts, send messages, control hardware, browse the web, etc., with results returned in a predictable format. |
| Explicit execution boundaries | Before any action the framework checks JSON schemas, Android permissions, user confirmations, and workspace path limits, preventing accidental misuse. |
| Persistent sessions & memory | Conversations, tool traces, attachments, and a long‑term memory store survive across app restarts. |
| Channels & automation | The agent can be triggered from local chat or external channels (Telegram, Discord, Slack, Feishu, Email, WeCom) and can run scheduled jobs via Cron, heartbeat, or an “always‑on” foreground service. |
| Extensible integrations | Plug‑in new LLM providers, custom MCP servers, or additional skills without modifying the core code. |
🛠️ How It Works (high‑level)
- Message In – Input arrives from the on‑device chat UI or a configured external channel.
- Agent Loop – The framework builds a context (history + memory + skills) and sends a prompt to the configured LLM API. The LLM may request tool calls; the framework executes the requested tool, feeds the result back, and repeats until a final response is produced.
- Context & Memory – A lightweight Room database stores session state, persistent memory, and installed skills.
- Response Out – The final answer is displayed in the session UI and, if applicable, sent back through the originating channel.
📦 Quick Start (User)
- Download the latest APK from the Releases page (link in README).
- Install on your Android device and open the app.
- Follow the onboarding wizard to add an LLM provider (enter your API key and endpoint).
- Start a chat – the agent will respond using the configured model.
👩💻 Quick Start (Developer)
# Clone & open in Android Studio (requires JDK 17)
git clone https://github.com/ModalityDance/PalmClaw.git
cd PalmClaw
# Android Studio will sync Gradle, then run on a device or emulator
The repo follows a standard Android project layout; most logic lives under app/src/main/java/com/palmclaw/.
📂 Repository Layout (key folders)
- agent/ – builds prompts, runs the LLM‑driven loop.
- runtime/ – owns the single runtime instance, handles always‑on foreground service, cron jobs.
- tools/ – implementations of device‑side capabilities (file I/O, web search, etc.).
- channels/ – adapters for Telegram, Discord, Slack, Feishu, Email, WeCom.
- providers/ – abstraction over different LLM APIs and endpoint auto‑detection.
- memory/ & storage/ – persistent memory and Room DB.
- skills/ – loading of reusable skill modules (e.g., ClawHub browsing).
- ui/ – Jetpack Compose UI and navigation.
📚 Documentation & Demos
The README links to a small demo gallery (GIFs) showing setup, core features, tool usage, and channel configuration. A full website (modalitydance.github.io/PalmClaw) hosts additional docs, architecture diagrams, and the accepted EMNLP‑2026 system‑demo paper.
📜 License
Dual‑licensing:
- AGPL‑v3 for open‑source use (requires network‑service modifications to be open).
- Commercial license available for proprietary integration (see
LICENSE‑COMMERCIAL.md).
🎓 Who Might Use This?
- Mobile AI researchers who want to experiment with LLM‑driven agents on real phones.
- Developers building personal assistants, automation bots, or on‑device RAG pipelines.
- Enterprises looking for a self‑hosted, permission‑controlled AI agent that can run without cloud compute.
All information above is taken directly from the project's README; no external speculation added.
Related
- Project
- Project
- Project
- Project
- Project