P4OC
OpenCode client. Streaming chat, inline diffs, terminal UI. BYO server.
Install / Use
npx skills add theblazehen/P4OCInstalls into whichever agent you are using.
Other
Other agent config
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of P4OC
P4OC scores 81/100 on our quality scale, 3452nd of 4,614 Development & Engineering skills we index.
Its Other is 5.0 KB long, well organised into 12 sections with 4 code examples: a solid amount of guidance for an agent.
It has 87 GitHub stars, a meaningful sign that others use it.
Maintenance, license and trust
- The repository was last updated 26 days ago, so P4OC is actively maintained.
- Our last check on 2026-10-21 found the source still online.
- It is released under GPL-3.0, a copyleft license: you can use it, but modified versions you distribute must carry the same license.
- Its trust signals score 95/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit ā read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk ā read a skill before letting an agent act on it.
P4OC compared with similar skills
All 4 of these similar skills score higher than P4OC; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| P4OC (this skill)by theblazehen | 81 | 87 | 26d ago | Other |
| taste-skillby Leonxlnx | 100 | 111.0k | 1d ago | CLAUDE.md |
| ai-job-searchby ai-job-search-dev | 100 | 70.0k | today | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 46.6k | 3d ago | CLAUDE.md |
| lobehubby lobehub | 100 | 84.2k | today | MCP Server |
Frequently asked questions
- How do I install P4OC?
- Run
npx skills add theblazehen/P4OC. The install tabs above show the steps for each supported agent. - Which AI agents does P4OC work with?
- It is written for Universal, as a Other file. Other agents that read the same format can often use it too.
- Is P4OC safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is GPL-3.0-licensed and scores 95/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is P4OC still maintained?
- The repository was last updated 26 days ago, so P4OC is actively maintained.
Skill content
View source on GitHubP4OC (Pocket for OpenCode)
<a href="https://play.google.com/store/apps/details?id=dev.blazelight.p4oc"> <img src="https://raw.githubusercontent.com/pioug/google-play-badges/main/svg/en.svg" alt="Get it on Google Play" height="80"> </a>An Android client for OpenCode, the terminal-based AI coding assistant. You point it at a running OpenCode server and talk to it from your phone.
Note: P4OC is a community project and is not built by or affiliated with the OpenCode team.
The whole thing is built around a terminal UI aesthetic. No stock Material3 cards or rounded corners. Everything is flat, monospaced where it matters, and styled to look like it belongs in a terminal.
Quick Start
-
Start OpenCode in server mode:
opencode serve --hostname 0.0.0.0 --port 4096To require authentication, set
OPENCODE_SERVER_PASSWORDbefore starting the server. -
Install P4OC from Google Play or GitHub Releases
-
Enter your server URL (e.g.
http://192.168.1.100:4096) and start chatting
What it does
You connect to an OpenCode server instance by entering its URL. From there you can:
- Chat with the AI assistant, with streaming responses via SSE
- Manage sessions ā create, rename, share, summarize, view diffs, revert changes
- Browse project files with symbol search and syntax highlighting
- View file diffs from AI edits with additions/deletions
- Use an embedded terminal (Termux-based)
- Open sub-agent sessions in their own tabs
- Configure providers, models, agents, and skills
- Switch between 9 bundled color themes (catppuccin, dracula, nord, tokyonight, gruvbox, and others)
The release APK is around 2.9 MB.
Screenshots
<p align="center"> <img src="screenshots/screenshot_1.png" width="300" /> <img src="screenshots/screenshot_2.png" width="300" /> </p>Requirements
- Android 8.0+ (API 26)
- A running OpenCode server instance to connect to
Building
You need Java 17 and the Android SDK.
# Debug build (no signing required)
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk
./gradlew :app:assembleDebug
The APK lands in app/build/outputs/apk/debug/.
For release builds, create a local.properties file in the project root with your signing config:
RELEASE_STORE_FILE=/path/to/your/keystore.jks
RELEASE_STORE_PASSWORD=your_store_password
RELEASE_KEY_ALIAS=your_key_alias
RELEASE_KEY_PASSWORD=your_key_password
Then:
./gradlew :app:assembleRelease
How it works
The app connects to an OpenCode server over HTTP. It uses Retrofit for REST calls and LaunchDarkly's EventSource for SSE streaming. Messages come in as server-sent events, which the app parses and renders in real time.
The architecture is MVVM with clean architecture layers:
app/src/main/java/dev/blazelight/p4oc/
āāā core/ # Network layer, DataStore, connection management
āāā data/ # DTOs, mappers, repository implementations
āāā di/ # Koin dependency injection modules
āāā domain/ # Models, repository interfaces
āāā terminal/ # Termux terminal emulator integration
āāā ui/
āāā components/ # Shared TUI components, markdown renderer, code blocks
āāā navigation/ # NavGraph, route definitions
āāā screens/ # Chat, sessions, projects, settings, terminal, files, diff
āāā theme/ # Theme system (SemanticColors, Spacing, Sizing, Typography, Motion)
Theme system
The app uses a custom theme system instead of Material3's built-in theming. There are about 50 semantic color tokens (LocalOpenCodeTheme.current), plus Spacing.*, Sizing.*, TuiShapes (all 0dp corners), and Motion.* tokens. Themes are loaded from JSON files that follow OpenCode's theme format.
Bundled themes: catppuccin, catppuccin-frappe, catppuccin-macchiato, dracula, gruvbox, nord, opencode, tokyonight, xterm.
Tech stack
| What | Version | |------|---------| | Kotlin | 2.3.0 | | AGP | 9.0.0 | | Compose BOM | 2026.01.01 | | Min SDK | 26 (Android 8.0) | | Target SDK | 35 | | Compile SDK | 36 |
Networking: OkHttp 5.3 + Retrofit 3.0. DI: Koin 4.1. Database: Room 2.8. Serialization: kotlinx.serialization 1.10. Markdown: mikepenz multiplatform-markdown-renderer. Terminal: Termux terminal-emulator + terminal-view.
Contributing
See CONTRIBUTING.md.
License
Copyright 2025 Jasmin Le Roux
Licensed under the GNU General Public License v3.0. See LICENSE for the full text.
Related Skills
taste-skill
111.0kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
ai-job-search
70.0kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
46.6kA visual, example-driven guide to Claude Code ā from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
lobehub
84.2k𤯠LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit ā see the Safety scan above for what the skill file itself contains.
