Codex CLI is OpenAI's cross-platform software agent that uses an "agent loop" to orchestrate interactions between users, AI models, and tools. The agent takes user input, queries the model through inference, executes tool calls when needed, and repeats until producing a final response, enabling automated software development tasks.