Skip to content

LocalAI

Quick Reference

Category: InferenceEngine  |  OS: Windows, Linux, macOS  |  Privileges: user  |  Free: Yes

LocalAI is a free, open-source, self-hosted alternative to OpenAI's API. It provides a drop-in compatible REST API for text generation, image generation, speech-to-text, and embeddings, running models locally. It ships as a single binary or Docker image, supports GGUF and other formats, and is designed to be a covert OpenAI replacement — any tool or script pointing at api.openai.com can be redirected to LocalAI without code changes. This makes it particularly attractive for bypassing corporate LLM usage controls that monitor OpenAI API calls.


Details

Field Value
Website https://localai.io
License MIT

Capabilities: LocalInference, APIServer, ModelDownload, GPUAcceleration


Disk Artifacts

Path OS Type Phase Trust Description
/usr/local/bin/local-ai Linux Binary Install — LocalAI single binary (Linux)
*/localai/models/ Any Cache Install — Model configuration and GGUF weight files (relative to config directory)
*/localai/*.yaml Any Config Activation — Model configuration YAML files specifying model parameters and backends

Model Storage

*/localai/models/*.gguf (Any) — GGUF model weight files (Install)

Format Magic Bytes (hex) Offset
GGUF 47 47 55 46 0

Process Artifacts

local-ai (Use)

LocalAI server binary

Expected parent: bash

CLI Pattern Phase Trust Description
local-ai\s+run Activation — Starting LocalAI server
local-ai.*--address\s+0\.0\.0\.0 Abuse — LocalAI exposed on all interfaces

Network Artifacts

Description Protocol Ports Bind Address Domains Phase Trust
OpenAI-compatible REST API (drop-in replacement) TCP 8080 0.0.0.0 — Use —

Persistence Mechanisms

OS Type Path Phase Trust Description
Linux Service /etc/systemd/system/localai.service Activation — Systemd unit for persistent LocalAI deployment

Windows Event Log

Event ID Provider Log File Phase Trust Description
4688 Microsoft-Security-Auditing Security.evtx Use — Process creation for local-ai binary

References

  • https://localai.io

  • https://github.com/mudler/LocalAI