Dev.to
5/10/2026

Developer builds custom Codex bot
Original: I built a custom Codex-powered code review bot for GitLab
Short summary
A developer built a custom code review bot for GitLab using OpenAI's Codex SDK to avoid GitLab Duo's $0.20/review cost. The solution runs as a self-hosted service on OpenShift with threaded conversation support, using Fastify for webhooks, BullMQ for queuing, and careful security isolation. Key challenges included implementing concurrency control and working around Kubernetes security constraints.
- •Custom Codex bot reduces per-review cost by switching from GitLab Duo pay-per-token to ChatGPT subscription
- •Self-hosted architecture on OpenShift enables threaded conversations, deterministic job IDs, and conversation resumption
- •Security isolation: database stores only IDs, Codex sessions persist on PVC, full diffs never land in storage
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



