# Self-hosted alternatives to Codex CLI

> 2 self-hostable, open-source alternatives to Codex CLI, ranked by score.

- [Coddy Agent](https://selfhost.directory/project/coddy-agent)
- [bbarit-oss](https://selfhost.directory/project/bbarit-agent-oss)

## Head-to-head

- [Coddy Agent vs bbarit-oss](https://selfhost.directory/compare/bbarit-agent-oss-vs-coddy-agent)

## Also in AI Assistant

Not listed as Codex CLI alternatives, but from the same category:

- [hermes-agent](https://selfhost.directory/project/hermes-agent): Self-hosted open-source AI agent that learns from experience, creates skills, runs on Telegram, Discord, Slack, CLI — MIT licensed.
- [Zero](https://selfhost.directory/project/zero): Zero is a self-hosted, open-source terminal coding agent running locally with 25+ LLM providers, interactive TUI, and scriptable headless execution for CI.
- [Ogcode](https://selfhost.directory/project/ogcode): Self-hosted, open-source AI coding agent that maps codebases, recalls decisions across sessions, and runs locally with any model provider including Ollama.
- [profclaw](https://selfhost.directory/project/profclaw): Run AI agents on your hardware with this open-source engine. 35 model providers, 72 tools, 22 chat services. Three sizes from tiny to full-featured.
- [Agenvoy](https://selfhost.directory/project/agenvoy): Self-hosted AI agent running locally, auto-generates tools, shares via MCP with Claude Code and Codex, keeps data private.
- [GoGogot](https://selfhost.directory/project/gogogot): A self-hosted AI agent that runs on your server via Telegram, with 34 built-in tools for shell, web, memory, scheduling, and more. Open-source alternative to OpenClaw.

All 257 AI Assistant projects: https://selfhost.directory/ai-assistant

---
Source: https://selfhost.directory/alternative-to/codex-cli