Codex Telegram + Web
A bridge that lets you control the Codex App Server from Telegram and Web UI.
Features
Telegram Bot
Control Codex directly from Telegram:
- Slash commands:
/start,/resume,/projects,/review,/exec, and more - Real-time updates: Receive progress notifications and turn completions
- Interactive approvals: Approve/deny dangerous operations with inline buttons
- Multi-project support: Switch between projects with
/project <name> - Thread management: Start, resume, fork, archive conversations
Web UI
ChatGPT-style interface with advanced features:
- Streaming responses: Real-time message streaming via SSE
- Multi-project tabs: Each project has independent workspace context
- Thread tabs: Multiple conversations per project
- Workspace browser: File tree, Git status, file preview, diff viewer
- Settings panels: Features, Models, Modes, Skills, Apps, MCP, Guardian
- Dark/Light theme: Theme toggle with localStorage persistence
- Responsive design: Desktop and mobile layouts
Shared Features
- Approval workflow: Interactive approve/deny for sensitive operations
- Guardian: Policy-based safety rules to auto-approve or escalate requests
- Real-time events: Live updates via SSE (Web) and push notifications (Telegram)
- Multi-project: Manage multiple projects with separate thread histories
Requirements
- Python
3.11+ - Telegram Bot Token (if Telegram enabled)
- Installed and runnable
codexCLI - Web UI: password and allowed users configured
Find your Telegram user ID: https://t.me/userinfobot
Quick Start
1. Install
pip install codex-telegram
If installation fails, try:
# Upgrade pip first
pip install --upgrade pip
# Install with system packages flag (some Linux distributions)
pip install codex-telegram --break-system-packages
# Or install for current user only
pip install codex-telegram --user
# Or use a virtual environment
python -m venv .venv && source .venv/bin/activate
pip install codex-telegram
Update
The CLI checks for updates automatically on startup. When a newer version is available on PyPI, you'll see:
✨ Update available! 0.5.1 -> 0.5.2
Release notes: https://github.com/heungtae/codex-telegram/releases/latest
1. Update now and exit (runs `pip install -U codex-telegram`)
2. Skip this run
3. Skip this version
Choose [1/2/3] (default: 2):
You can also update manually:
pip install -U codex-telegram
Or with system packages flag:
pip install -U codex-telegram --break-system-packages
2. Configure
Create ~/.config/codex-telegram/conf.toml:
project = "default"
[projects.default]
name = "my project"
path = "/path/to/your/project"
[telegram.bot]
token = "YOUR_TELEGRAM_BOT_TOKEN"
[users]
allowed_ids = [123456789]
3. Run
codex-telegram
Or with environment variables:
export TELEGRAM_BOT_TOKEN="your_token"
export CODEX_WEB_PASSWORD="your_password"
codex-telegram
If you want to rebuild the web UI before launching the app, use:
./run_build_and_main.sh
Or:
make run
4. Open Web UI
http://127.0.0.1:8080
Developing from Source
git clone https://github.com/heungtae/codex-telegram.git
cd codex-telegram
pip install -e .
cd web/frontend && npm install && npm run build && cd ../..
cp conf.toml.example ~/.config/codex-telegram/conf.toml
# Edit config, then run:
./run_build_and_main.sh
Publishing a Release
- Update
codex_telegram/__init__.py(__version__), validate the changes, and push the commits. - In GitHub Releases, create a draft with a matching tag (for example,
v0.6.0for version0.6.0) targeting the intended commit. The commit must contain.github/workflows/pypi-publish.ymlwith the release trigger. - Write the release notes and publish the Release. Drafts and tag pushes alone do not deploy.
- Wait for Publish release to PyPI to succeed: it builds the Web UI, builds/checks the wheel and sdist (including UI assets), publishes to PyPI, then attaches the same distributions and
SHA256SUMSto the Release.
Configure PYPI_API_TOKEN as a repository secret or a secret on the pypi environment before publishing. Existing environment protection rules still apply; remove required reviewers from that environment if fully automatic publishing is desired. Published prereleases also trigger this workflow, so use a matching Python prerelease version such as 0.6.1rc1 / v0.6.1rc1.
A published GitHub Release alone does not mean PyPI deployment succeeded; check the workflow result. If attachment fails after PyPI publishing succeeds, rerun only failed jobs to attach the retained files without republishing. For code changes after a successful PyPI upload, use a new version and Release.
Documentation
| File | Description |
|---|---|
| TELEGRAM.md | Telegram bot commands, real-time updates, approval workflow |
| WEB.md | Web UI features, API endpoints, workspace browser |
| conf.toml.example | Full configuration reference |
Security
- Keep
users.allowed_idspopulated with trusted Telegram user IDs only - Use environment variables for tokens:
TELEGRAM_BOT_TOKEN,CODEX_WEB_PASSWORD - Run one polling instance per bot token to avoid conflicts
- Set
cookie_secure = truewhen using HTTPS
License
Apache License 2.0. See LICENSE for details.
Metadata
Release files for codex-telegram 0.6.1
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 |
|---|---|---|---|---|
| codex_telegram-0.6.1.tar.gz | 330.7 kB | Without provenance | Details for codex_telegram-0.6.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| codex_telegram-0.6.1-py3-none-any.whl | Python 3 | none | any | Details for codex_telegram-0.6.1-py3-none-any.whl |
Total release size: 636.5 kB
Release files / codex_telegram-0.6.1.tar.gz
| Download URL | codex_telegram-0.6.1.tar.gz |
|---|---|
| Size | 330.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71ff0c804cb315343228e57e4b64247de9610ec8bd5dba0043de74464b043cf5
|
|
BLAKE2b-256 checksum How to use checksums |
cedeed030787ab65d27a072541aae213e0a869efc0b2a2ea1f0e8c9e16feda72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / codex_telegram-0.6.1-py3-none-any.whl
| Download URL | codex_telegram-0.6.1-py3-none-any.whl |
|---|---|
| Size | 305.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7427e723e59ef8ee98418b022877cc2ca8a300ef1b4606160697cc2d925587f1
|
|
BLAKE2b-256 checksum How to use checksums |
f7842f7249870df7cd4f0717f0731b74721bea5eb4d89ed29b196b80b6c001bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for codex-telegram 0.6.1
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.