{"id":48986775,"url":"https://github.com/stealthylabshq/codex-rpc","last_synced_at":"2026-05-10T12:28:09.700Z","repository":{"id":352206128,"uuid":"1214284018","full_name":"StealthyLabsHQ/codex-rpc","owner":"StealthyLabsHQ","description":"Discord Rich Presence for the OpenAI Codex ecosystem on Windows (CLI + desktop, model + effort)","archived":false,"fork":false,"pushed_at":"2026-04-25T23:14:52.000Z","size":160,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-26T01:18:07.222Z","etag":null,"topics":["chatgpt","codex","codex-cli","discord","discord-rpc","openai","rich-presence"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StealthyLabsHQ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-18T11:10:20.000Z","updated_at":"2026-04-25T23:14:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/StealthyLabsHQ/codex-rpc","commit_stats":null,"previous_names":["stealthylabshq/codex-rpc"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/StealthyLabsHQ/codex-rpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StealthyLabsHQ%2Fcodex-rpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StealthyLabsHQ%2Fcodex-rpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StealthyLabsHQ%2Fcodex-rpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StealthyLabsHQ%2Fcodex-rpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StealthyLabsHQ","download_url":"https://codeload.github.com/StealthyLabsHQ/codex-rpc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StealthyLabsHQ%2Fcodex-rpc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32292958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatgpt","codex","codex-cli","discord","discord-rpc","openai","rich-presence"],"created_at":"2026-04-18T13:04:39.506Z","updated_at":"2026-05-10T12:28:09.693Z","avatar_url":"https://github.com/StealthyLabsHQ.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/codex_logo.png\" width=\"140\" alt=\"Codex RPC logo\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eCodex RPC\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  Windows and macOS tray Discord Rich Presence for OpenAI Codex.\n  Detects Codex CLI and Codex desktop, shows model/effort, and lets you control\n  Discord activity from a local Tauri settings window.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#features\"\u003eFeatures\u003c/a\u003e |\n  \u003ca href=\"#install\"\u003eInstall\u003c/a\u003e |\n  \u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e |\n  \u003ca href=\"#development\"\u003eDevelopment\u003c/a\u003e |\n  \u003ca href=\"CHANGELOG.md\"\u003eChangelog\u003c/a\u003e\n\u003c/p\u003e\n\n## Features\n\n- Native Windows/macOS tray app built with Tauri and Rust.\n- Single process app: no `codex-rpc-daemon.exe` sidecar.\n- Native Windows process scan for `codex.exe`, no PowerShell polling.\n- macOS process scan for Codex CLI and Codex desktop.\n- Detects Codex CLI vs Codex desktop.\n- Discord RPC modes: Playing, Watching, Listening, Competing.\n- Discord buttons support in Watching mode.\n- Optional 5h and weekly usage display toggles.\n- Live autosave for settings.\n- Local preview of the Discord activity, including button preview.\n- Tray quick toggles for RPC mode and usage visibility.\n- Dark, System, and Light themes.\n- Resizable settings window.\n\n## Install\n\nDownload the latest release:\n\nhttps://github.com/StealthyLabsHQ/codex-rpc/releases/latest\n\nRecommended asset:\n\n- `Codex RPC_0.3.4_x64-setup.exe`\n- `Codex RPC_0.3.4_aarch64.dmg` or `Codex RPC_0.3.4_x64.dmg` on macOS\n\nPortable asset:\n\n- `codex-rich-presence.exe`\n- `codex-rich-presence-macos-arm64` or `codex-rich-presence-macos-x64`\n\nRun the app once. It starts in the system tray. Left-click the tray icon to open\nsettings, or right-click for quick toggles and Quit.\n\n## Usage\n\nThe settings window controls:\n\n- RPC mode: Playing, Watching, Listening, Competing.\n- Two optional Discord buttons. Buttons are sent only in Watching mode.\n- 5h usage visibility.\n- Weekly usage visibility.\n- Theme.\n\nThe tray menu controls:\n\n- Open settings.\n- Mode: Watching.\n- Mode: Playing.\n- Mode: Listening.\n- Mode: Competing.\n- Show 5h usage.\n- Show week usage.\n- Quit.\n\nSettings are saved under:\n\n```text\n%LOCALAPPDATA%\\codex-rich-presence\\rpc-buttons.json\n~/Library/Application Support/codex-rich-presence/rpc-buttons.json\n```\n\nThe live status file is:\n\n```text\n%LOCALAPPDATA%\\codex-rich-presence\\status.txt\n~/Library/Application Support/codex-rich-presence/status.txt\n```\n\n## Detection\n\nCodex CLI and Codex desktop can have similar process names, so Codex RPC does\nnot rely on process name alone.\n\nDetection uses:\n\n- executable path;\n- parent process name;\n- native Windows process creation time.\n\nCLI is detected when the path contains `node_modules/@openai/codex`, or when\nthe parent is a terminal/editor shell such as `cmd.exe`, `pwsh.exe`, `wt.exe`,\n`Code.exe`, `cursor.exe`, `zsh`, `bash`, Terminal, iTerm2, Warp, Alacritty,\nHyper, Tabby, or ConEmu.\n\nEverything else with a valid Codex executable path is treated as Codex desktop.\n\n## Codex Metadata\n\nCodex RPC reads local Codex files only:\n\n- `~\\.codex\\config.toml` for model and reasoning effort.\n- `~\\.codex\\sessions\\**\\rollout-*.jsonl` for repo name and usage snapshots.\n\nNo Codex data is sent anywhere except the Discord Rich Presence payload through\nthe local Discord IPC pipe.\n\n## Environment\n\nOptional overrides:\n\n| Variable | Default | Description |\n| --- | --- | --- |\n| `DISCORD_CLIENT_ID` | bundled app id | Override Discord Application ID. |\n| `SCAN_INTERVAL_MS` | `5000` | Codex process scan interval. Minimum `2000`. |\n| `IDLE_GRACE_MS` | `10000` | Keep last active state before clearing RPC. |\n\nSettings refresh every 500ms so UI changes apply quickly. Process scanning stays\nat 5s by default to avoid unnecessary polling.\n\n## Development\n\nRequirements:\n\n- Node.js 22+\n- Rust/Cargo via rustup\n- Windows: Visual Studio 2022 Build Tools with MSVC v143, Windows SDK, WebView2 Runtime\n- macOS: Xcode Command Line Tools\n\nInstall dependencies:\n\n```bash\nnpm install\n```\n\nRun checks:\n\n```bash\nnpm run build\nnpm test\ncd src-tauri\ncargo check\n```\n\nBuild Windows app:\n\n```bash\nnpm run tauri:build:windows\n```\n\nOutputs:\n\n```text\nbin\\codex-rich-presence.exe\nsrc-tauri\\target\\release\\bundle\\nsis\\Codex RPC_0.3.4_x64-setup.exe\n```\n\nBuild macOS app:\n\n```bash\nnpm run tauri:build:macos\n```\n\nOutputs:\n\n```text\nbin/codex-rich-presence-macos-arm64\nsrc-tauri/target/release/bundle/macos/Codex RPC.app\nsrc-tauri/target/release/bundle/dmg/Codex RPC_0.3.4_aarch64.dmg\n```\n\n## Security\n\n- Button URLs are limited to `http://` and `https://`.\n- Discord IPC frame size is capped.\n- RPC text fields are sanitized before they reach Discord.\n- Process scanning uses native Windows APIs instead of shelling out.\n- The app only reads local Codex config/session files and local Discord IPC.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstealthylabshq%2Fcodex-rpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstealthylabshq%2Fcodex-rpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstealthylabshq%2Fcodex-rpc/lists"}