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

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)

Source distribution for oc-rox 0.2.2
File Size Uploaded
oc_rox-0.2.2.tar.gz 13.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for oc-rox 0.2.2
File Interpreter ABI Platform
oc_rox-0.2.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

0.2.3

2 release files

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page