A frontend-only React Native chat client for connecting to your OpenCode serve API.
- Install dependencies
npm install- Start the dev server
npm run start- Open in Expo Go (or press
a/ifor emulator)
At first launch, the app asks for your OpenCode Base URL. Default value:
http://127.0.0.1:4096
For real-device testing, use your computer's LAN IP (for example http://192.168.50.64:4096).
For deployment or remote real-device access, you need a public HTTPS endpoint (domain/IP via intranet tunneling). Due to Android and iOS network security restrictions, plain http:// endpoints are not supported.
Before using the app, start OpenCode server:
opencode serve --hostname 0.0.0.0 --port 4096The app includes built-in i18n with English and Chinese (EN / ZH toggle in the header).
English is the default language.
- Creates a session with
POST /session/ - Sends prompts with
POST /session/:sessionID/prompt_async(with fallbacks) - Polls messages from
GET /session/:sessionID/message - Verifies server with
GET /global/healthwhen saving Base URL
This project is still evolving and has many areas that can be improved. If you find unreasonable behavior or UX issues during use, please take a screenshot and open an issue.