Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (remote-opencode) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
remote-opencode
Discord bot for remote OpenCode CLI access.
Installation
# Global install
npm install -g remote-opencode
# Or run directly with npx
npx remote-opencodeQuick Start
# 1. Interactive setup (register Discord bot token)
remote-opencode setup
# 2. Start the bot
remote-opencode startCommands
| Command | Description |
|---|---|
remote-opencode |
Start bot (shows guide if not configured) |
remote-opencode setup |
Interactive setup wizard |
remote-opencode start |
Start Discord bot |
remote-opencode deploy |
Deploy slash commands |
remote-opencode config |
Show configuration info |
Discord Slash Commands
/setpath {alias} {path}- Register a project path/projects- List registered projects/use {alias}- Set project for current channel/opencode {prompt}- Send command to OpenCode- Auto-creates thread
- Real-time output streaming (1s interval updates)
- [Interrupt] button: Stop current task
Requirements
- Node.js 22+
- OpenCode CLI (must be installed on host)
- Discord Bot (setup wizard guides creation)
Configuration Location
All configuration is stored in ~/.remote-opencode/:
config.json- Discord bot settings (token, Client ID, etc.)data.json- Projects and channel bindings
Development
# Run from source
git clone <repo>
cd remote-opencode
npm install
npm run dev setup # Run setup in dev mode
npm run dev start # Start bot in dev modeLicense
MIT