Skip to main content

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

oc_rox-0.2.1.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oc_rox-0.2.1-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

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

Hashes for oc_rox-0.2.1.tar.gz
Algorithm Hash digest
SHA256 df3e49a6080e76f1f6114b8fc7ddeecee5c00d56d082b604b8ff56b61e96ae25
MD5 417bfb6262283703659bc9522e6195cb
BLAKE2b-256 04208c57e2e62db1a24ef7d7a5fc0de4a0decdc0b6fd185eb8c3c27eadc52a6d

See more details on using hashes here.

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

Hashes for oc_rox-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 95f2d3adb9687257e331ec1654a8c5fa93854d6483beea5052dd65843c215f1a
MD5 0144011d7ecf44b7af7b8314067d7a69
BLAKE2b-256 940bc9f4dd85e29a7506715ac6360ab308e0716010d47c6862a4066695c370d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page