oc-rox
control your opencode session from telegram bot
Install
pip install oc-rox
Put a .env file in ~/.config/oc-rox/ with:
TELEGRAM_BOT_TOKEN=your_bot_token
ALLOWED_TELEGRAM_USER_ID=your_telegram_id
Run
oc-rox
Run as a service
Same commands on Linux and macOS. oc-rox enable writes the service config once, resolving your oc-rox binary path automatically.
oc-rox enable # installs service + starts now and at boot
oc-rox status # check it
oc-rox stop # stop
oc-rox disable # stop + remove from boot
oc-rox start # start again
oc-rox restart # restart
Linux
oc-rox enable writes ~/.config/systemd/user/oc-rox.service and enables it. The service runs in your user context, so it can reach your tmux sessions and ~/.config/oc-rox/.env.
The service runs with a minimal PATH, so if opencode is not in /usr/bin etc., set its absolute path in ~/.config/oc-rox/.env:
OPENCODE_CMD=/path/to/opencode
The unit is regenerated on oc-rox enable (re-run it after changing OPENCODE_CMD or moving binaries).
macOS
oc-rox enable writes ~/Library/LaunchAgents/oc-rox.plist and loads it via launchctl. Logs go to ~/Library/Logs/oc-rox.log and oc-rox-error.log.
Windows
will add in few days
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oc_rox-0.2.1.tar.gz.
File metadata
- Download URL: oc_rox-0.2.1.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df3e49a6080e76f1f6114b8fc7ddeecee5c00d56d082b604b8ff56b61e96ae25
|
|
| MD5 |
417bfb6262283703659bc9522e6195cb
|
|
| BLAKE2b-256 |
04208c57e2e62db1a24ef7d7a5fc0de4a0decdc0b6fd185eb8c3c27eadc52a6d
|
File details
Details for the file oc_rox-0.2.1-py3-none-any.whl.
File metadata
- Download URL: oc_rox-0.2.1-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95f2d3adb9687257e331ec1654a8c5fa93854d6483beea5052dd65843c215f1a
|
|
| MD5 |
0144011d7ecf44b7af7b8314067d7a69
|
|
| BLAKE2b-256 |
940bc9f4dd85e29a7506715ac6360ab308e0716010d47c6862a4066695c370d9
|