GPT-5 Codex CLI
A lightweight terminal client that mirrors the experience of products like OpenAI's Codex CLI, Claude Code, and Gemini Code. The tool focuses on high-level task execution (not just code generation) by defaulting to the gpt-5-codex model with both streaming output and the web search tool enabled.
Features
- Autodetects
OPENAI_API_KEYand guides you to create one if it is missing. - Streaming responses that closely resemble established AI coding assistants.
- Web search tool enabled by default so the model can pull in fresh information as needed.
- Clean interactive loop for multi-turn task planning and execution, plus one-shot mode via CLI arguments.
Installation
pip install -e .
This project depends on the official OpenAI Python SDK. Install it automatically through the editable install above or explicitly with pip install openai.
Usage
Interactive session:
export OPENAI_API_KEY="sk-..."
gpt5-codex
Single task run:
gpt5-codex "Plan a two-day itinerary for Tokyo that balances food, art, and tech"
Optional flags:
--model MODEL_NAME– override the defaultgpt-5-codexmodel.--temperature FLOAT– tune the generation temperature (default0.2).--no-search– disable the built-in web search tool.--no-stream– disable streaming output.
Testing
pip install -e .[dev]
pytest
Publishing to PyPI
The repository includes a standard pyproject.toml. To publish:
python -m build
python -m twine upload dist/*
Note: Uploading requires a PyPI account and network access, which may not be available in every environment.
Metadata
Release files for gpt5-codex-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gpt5_codex_cli-0.1.0.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gpt5_codex_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.1 kB
Release files / gpt5_codex_cli-0.1.0.tar.gz
| Download URL | gpt5_codex_cli-0.1.0.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cbefdfae02420ea789a3746d2b87f5c1df07b9d0bfc15fb1d395e08340c04625
|
|
BLAKE2b-256 checksum How to use checksums |
2afbd735782562cd0b2da0c6011aa8705e9efee1b0cdee33069c25b4b6cbf118
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Release files / gpt5_codex_cli-0.1.0-py3-none-any.whl
| Download URL | gpt5_codex_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3205b53c1b66c43e917a1dd2611343f4970fa6973a55c8e958f80667a7fdf483
|
|
BLAKE2b-256 checksum How to use checksums |
ee1916cfee5442c75292a6f143da906ebf24dd873dc8e647007c4e71f66c9736
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|