3.0 KiB
3.0 KiB
codex-retry-gateway-tui
Terminal UI for codex-retry-gateway.
Quick Start
Run once from a public git repo with uvx:
uvx --from git+https://gitea.shujk.top/shujakuin/codex-retry-gateway-tui.git codex-retry-gateway-tui
Install as a user command:
uv tool install git+https://gitea.shujk.top/shujakuin/codex-retry-gateway-tui.git
codex-retry-gateway-tui
Install as a user command with Pixi global from the published Gitea repo:
pixi global install \
--git https://gitea.shujk.top/shujakuin/codex-retry-gateway-tui.git \
--expose codex-retry-gateway-tui \
--expose codex-gateway-tui \
codex-retry-gateway-tui
Default behavior:
1. reuse saved ~/.config/codex-retry-gateway-tui/api-url when present
2. otherwise auto-discover ~/.codex-retry-gateway/state.json gateway_base_url
3. otherwise fall back to ~/.codex-retry-gateway/config/config.json listen_host/listen_port
4. otherwise use http://127.0.0.1:4610/__codex_retry_gateway
Manual override example:
codex-retry-gateway-tui --api-url http://100.115.235.115:4610
Configuration:
--api-url/CODEX_RETRY_GATEWAY_TUI_API_URL--status-url/CODEX_RETRY_GATEWAY_TUI_STATUS_URL--save-config--install--refresh-seconds/CODEX_RETRY_GATEWAY_TUI_REFRESH_SECONDS--timeout/CODEX_RETRY_GATEWAY_TUI_TIMEOUT- request-table preferences auto-save to
~/.config/codex-retry-gateway-tui/request-table.json
Environment variables:
CODEX_RETRY_GATEWAY_TUI_API_URLCODEX_RETRY_GATEWAY_TUI_API_URL_FILECODEX_RETRY_GATEWAY_TUI_STATUS_URLCODEX_RETRY_GATEWAY_TUI_STATUS_URL_FILECODEX_RETRY_GATEWAY_TUI_VERSION_CHECK_URLCODEX_RETRY_GATEWAY_TUI_VERSION_CHECK_TIMEOUTCODEX_RETRY_GATEWAY_TUI_NO_VERSION_CHECK
Local Development
cd apps/codex-retry-gateway-tui
uv run codex-retry-gateway-tui
Views:
- overview: current gateway status and summary counts
- requests: recent requests, response/request/thread IDs, timing, effort, reasoning tokens, usage, current retry round like
3(2), retry note, andusage_last_updated_at - logs: recent gateway logs
- profiles: saved profiles, active profile default selection, profile actions
Controls:
1overview2requests3logs4profiles,/.select request-table column for visibility/sort actionsvtoggle the selected requests column visible/hiddencsort requests by the selected columnCtoggle requests sort ascending/descendingeedit selected profile in$VISUAL/$EDITOR/filterrrefreshmswitch request table compact/wide width profile[/]narrow or widen the requests usage columnpprobe selected profilesswitch to selected profilewsave selected profile snapshotddelete selected inactive profileuopen selected profile upstream URL
This client uses only the public gateway admin API and does not need SSH or secrets.
Profile editing uses a temp TOML draft opened in $VISUAL or $EDITOR and then saves it back through the gateway profiles API.