Download the PHP package jordandalton/tackle-codex without Composer

On this page you can find all versions of the php package jordandalton/tackle-codex. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package tackle-codex

Tackle Codex

An OpenAI Codex provider for Laravel Tackle — run your in-app AI coding agent on Codex models, with your ChatGPT subscription or an API key.

📚 Full documentation: tackle.jordandalton.com

That's the whole switch. Every Tackle agent — ai:code, ai:run, ai:fix, ai:review, the self-healer — now runs on OpenAI's Codex models. If you're signed in to the Codex CLI, usage runs on your ChatGPT plan (recorded as $0 in Tackle's budget); otherwise it uses your OpenAI API key with metered billing.

This is a laravel/ai provider under the hood, so it also works in any laravel/ai app without Tackle.

Installation

The service provider registers a codex driver with laravel/ai automatically — no config/ai.php edits required (add a 'codex' => ['driver' => 'codex'] entry if you prefer it explicit).

Authentication

Two modes, resolved by CODEX_AUTH (default auto):

Mode What it does
chatgpt Uses the sign-in-with-ChatGPT tokens from the Codex CLI's auth.json. Requests go to the ChatGPT Codex backend and are covered by your ChatGPT plan — no per-token billing.
api-key Uses OPENAI_API_KEY (or CODEX_API_KEY) against the public OpenAI API, like the stock openai provider pointed at Codex models.
auto chatgpt when a usable auth file exists, otherwise api-key.

ChatGPT mode (subscription)

Log in once with the Codex CLI:

Tackle Codex reads (and refreshes) the same ~/.codex/auth.json the CLI uses, so one login serves both. Check what will happen before your first session:

Access tokens are refreshed automatically shortly before expiry and written back to the auth file. The auth file location honours $CODEX_HOME and can be overridden with CODEX_AUTH_FILE.

API-key mode

Configuration

Everything is env-tunable; publish the config for the full list:

Variable Default Description
CODEX_AUTH auto auto | chatgpt | api-key
CODEX_AUTH_FILE ~/.codex/auth.json Codex CLI auth file location
CODEX_API_KEY OPENAI_API_KEY Key for api-key mode
CODEX_MODEL gpt-5.6-terra Default model
CODEX_BASE_URL ChatGPT Codex backend Endpoint for chatgpt mode
CODEX_API_BASE_URL https://api.openai.com/v1 Endpoint for api-key mode

Pick the model per session as usual:

Tackle integration

When core Tackle is installed and chatgpt mode is active, the Codex models are registered in Tackle's pricing catalog at $0/MTok — the budget tracker stays accurate (your plan covers usage) and the /model picker knows the models. In api-key mode, pin real rates in config/tackle.php under pricing.models so budget enforcement stays meaningful.

Tackle's own AI_CODE_MODEL default is a Claude model; when the provider is codex and the configured model is a leftover claude-* default, it is swapped for the Codex default automatically — AI_CODE_PROVIDER=codex really is the only env var you need.

How it works

laravel/ai's OpenAI gateway already speaks the Responses API. This package extends it with a CodexProvider + CodexGateway pair that:

In api-key mode none of that applies — it is the stock OpenAI Responses flow with Codex model defaults.

Caveats, honestly stated

Development

License

MIT


All versions of tackle-codex with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
laravel/framework Version ^12.0 || ^13.0
laravel/ai Version >=0.10 <0.11
spatie/laravel-package-tools Version ^1.16
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jordandalton/tackle-codex contains the following files

Loading the files please wait ...