Download the PHP package ineersa/symfony-ai-openai-codex-platform without Composer
On this page you can find all versions of the php package ineersa/symfony-ai-openai-codex-platform. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ineersa/symfony-ai-openai-codex-platform
More information about ineersa/symfony-ai-openai-codex-platform
Files in ineersa/symfony-ai-openai-codex-platform
Package symfony-ai-openai-codex-platform
Short Description OpenAI Codex bridge with OAuth login for Symfony AI.
License MIT
Informations about the package symfony-ai-openai-codex-platform
OpenAI Codex for Symfony AI
Connect Symfony AI to Codex with your ChatGPT account. Browser login, token refresh, and WebSocket streaming are included.
The websocket-cached transport reuses WebSocket connections between turns. GPT-5.6 and newer Codex models require WebSocket and no longer support SSE.
Requires PHP 8.5+ and a ChatGPT account with Codex access.
Install the package
Log in and send a message
Here's a small CLI example, codex.php. It saves your login in var/codex/auth.json so you don't need to log in for every request. Add that file to .gitignore.
Run the two commands:
Log in once in your browser, then run ask to stream a reply over WebSocket. The example refreshes expired credentials before sending a request.
Login options
| Option | Default | What it does |
|---|---|---|
--port |
1455 |
Port for the local OAuth callback listener |
--timeout |
300 |
Seconds to wait for the browser callback |
--no-browser |
Off | Print the login URL without opening a browser |
--refresh |
Off | Refresh saved credentials instead of starting a new login |
For example, choose another callback port and open the login URL yourself:
To refresh an existing login:
Use php codex.php auth:codex --help for help, including standard Symfony Console options.
For an existing application, see API reference.
Develop
Run composer install, then castor test, castor phpstan, and castor cs-check.
MIT license.
All versions of symfony-ai-openai-codex-platform with dependencies
ext-mbstring Version *
amphp/amp Version ^3.1
amphp/http Version ^2.1
amphp/websocket-client Version ^2.0
league/oauth2-client Version ^2.8
psr/log Version ^3.0
symfony/ai-platform Version ^0.12 || ^0.13 || ^0.14
symfony/ai-open-responses-platform Version ^0.12 || ^0.13 || ^0.14
symfony/clock Version ^8.0
symfony/console Version ^8.1
symfony/filesystem Version ^8.0
symfony/http-client Version ^8.0
symfony/http-client-contracts Version ^3.0
symfony/event-dispatcher-contracts Version ^3.0
symfony/lock Version ^8.0
symfony/process Version ^8.0
symfony/serializer Version ^8.0
symfony/uid Version ^8.0