Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.2.2 instead.
Reason given by maintainers: duplicate of v0.2.2

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

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.3
File Size Uploaded
oc_rox-0.2.3.tar.gz 13.5 kB Details

Built distribution (wheel)

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

Total release size: 26.6 kB

Release files / oc_rox-0.2.3.tar.gz

Download URL oc_rox-0.2.3.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6e51ac58c37553fedba017e2951fdd550974de11c8fb32fce46b60954c5df4ef
BLAKE2b-256 checksum
How to use checksums
7d5a596bfb5161741709ccfa781c0c868e25f221a8422866901832cd5fb740b7
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.3-py3-none-any.whl

Download URL oc_rox-0.2.3-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0152bac1a8b8aa1ae37ec5970f8ccf7fbe06a01b671f79d745908ae0e1e06ad0
BLAKE2b-256 checksum
How to use checksums
f05a440c6b5741fa4da238c62fc082d648cbf175c017921596649ac9cc167438
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

This release

0.2.3 This release

2 release files

0.2.2

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