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..

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.0.tar.gz (12.5 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.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file oc_rox-0.2.0.tar.gz.

File metadata

  • Download URL: oc_rox-0.2.0.tar.gz
  • Upload date:
  • Size: 12.5 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.0.tar.gz
Algorithm Hash digest
SHA256 609823c73ea89051cb340ac8efa293f2363cd0212d35f0c544baf7168e2101a2
MD5 797c44f722615a3c70db131293ea0c3e
BLAKE2b-256 bceca60e92f2d1226bf8e8d1f5cf2d99eb2f7a1ccd4aa80752986b8cab1cd906

See more details on using hashes here.

File details

Details for the file oc_rox-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: oc_rox-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8f941d11c1d06e76ebba7310fbfab76ba8abaae5efa2372b64e1ab3a9c9ffcf
MD5 1cce355228cb016e38e1b7e51122816e
BLAKE2b-256 8449fd924c00aa9fed92484e602613a20de6138a58c5cbe4f816da919bfcaf4c

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