reeln-plugin-openai
A reeln-cli plugin for OpenAI-powered LLM integration — livestream metadata, game thumbnails, playlist descriptions, and multi-language translation.
Features
- Livestream metadata — LLM-generated title and description for game livestreams
- Playlist metadata — creative playlist titles and descriptions
- Game image thumbnails — ESPN/NBC Sports broadcast-style thumbnails from team logos via OpenAI image generation
- Multi-language translation — batch or per-language translation with custom commentator personas
- Prompt templates — customizable
{{variable}}templates with override support
Install
pip install reeln-plugin-openai
Or for development:
git clone https://github.com/StreamnDad/reeln-plugin-openai
cd reeln-plugin-openai
make dev-install
Configuration
Add the plugin to your reeln config:
{
"plugins": {
"enabled": ["openai"],
"settings": {
"openai": {
"enabled": true,
"api_key_file": "~/.config/reeln/secrets/openai_api_key.txt",
"model": "gpt-4.1",
"playlist_enabled": true,
"game_image_enabled": true,
"game_image_output_dir": "~/Documents/game_images"
}
}
}
}
API Key
The plugin resolves the OpenAI API key in this order:
api_key_fileconfig — reads key from the specified file (recommended)OPENAI_API_KEYenvironment variable — fallback for dev/CI
Config Fields
| Field | Type | Default | Description |
|---|---|---|---|
enabled |
bool | false |
Enable OpenAI LLM integration |
api_key_file |
str | "" |
Path to file containing the OpenAI API key |
model |
str | "gpt-4.1" |
OpenAI model for text generation |
request_timeout_seconds |
float | 30.0 |
API request timeout |
prompt_overrides |
str (JSON) | "{}" |
Dict of prompt name to override file path |
prompt_context |
str (JSON) | "{}" |
Dict of prompt name to extra context lines |
translate_enabled |
bool | false |
Enable multi-language translation |
translate_languages |
str (JSON) | "{}" |
Dict of language code to name |
translate_per_language_prompts |
str (JSON) | "{}" |
Dict of language code to prompt name |
playlist_enabled |
bool | false |
Enable LLM-generated playlist metadata |
game_image_enabled |
bool | false |
Enable game image thumbnail generation |
game_image_model |
str | "gpt-5.2" |
Model for image generation orchestration |
game_image_renderer_model |
str | "gpt-image-1.5" |
Model for image rendering |
game_image_output_dir |
str | "" |
Directory to save generated game images |
Hooks
| Hook | What it does |
|---|---|
ON_GAME_INIT |
Generates livestream metadata, playlist metadata, game image thumbnail, and translations |
Shared Context
The plugin writes to context.shared for other plugins to consume:
context.shared["livestream_metadata"] # {"title": "...", "description": "...", "translations": {...}}
context.shared["playlist_metadata"] # {"title": "...", "description": "...", "translations": {...}}
context.shared["game_image"] # {"image_path": "/path/to/thumbnail.png"}
Development
make dev-install # uv venv + editable install with dev deps
make test # pytest with 100% coverage
make lint # ruff check
make format # ruff format
make check # lint + mypy + test
License
AGPL-3.0-only
Metadata
Release files for reeln-plugin-openai 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| reeln_plugin_openai-0.10.0.tar.gz | 97.2 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| reeln_plugin_openai-0.10.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 137.8 kB
Release files / reeln_plugin_openai-0.10.0.tar.gz
| Download URL | reeln_plugin_openai-0.10.0.tar.gz |
|---|---|
| Size | 97.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b69ba703421b57f7ba32c79e2293519eb95429f055fcc6e53b5b42058167ebc5
|
|
BLAKE2b-256 checksum How to use checksums |
779d57e4649536fbc1132a08018ddb864e52b5be6b18c0930b5da052fede421c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 21, 2026.
Transparency logRelease files / reeln_plugin_openai-0.10.0-py3-none-any.whl
| Download URL | reeln_plugin_openai-0.10.0-py3-none-any.whl |
|---|---|
| Size | 40.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f88f70b3af063060d5ebe0d08a7ca00ab3d9a13f0854d300b830fd5416894c85
|
|
BLAKE2b-256 checksum How to use checksums |
003d8dd0ebde34cbd0abb99c607f177fe746e00b3f8a7fa2293db6fb5cac68d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 21, 2026.
Transparency logSecurity for reeln-plugin-openai 0.10.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for reeln_plugin_openai-0.10.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.