Skip to main content

Task-oriented GPT-5 Codex command line interface with streaming and web search

Project description

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_KEY and 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 default gpt-5-codex model.
  • --temperature FLOAT – tune the generation temperature (default 0.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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gpt5_codex_cli-0.1.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gpt5_codex_cli-0.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file gpt5_codex_cli-0.1.0.tar.gz.

File metadata

  • Download URL: gpt5_codex_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for gpt5_codex_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cbefdfae02420ea789a3746d2b87f5c1df07b9d0bfc15fb1d395e08340c04625
MD5 b4704fc2f2cacc8fac5a9b14c3483eb2
BLAKE2b-256 2afbd735782562cd0b2da0c6011aa8705e9efee1b0cdee33069c25b4b6cbf118

See more details on using hashes here.

File details

Details for the file gpt5_codex_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gpt5_codex_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for gpt5_codex_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3205b53c1b66c43e917a1dd2611343f4970fa6973a55c8e958f80667a7fdf483
MD5 c8129e643c33faf9f0bde27b64d9c228
BLAKE2b-256 ee1916cfee5442c75292a6f143da906ebf24dd873dc8e647007c4e71f66c9736

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page