PHPackages                             cryodrift/ai - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. cryodrift/ai

ActiveLibrary[API Development](/categories/api)

cryodrift/ai
============

Inference Api Client

0.1.7(4mo ago)00MITPHPPHP &gt;=8.4

Since Jan 30Pushed 4mo agoCompare

[ Source](https://github.com/cryodrift/ai)[ Packagist](https://packagist.org/packages/cryodrift/ai)[ RSS](/packages/cryodrift-ai/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (9)Used By (0)

NAME
====

[](#name)

ai - AI Inference API Client CLI

SYNOPSIS
========

[](#synopsis)

`php index.php -echo /ai` \[COMMAND\] \[OPTIONS\]

DESCRIPTION
===========

[](#description)

Dieses Modul bietet eine CLI-Schnittstelle zur Interaktion mit verschiedenen AI-Providern (OpenAI, Claude, Lokale Instanzen).

COMMANDS
========

[](#commands)

- **chat**: Interaktive oder dateibasierte Chat-Anfragen.
- **batch**: Erstellen und Verwalten von Batch-Jobs (für asynchrone Verarbeitung).
- **batches**: Statusabfrage oder Auflistung von Batch-Jobs.
- **models**: Verfügbare Modelle eines Providers auflisten.
- **files**: Hochgeladene Dateien verwalten (auflisten, lesen, löschen).
- **extract**: Informationen aus Nachrichten in Dateien extrahieren.

OPTIONS
=======

[](#options)

- `-help`: Zeigt immer die jeweilige Parameterhilfe an.
- `-model=NAME`: Name des zu verwendenden KI-Modells.
- `-provider=TYPE`: API-Provider (`oairesp` für OpenAI, `locresp` für Local, `cldresp` für Claude).
- `-content=FILE`: Pfad zu einer Eingabedatei (kann mehrfach angegeben werden).
- `-outfile=FILE`: Pfad, in den die Antwort geschrieben werden soll.
- `-send`: Schickt die Anfrage tatsächlich ab.
- `-id=ID`: Spezifische ID für Batches oder Dateien.
- `-status`: Zeigt den Status an (meist in Verbindung mit `batches`).
- `-stop`: Beendet den Vorgang nach dem Senden (bei Batches).
- `-read`: Liest den Inhalt einer Datei (bei `files`).
- `-msg=FILE`: Pfad zur Nachrichtendatei (bei `extract`).

EXAMPLES
========

[](#examples)

### resp Modus

[](#resp-modus)

Einfacher resp mit mehreren Quelldateien und Ausgabe in eine HTML-Datei:

```
php index.php -echo /ai resp -model="gpt-4o" -provider=oairesp -content="src/app/input.txt" -content="src/app/docs.md" -outfile="src/app/result.html" -send
```

resp über Pipe (Standard-Input):

```
echo "Übersetze dies ins Englische" | php index.php -echo /ai resp -model="gpt-4o" -provider=oairesp -content -outfile="result.txt" -send
```

### Batch Modus

[](#batch-modus)

Einen neuen Batch-Job starten:

```
php index.php -echo /ai batch -model="gpt-4o" -provider=oairesp -content="task.txt" -outfile="batch_result.html" -send
```

Status eines Batches abfragen:

```
php index.php -echo /ai batches -status -id=BATCH_ID_HERE
```

Liste aller Batches anzeigen:

```
php index.php -echo /ai batches
```

### Modell-Verwaltung

[](#modell-verwaltung)

Verfügbare Modelle eines Providers auflisten:

```
php index.php -echo /ai models -provider=locresp -send
```

### Datei-Operationen

[](#datei-operationen)

Hochgeladene Dateien auflisten:

```
php index.php -echo /ai files -provider="oairesp"
```

Inhalt einer remote Datei lesen und lokal speichern:

```
php index.php -echo /ai files -provider="oairesp" -read -id=file-ID_HERE -outfile="downloaded.html"
```

### Extraktion

[](#extraktion)

Extrahiert Informationen aus einer Chat-Message in eine HTML-Datei:

```
php index.php -echo /ai extract -msg=".cryodrift/data/ai/message_id.chat" -outfile="src/data/input.html"
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance74

Regular maintenance activity

Popularity0

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

8

Last Release

141d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/240886628?v=4)[cryodrift](/maintainers/cryodrift)[@cryodrift](https://github.com/cryodrift)

### Embed Badge

![Health badge](/badges/cryodrift-ai/health.svg)

```
[![Health](https://phpackages.com/badges/cryodrift-ai/health.svg)](https://phpackages.com/packages/cryodrift-ai)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
