Skip to main content

InferiaLLM: distributed inference, filtration, and compute orchestration platform

Project description

InferiaLLM

The Operating System for LLMs in Production

LicensePythonStatusPRs Welcome

InferiaLLM acts as the authoritative execution layer between your applications and your AI infrastructure. It governs how LLMs are accessed, secured, routed, and run on compute.


Installation

pip install inferiallm

Quick Start

InferiaLLM requires a .env file in your current working directory to configure connections to PostgreSQL and Redis.

# 1. Initialize your environment
# Create a .env file with your DATABASE_URL and Redis settings
cp .env.sample .env

# 2. Bootstrap the platform
# This creates the database, roles, and applying schemas
inferiallm init

# 3. Launch all services
# Starts Orchestration, Inference, and Filtration gateways in a single process
inferiallm start

Configuration

The CLI manages configuration through environment variables. The most critical settings are:

1. Database & Security

Variable Description Default
DATABASE_URL Primary database connection string postgresql://inferia:inferia@localhost:5432/inferia
PG_ADMIN_USER Postgres admin user (required for init) postgres
PG_ADMIN_PASSWORD Postgres admin password (required for init) -
JWT_SECRET_KEY Secret for signing access tokens -
INTERNAL_API_KEY Secret for service-to-service auth -
SECRET_ENCRYPTION_KEY 32-byte base64 key for encrypting credentials -

CLI Reference

inferiallm init

Bootstraps the unified database environment. Output:

[inferia:init] Connecting as admin to bootstrap inferia
[inferia:init] Creating role: inferia
[inferia:init] Creating database: inferia
[inferia:init] Applying schema: global_schema
[inferia:init] Bootstrap complete

inferiallm start

Starts all InferiaLLM gateways (Orchestration, Inference, Filtration) and the Dashboard in one command.

You can also start specific services:

  • inferiallm start orchestration: Starts the Orchestration Gateway stack.
  • inferiallm start inference: Starts the Inference Gateway standalone.
  • inferiallm start filtration: Starts the Filtration Gateway standalone.

Package Structure

The inferia package is a monorepo-style library that contains all backend services:

package/src/inferia/
├── cli.py                  # Entry point for the CLI
├── gateways/
│   ├── filtration_gateway  # Security & Policy Service (Port 8000)
│   ├── inference_gateway   # Inference Proxy Service (Port 8001)
│   └── orchestration_gateway # Compute Control Plane (Port 8080)
└── services/               # Shared business logic
    ├── filtration/         # Guardrails, RBAC, Audit logic
    └── orchestration/      # Compute Adapters, Scheduling logic

Core Capabilities

  • Unified Control Plane: Orchestrate LLMs across heterogeneous compute (K8s, DePIN, VPS).
  • Policy Enforcement: Centralized RBAC, safety guardrails, and budget controls.
  • Execution Boundary: Authority-based routing between applications and infrastructure.

For full documentation, architecture diagrams, and deployment guides, visit the main repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inferiallm-1.0.8.tar.gz (437.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inferiallm-1.0.8-py3-none-any.whl (551.6 kB view details)

Uploaded Python 3

File details

Details for the file inferiallm-1.0.8.tar.gz.

File metadata

  • Download URL: inferiallm-1.0.8.tar.gz
  • Upload date:
  • Size: 437.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for inferiallm-1.0.8.tar.gz
Algorithm Hash digest
SHA256 ef87709d6f4d98802b2520a5f7659794acfcd9e414bdb3c6f6df86b26a1bfb36
MD5 5d120c4c0fd1b703be3b7cea3a81888f
BLAKE2b-256 1d1c82185fb5092b9876d4e925c2ca5340945cdd5f2c3f4f05a578d085ffb679

See more details on using hashes here.

File details

Details for the file inferiallm-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: inferiallm-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 551.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for inferiallm-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 cfddb2c19d68a08bb888828202b95af8bcb75f8111040f9187e0c520779ee479
MD5 bcb7d002e1e89a77088981c5e69926d8
BLAKE2b-256 6d051edce57d379338c1621d13c73ce95061524b0c8eb22a8201a4ec13ea2d6b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page