A free AI agent & toolbox for Android | 一站式安卓 AI 智能体 & 工具箱
English | 简体中文
A free AI agent & toolbox for Android: say what you need and the built-in agent drives 90+ in-app tools to get it done — plus image & document tools, productivity and daily utilities, and 100+ file formats you can open right away.
Plenty of toolbox apps are long on features. OneBox's built-in AI assistant saves you from hunting for tools and memorizing steps — just say what you want:
"Turn these images into a PDF." "Log this bill screenshot into my ledger." "Make me a to-do list." "Look up today's stock prices online."
It understands, acts, and reports back — in one flow.
.litertlm file, and chat without network, account or token cost — inference runs entirely on-device via LiteRT-LM (Google Play and FOSS builds only). Translation and reading text from photos have on-device paths too — see On-Device AI.Three things in OneBox run on the phone itself. Once the model is on the device, they work without a network, an account or points.
| Task | Runtime | Model | Download |
|---|---|---|---|
| Chat | LiteRT-LM | Gemma 3 1B (int4), Qwen3 0.6B, or your own .litertlm | ~585 MB / ~615 MB |
| Translate | LiteRT-LM | Tencent Hy-MT3 1.8B | ~1.8 GB |
| Read text in photos | ONNX Runtime + OpenCV | PP-OCRv6 small | ~26 MB |
.litertlm from storage (it is copied in, so the original can go), then set it as the chat model. GPU first, CPU fallback, 4K context; memory pressure releases the engine instead of killing the app.feature/ai/src/litertlm/); domestic builds compile a stub, so local chat and translation are missing there, while OCR is in every build.OneBox is also a file viewer. Tap an attachment in a chat app, a file in a file manager, or share one over from another app — it lands on the right screen, with no separate Office, PDF, media player or unzip app.
| Type | Count | Common formats | Opens in |
|---|---|---|---|
| Images | 24 | jpg / png / gif / webp / heic / tiff / svg / avif / jxl / qoi … | Built-in viewer with swipe and zoom |
| 1 | Built-in PDF preview | ||
| Documents | 11 | doc / |
[MODEL] New model - Hy-MT3-1.8B
https://github.com/wangzhishou/OneBox/issues/39
Labels: 없음
[aw] Detection Runs
https://github.com/wangzhishou/OneBox/issues/30
Labels: agentic-workflows
runBlocking(Dispatchers.IO) inside NanoHTTPD request handlers risks thread starvation
https://github.com/wangzhishou/OneBox/issues/23
Labels: bug
File transfer server sessions never expire — unbounded memory growth and stale auth risk
https://github.com/wangzhishou/OneBox/issues/22
Labels: bug
Resource exclusion pattern org/ silently strips resources from all org.* library packages
https://github.com/wangzhishou/OneBox/issues/21
Labels: bug
androidCompileSdkExtension = "-" silently becomes null, hiding the intended SDK extension level
https://github.com/wangzhishou/OneBox/issues/20
Labels: good first issue
"universal" ABI flavor produces identical APK to "arm64" — misleading name and wasted build time
https://github.com/wangzhishou/OneBox/issues/19
Labels: bug, help wanted
OneBox is maintained by one person, so the fastest way to get a change merged is to keep it small and focused. This file explains what is useful, how to build, and what will not be merged.
Code is not the only useful contribution:
| Contribution | Why it matters |
|---|---|
| Bug reports | Include app version, Android version, device model and steps to reproduce. adb logcat output is gold. |
| Translations | The app and the Play listing ship in 13 locales. A wrong translation in your language is a bug nobody else here can see. See fastlane/metadata/android/<locale>/ and res/values-<locale>/strings.xml. |
| Device testing | OneBox targets Android 7.0+ across a lot of OEM ROMs. "Works on my Pixel" is not "works on HyperOS". |
| Tool ideas | 90+ tools already exist. The interesting gap is which tool the agent should drive next, not another settings screen. |
| Documentation | docs/modules.md and this file are the map. Anything unclear to you is unclear to the next person. |
| Code | See below. |
good first issue are scoped to be doable without deep context.help wanted means a PR is actively wanted.ANDROID_HOME or local.propertiesgradle/libs.versions.toml and gradle/wrapper/gradle-wrapper.properties are the source of truth for every version. Ignore version numbers quoted in prose anywhere else, including the README.
The repository carries a lot of binary assets, so a full clone is large. For building, a shallow clone is enough:
git clone --depth=1 https://github.com/wangzhishou/OneBox.git
cd OneBox
git remote add upstream https://github.com/wangzhishou/OneBox.git
./gradlew :app:assembleFossArm64Debug # the variant CI checks
./gradlew :app:assembleGoogleArm64Debug # recommended local build (Google / Play channel)
./gradlew :feature:ai:compileGoogleArm64DebugKotlin # one module, much faster
google is the overseas / Play flavor and the default local build target; swap Google for Onebox, Xiaomi, Huawei, … when you need a domestic channel.
foss is the fully-FOSS flavor: no Google Play Services, no Firebase, no WeChat or Alipay SDKs, and it needs no keystore. It is the cheapest variant that still exercises the whole module graph, which is why pull requests are verified against it.
If you hit InjectProcessingStep was unable to process ... could not be resolved, that is a KSP/Hilt cache problem, not your code:
./gradlew clean :feature:app:kspGoogleArm64DebugKotlin
The project syncs and builds with no key files at all. Release signing falls back to placeholders, debug builds use AGP's default debug keystore, and third-party service keys are empty so those features stay disabled.
To build a fully configured variant, copy keystore.properties.template to keystore.properties and fill it in. Never commit it — it is gitignored for a reason.
Be aware before you write any: this project has almost no test culture, deliberately. There is one JVM test module (feature:xiangqi) and no instrumentation or Compose UI tests. Do not add a test suite as a drive-by contribution — a focused fix that you built and ran is what is expected. If you fix a runtime bug, say in the PR how you verified it. "It compiles" is not verification.
detekt runs with the default rule set on every module as part of the build. There is no ktlint or spotless.
*Component with a Factory interface plus onGoBack / onNavigate callbacks.UI / Tool / Component → Service / UseCase / Repository interface → implementation. UI code must not touch DAOs, Retrofit, Room or the filesystem directly.Screen.kt, ChildProvider.kt, NavigationChild.kt, settings.gradle.kts, plus the shell files if it is a top-level screen). Find an existing screen of the same shape and copy that instead of inventing a pattern.AgentTool and register it with Hilt via @Provides @IntoMap @StringKey("tool_name"). Tools are thin adapters — the logic belongs in the layer below.com.wanbaohe.*. com.t8rin.* is inherited from upstream ImageToolbox and is deliberately left alone so the diff against upstream stays reviewable.feat(scope):, fix(scope):, docs:, build(deps):.main. Name the branch after what you are fixing.:app:assembleFossArm64Debug on every PR. A red PR will not be reviewed until it is green.