Download the PHP package jordandalton/tackle-grok without Composer

On this page you can find all versions of the php package jordandalton/tackle-grok. 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-grok

Tackle Grok

A Grok (xAI) provider for Laravel Tackle — run your in-app AI coding agent on Grok models.

📚 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 xAI's Grok models.

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

Two ways to authenticate

Mode What it does Status
api-key Uses an xAI API key from console.x.ai against the public api.x.ai endpoint. Recommended — xAI's documented path for CI/CD, automation, and custom apps.
subscription Uses the session token from the Grok CLI's sign-in against the CLI backend, on your grok.com plan. Best-effort — see the honest caveat.

GROK_AUTH selects the mode (auto by default: subscription when a Grok CLI sign-in exists, otherwise api-key). If you want the recommended path unconditionally, set GROK_AUTH=api-key.

Installation

The easiest path from a Tackle app:

Or via Composer directly:

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

API-key mode (recommended)

Get a key from console.x.ai and set it:

This is the stock, documented xAI integration path — the same api.x.ai endpoint and API-key auth xAI publishes for building custom apps. Billing is metered per token, so pin rates in config/tackle.php under pricing.models to keep budget enforcement meaningful.

Subscription mode: the honest version

Subscription mode runs the agents on your grok.com plan by reusing the Grok CLI's sign-in — the same ~/.grok/auth.json session token, sent to the CLI backend (cli-chat-proxy.grok.com).

What you should know before using it:

If your usage matters, prefer api-key mode, or confirm subscription-backend use with xAI developer support first.

Configuration

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

Variable Default Description
GROK_AUTH auto auto | subscription | api-key
XAI_API_KEY / GROK_API_KEY — Key for api-key mode
GROK_API_BASE_URL https://api.x.ai/v1 Endpoint for api-key mode
GROK_AUTH_FILE ~/.grok/auth.json Grok CLI auth file (subscription mode)
GROK_BASE_URL CLI backend Endpoint for subscription mode
GROK_MODEL grok-4.6 Default model in subscription mode
GROK_CLIENT_VERSION 1.0.3 Client-version header the CLI backend requires

Tackle integration

When subscription mode is active and grok is the active provider, the CLI backend's models are registered in Tackle's pricing catalog at $0/MTok — the budget tracker stays accurate because your plan covers usage. The zero rates apply only when this provider is active, so an api-key setup keeps real rates. A leftover claude-*/gpt-* model default from another provider is swapped for the Grok default automatically.

How it works

laravel/ai's xAI gateway already speaks the Responses API. This package extends it with a GrokProvider that:

Development

License

MIT


All versions of tackle-grok 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-grok contains the following files

Loading the files please wait ...