Cargando contenido…
Discord Rich Presence for Codex CLI, Codex VS Code Extension, and Codex App.
Discord Rich Presence for Codex CLI, Codex VS Code Extension, and Codex App.
First-class pricing, model label, and ⚡ Fast mode visibility for both GPT-5.5 and GPT-5.5 Pro — official OpenAI rates applied the moment Codex switches models, no config touch required.
Local-first by design: the runtime reads your Codex session files on disk, talks to Discord over local IPC. Nothing is stored in the cloud.
Codex Discord Rich Presence reads local Codex session telemetry, detects the active Codex surface, renders a live terminal dashboard, and publishes a clean Discord presence with activity, model, Fast mode, reasoning effort, account plan, token usage, cost, context window, and quota visibility.
| Signal | Example | Notes |
|---|---|---|
| Surface | Codex App / Codex CLI | Auto-routed from session_meta.originator and session_meta.source |
| Activity | Reading session.rs | Derived from response items, tool calls, and commentary signals |
| Model | ⚡ GPT-5.5 (Extra High) | Fast mode adds the lightning prefix; reasoning effort adds the suffix |
| Plan | Pro ($200/month) | Auto-detected from telemetry or forced manually from the TUI/config |
| Live context | Ctx 64% left | Derived from active-turn usage and model context window |
| Limits | 5h 100% • 7d 100% | Tracks global account quota freshness and remaining percentages |
| Cost | $7.13 | Uses pricing aliases and overrides from local config |
turn_context telemetry, including Extra High..build/target and final artifacts under releases/<platform>/.Create or update your Discord Developer applications with the image keys used by the runtime:
codex-logoopenaicodex-appopenai./scripts/build-release.ps1
./scripts/build-release.sh
Or build directly with Cargo:
cargo build --release
codex-discord-presence
While the terminal UI is open:
P to open the full-screen account plan selector.1-7 to select:
Auto DetectFreeGoPlusProBusinessEnterpriseEnter to apply and save immediately.P or Esc to close without changing the current plan.q or Ctrl+C to quit the runtime.codex-discord-presence status
codex-discord-presence doctor
The runtime reads ~/.codex/.codex-global-state.json and checks:
electron-persisted-atom-state.default-service-tierIf the value is fast, the model is shown with a lightning prefix:
⚡ GPT-5.5
Reasoning effort is resolved from the active session in this order:
turn_context.payload.effortturn_context.payload.collaboration_mode.settings.reasoning_effortRendered examples:
GPT-5.5 (Low)
GPT-5.5 (High)
⚡ GPT-5.5 (Extra High)
Plan display supports both automatic detection and manual override.
Auto Detect uses session telemetry, in-memory cache, and persisted cache fallback.~/.codex/discord-presence-config.json.Unknown, lags behind, or you simply want Discord/TUI to reflect the plan you actually use.A typical compact presence state can look like:
⚡ GPT-5.5 (Extra High) | Pro ($200/month) • $7.13 • 31.5M tok • Ctx 64% left • 5h 100% • 7d 100%
| Active Surface | Discord App Profile | Client ID Field | Main Large Asset |
|---|---|---|---|
| Codex CLI / Codex VS Code Extension | Codex | discord_client_id | codex-logo |
| Codex App Desktop | Codex App | discord_client_id_desktop | codex-app |
Detection priority:
session_meta.originator contains desktopsession_meta.source contains desktop| Command | Purpose |
|---|---|
codex-discord-presence | Starts the runtime, TUI, and Discord IPC loop |
codex-discord-presence codex [args...] | Runs as a Codex passthrough wrapper while keeping presence active |
codex-discord-presence status | Prints health, active session state, limits source, model label, plan, Fast mode, and reasoning effort |
codex-discord-presence doctor | Runs diagnostics for session roots, config, Discord IDs, and command availability |
Config file location:
~/.codex/discord-presence-config.jsonEssential defaults:
| Key | Value |
|---|---|
schema_version | 8 |
discord_client_id | 1470480085453770854 |
discord_client_id_desktop | 1478395304624652345 |
display.large_image_key | codex-logo |
display.desktop_large_image_key | codex-app |
display.desktop_large_text | Codex App |
display.small_image_key | openai |
privacy.show_cost | true |
openai_plan.mode | auto |
openai_plan.tier | pro |
openai_plan.show_price | true |
poll_interval_seconds | 2 |
Example:
{
"schema_version": 8,
"discord_client_id": "1470480085453770854",
"discord_client_id_desktop": "1478395304624652345",
"poll_interval_seconds": 2,
"privacy": {
"show_cost": true
},
"openai_plan": {
"mode": "auto",
"tier": "pro",
"show_price": true
}
}
Plan and model display notes:
openai_plan.mode = "manual" makes openai_plan.tier the displayed account plan.openai_plan.mode = "auto" keeps telemetry and cache-based plan detection enabled.~/.codex/.codex-global-state.json.turn_context telemetry.Environment overrides:
CODEX_DISCORD_CLIENT_IDCODEX_DISCORD_CLIENT_ID_DESKTOPCODEX_PRESENCE_STALE_SECONDSCODEX_PRESENCE_POLL_SECONDSCODEX_PRESENCE_ACTIVE_STICKY_SECONDSCODEX_HOMEPublished binaries are available in GitHub Releases.
Local Cargo build cache is stored under .build/target and final release binaries are copied into releases/<platform>/.
Expected artifact layout:
releases/windows/codex-discord-rich-presence.exereleases/linux/codex-discord-rich-presencereleases/macos/codex-discord-rich-presencereleases/macos/codex-discord-rich-presence-x64releases/macos/codex-discord-rich-presence-arm64Windows executable icon source:
assets/branding/codex-app.pngOpenAI marks and logos are trademarks of OpenAI.
Follow official brand policy: https://openai.com/brand/
MIT (LICENSE)