Initial codex telegram bot source

This commit is contained in:
Codex
2026-05-21 08:40:16 +00:00
commit ad61f7eeed
275 changed files with 101972 additions and 0 deletions

18
.env.example Normal file
View File

@@ -0,0 +1,18 @@
TELEGRAM_BOT_TOKEN=
# Use absolute host paths. The socket is mounted at the same path in the container.
HOST_CODEX_SOCKET=/absolute/path/to/codex-telegram-bot/run/codex.sock
HOST_CODEX_RUN_DIR=/absolute/path/to/codex-telegram-bot/run
HOST_UPLOAD_DIR=/absolute/path/to/codex-telegram-bot/uploads
# Host-side SQLite directory mounted to /data in the container.
DB_DIR=./data
# Leave empty to use Codex defaults.
DEFAULT_MODEL=
DEFAULT_SANDBOX=workspace-write
POLL_TIMEOUT_SECONDS=30
# Container should usually match the host user so SQLite files remain writable.
BOT_UID=1001
BOT_GID=1001