AI terminal and agent runtime for Android — Codex and Claude Code on the phone, with an approval gate.
Connects with ChatGPT (Codex) and Claude Code on your subscriptions — plus API providers and on-device models.
"Save a grunge playlist in Spotify" → approved on the phone → Spotify runs on a hidden screen → ChatGPT says done → it's really there. (sped up)
App-operation demo — tasks like this need the ClosePaw integration (see "Advanced" below).
Shelly exists because its author wanted to run real development and research with nothing but a Galaxy Z Fold and AI. The environment that lets an AI operate the phone was itself built with AI, on that phone — and it is still his daily driver.
Your first command on the phone — 3 steps:
① Install the APK from Releases and open Shelly — the terminal is live right away (on Android 11+, Shelly checks All files access when setting up the terminal and asks only when it is missing, so the terminal can reach your files).
② In the terminal, run codex — if you are not signed in, Shelly prints the ChatGPT sign-in URL and a code and queues the URL for its own browser pane — and if that queueing fails, you can open the printed URL manually. No API key.
③ Ask Codex to work on your files — list, edit, build, research. It runs on the phone. The steps Shelly runs as an agent, and the run, execute and write calls that arrive over MCP, pass its approval gate when they need approval: you approve on the phone, pre-approved steps run without a tap, and safety-gate denials always apply. One exception: an eligible agent registration can also be confirmed from ChatGPT — that setting is on by default — and every confirmation is recorded in chat first, after which Shelly attempts a phone notification when notifications are enabled — posting can fail even then; when a notification is posted and Shelly can identify the agent, it also offers a one-tap Disable.
Prefer driving from the ChatGPT app? Run shelly codex pair and pair it there (remote control rides your ChatGPT sign-in; API keys are not supported for it).
Advanced — operating other apps (like the clip above): the official ClosePaw works, with its own confirmation (and returns no result); the background run in the clip needs the ClosePaw Shelly build (uninstall the official ClosePaw first), set up with an API key or an OpenAI-compatible endpoint. App operation is separate from the subscription promise above: the AI driving ClosePaw may use a paid API. The receiver also requires ClosePaw's onboarding to be finished, its accessibility service enabled, and overlay permission granted. Starting work through the trusted build's background receiver also requires ClosePaw's embedded adb channel to be paired and connected, with a known port (the official build is handed off through its activity instead). Shelly itself needs no Shizuku. App operation is different: its virtual display still runs through Shizuku, so the Shizuku server must be installed — current ClosePaw builds restart it automatically if it stops.
Runs on arm64 Android phones, Android 7.0+ (minSdk 24). The APK is about 700 MB; leave room for it plus the tools first launch extracts.
What's new: v8.4.1 release notes — the connected-automation flow diagram joins this README; no functional changes since v8.4.0.
If Shelly is useful or interesting to you, a ⭐ helps other people find it.
Shelly also wakes on its own alarm — screen off — and runs scheduled agents with your own AI accounts, local LLMs and a real terminal underneath: the Codex CLI in an app-owned JNI PTY, bash / git / Python 3 / Node.js bundled in the APK, and
Set up ESLint + Prettier
https://github.com/RYOITABASHI/Shelly/issues/143
Labels: good first issue
Thank you for considering contributing to Shelly. This is my first open source project, and your involvement means a lot.
This entire codebase was generated through AI conversation (Claude Code). I'm a designer, not a programmer — I can't read or write TypeScript. The code works, but it almost certainly has room for improvement in patterns, performance, and structure.
If you see something that could be better, that's not a bug report — that's the whole point of going open source.
Open an issue tagged enhancement. Code quality improvements, refactoring, and architectural suggestions are especially welcome.
git checkout -b fix/your-fix-namegit clone https://github.com/RYOITABASHI/Shelly.git
cd Shelly
pnpm install
pnpm start
This repository now includes a minimal Jest setup for pure TypeScript utilities.
pnpm test
React Native component testing is intentionally out of scope for this first setup and will come in a follow-up PR.
Tabs were removed a while back — app/index.tsx renders ShellLayout directly (AgentBar + Sidebar + multi-pane container + ContextBar), with Terminal/AI/Browser/Markdown as always-on panes rather than separate screens.
app/ → Expo Router entry points (index.tsx renders ShellLayout)
components/ → React Native components (layout/, multi-pane/, panes/, terminal/, config/)
lib/ → Core logic (input router, AI integrations, safety system)
store/ → Zustand stores
hooks/ → Custom React hooks
modules/ → Native modules — terminal-emulator/ (JNI forkpty PTY, Kotlin + C) and terminal-view/ (native Canvas terminal rendering). No Termux dependency.
See CLAUDE.md for the full directory map and architecture decisions log — it's kept current and is the best starting point before a PR that touches structure.
No linter or formatter is enforced yet. If you'd like to set one up, that would be a welcome contribution.
I may not understand the technical details of every PR, but I will review the intent and impact of every contribution. For complex changes, a plain-language explanation in the PR description helps me follow along.
By contributing, you agree that your contributions will be licensed under the GNU General Public License v3.0.