lpai — AI-Powered CLI for IBM Power Linux | LibrePower
v0.5.0 Released · Linux ppc64le · 22 commands

lpai

AI-powered sysadmin toolkit
for IBM POWER Linux.

Classify logs, diagnose incidents, translate code, audit compliance, decode error messages — all locally on ppc64le. Your data never leaves the machine.

Built by SIXE · For LibrePower
admin@power10:~ — lpai classify
lpai classifying logs on Ubuntu ppc64le
Ubuntu 22 / 24
RHEL 8 / 9 / 10
Rocky 8 / 9
AlmaLinux 8 / 9
Fedora 39-42
CentOS Stream
AIX 7.1+
Why lpai

Senior admins are retiring.
The data is too sensitive for the cloud.

Your POWER systems generate thousands of log entries, error reports, and messages daily. Finding what matters requires expert knowledge that's increasingly scarce. lpai brings AI-powered analysis directly to your system — everything runs locally, zero data leaves the machine.

100% Local

Run on local vLLM, Ollama, or any OpenAI-compatible endpoint on your LAN. Air-gapped friendly. Critical for regulated industries on Power.

Zero Dependencies

Single binary. No Python, no Java, no containers. Native ppc64le builds for every major Linux distribution and AIX. apt install lpai.

UNIX Native

Pipe anything in, get structured output. Works the way sysadmins already work — journalctl | lpai diagnose.

22 Commands. One Binary.

Everything sysadmins
actually need.

classifyc

Classify log entries by severity — CRITICAL, WARNING, INFO. Pipes through journalctl, syslog, anything.

filterf

Filter logs to show only actionable entries. Cut through the noise.

diagnosed

Root cause analysis with concrete remediation commands. From symptom to fix.

decodedc

Decode SRC/FRU codes, CPF messages, errno values. Knows POWER and IBM i error catalogs.

explainx

Explain ANY system output — auto-detects 39+ command types and tells you what it means.

watchw

Monitor logs continuously and alert on critical events. tail -f | lpai watch.

routert

Classify and route alerts to teams via webhooks. Slack, PagerDuty, anything.

reportrp

Generate formatted reports from raw data. Ready for the morning standup.

auditaud

Security audit with PCI, CIS, NIST, SOC2 and COBIT compliance frameworks built in.

maskm

Detect and mask PII / sensitive data before sharing. Regex post-pass catches misses.

assessas

Risk assessment of changes — git diffs, config files, anything. Know before you ship.

translatet

Translate between 40 code, SQL and config formats. RPG IV → Python, COBOL → Java, and more.

testgentg

Generate test cases from existing code. Coverage without the chore.

refactorrf

Suggest code improvements with before / after diffs. Modernize legacy code in place.

documentdoc

Generate structured documentation from code. README files that don't lie.

aska

Free-form questions with RAG-enhanced context. Cites sources from your indexed runbooks.

indexidx

Index documents for RAG-enhanced ask. Hybrid keyword + vector search. Incremental.

summarizesum

Map-reduce summarization of long documents. Incident reports in seconds.

evalev

Evaluate RAG retrieval quality. Know if your index is actually working.

optimizeo

Performance analysis and tuning recommendations. Targeted at your actual workload.

serves

HTTP API server with 22 REST endpoints. Run as a systemd daemon, query from anywhere.

version-v

Print version and platform info. Quick sanity check.

40 Translation Pairs

From RPG IV to Python.
And 39 other paths.

Modernize decades of POWER and IBM i code. Translate languages, SQL dialects, and config formats — preserving logic, not just syntax.

admin@power10:~ — lpai translate --from rpg --to python
lpai translating RPG IV to Python
RPG IV → Python · One of 40 translation pairs. lpai preserves business logic, types, and structure — not just syntax. Ideal for modernizing decades of IBM i and POWER code.
RPG IV Python
COBOL Java
CL Bash
DDS SQL DDL
DB2 PostgreSQL
DB2 MariaDB
Oracle SQL PostgreSQL
CL Python
RPG IV Java
JCL Bash
REXX Python
SMIT Ansible
cron systemd
Apache Caddy
Nginx Caddy
Bash Python
XML YAML
CSV JSON
+22 more
See it in action

Real demos.
Real POWER systems.

Every demo recorded on actual ppc64le and AIX hardware.

admin@power10:~ — lpai audit --framework cis
Security audit with CIS compliance
lpai audit --framework cis · Security audit against CIS Benchmark on Linux ppc64le. PCI, NIST, SOC 2 and COBIT also supported. Findings come with remediation commands and control IDs.
Oracle error explanation
lpai explain · Auto-detects 39+ output types. Here it explains an Oracle error in plain English with cause and fix — no need to know which manual to grep.
Error code decoding
lpai decode · Decode SRC / FRU codes, CPF messages, errno values. Knows the POWER and IBM i error catalogs by heart — no more grepping through PDFs.
AIX errpt analysis
errpt | lpai diagnose · Native AIX binary. Pipes errpt straight in and gets back classified incidents with root cause and remediation. Same tool, same syntax, native ppc64.
IBM i PASE integration
lpai on IBM i PASE · Runs in PASE on IBM i. Decode CPF messages, classify QSYSOPR entries, generate reports — your senior IBM i admin's expertise on tap.
40 translation pairs list
lpai translate --list · The full menu — 40 source/target combinations across legacy and modern languages, SQL dialects, and config formats.
Compliance Built In

Five frameworks.
One lpai audit command.

Run security audits against the standards your organization actually has to answer to. Generates findings with remediation, mapped to control IDs.

PCI DSS

Cardholder data protection

CIS

Hardening benchmarks

NIST

800-53 control families

SOC 2

Trust services criteria

COBIT

IT governance framework

Bring Your Own LLM

Local-first.
Cloud-optional.

Works with any OpenAI-compatible or Anthropic-compatible API. Run private inference on your own POWER hardware, or use a hosted provider when latency matters more than locality.

Private

Recommended
vLLM (local)Native ppc64le, on-machine
vLLM (LAN)Shared inference server
OllamaSingle-user dev setup

Data never leaves your machine or LAN. Air-gapped deployments fully supported. Recommended for regulated workloads.

Hosted

API key required
OpenAIGPT-4o, GPT-4o-mini
AnthropicClaude family
GroqLow-latency inference
DeepSeekCost-efficient option

Set LPAI_ENDPOINT and LPAI_API_KEY. Data is sent to the provider — review your compliance posture first.

Install in seconds

One command. Any distro.

# Add LibrePower repository (one time) curl -fsSL https://linux.librepower.org/install.sh | sudo sh # Install lpai sudo apt update sudo apt install lpai
# Add LibrePower repository (one time) curl -fsSL https://linux.librepower.org/install.sh | sudo sh # Install lpai sudo dnf install lpai
# Add LibrePower repository (one time) curl -fsSL https://linux.librepower.org/install.sh | sudo sh # Install lpai sudo dnf install lpai
# Single binary, any Linux ppc64le curl -fsSL https://linux.librepower.org/bin/lpai-0.5.0-ppc64le \ -o /usr/local/bin/lpai chmod +x /usr/local/bin/lpai

RPM and DEB packages include a systemd service.

Run sudo systemctl enable --now lpai to start the daemon. Then query any of the 22 REST endpoints from your applications.

Need a hand deploying lpai at scale?

SIXE can help you stand up vLLM on Power, integrate lpai into your runbooks, or train your team.

Contact us here

Ship it
on POWER.

Subscribe for releases, deep-dives, and POWER community news.