@rn-ave/opencode
v0.1.1
Published
OpenCode agent server for rn-ave
Maintainers
Readme
@rn-ave/opencode 🤖
OpenCode 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.
Installation
npm install @rn-ave/opencode --save-devUsage
Run the server from your project root:
npx @rn-ave/opencodeOptions
| 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() |
Example
npx @rn-ave/opencode --model google/gemini-3-flashHow it works
- The bridge server listens on port
4569. - When you tap "OpenCode" in the
rn-aveapp UI, it sends the component's source, props, and JSX preview. - This server ensures a fresh OpenCode session is running on port
2222for your current directory. - It passes your prompt and the component context to the OpenCode SDK.
- OpenCode's agent analyzes your files and applies the requested changes.
