OpenCode agent server for rn-ave
npm install @rn-ave/opencodeOpenCode agent bridge for rn-ave. This server receives component context from your React Native app and triggers the OpenCode AI agent to modify your code.
``bash`
npm install @rn-ave/opencode --save-dev
Run the server from your project root:
`bash`
npx @rn-ave/opencode
| Flag | Description | Default |
|------|-------------|---------|
| --model | Specify the AI model to use | opencode/grok-code |--port
| | The port for this bridge server | 4569 |--project
| | The project root path | process.cwd() |
`bash`
npx @rn-ave/opencode --model google/gemini-3-flash
1. The bridge server listens on port 4569.rn-ave
2. When you tap "OpenCode" in the app UI, it sends the component's source, props, and JSX preview.2222` for your current directory.
3. This server ensures a fresh OpenCode session is running on port
4. It passes your prompt and the component context to the OpenCode SDK.
5. OpenCode's agent analyzes your files and applies the requested changes.