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
Metadata
Release files for oc-rox 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| oc_rox-0.2.2.tar.gz | 13.5 kB | Without provenance | Details for oc_rox-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| oc_rox-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for oc_rox-0.2.2-py3-none-any.whl |
Total release size: 26.5 kB
Release files / oc_rox-0.2.2.tar.gz
| Download URL | oc_rox-0.2.2.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8d3815807c4ca67bec274b798af354d071bd6e4dfe3dab4107aaa37c20f993d8
|
|
BLAKE2b-256 checksum How to use checksums |
fbbec754f91d6813c2b636267036e949b322267b6ecf30e261b6ab060114fdf8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / oc_rox-0.2.2-py3-none-any.whl
| Download URL | oc_rox-0.2.2-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
281bcd6caf4132f169a7ac49e5ceb4fdcb542dc91a5c110b4e4954dc61c0a0a1
|
|
BLAKE2b-256 checksum How to use checksums |
279435b4461363d568ba83dc93ba8eae8dda1af9e3934172d70c96c4c30bf975
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for oc-rox 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.