Skip to content

i-pp/laf

v0.1.0

Local AI Fabric integrated Codex/orchestration and owner-scoped Router tools. Experimental integrated source; existing owner-host setup required.

Local AI Fabric

Your hardware. Your models. Your AI.

Local AI Fabric (LAF) is an independent project developed by I-plusplus Inc. It is not an OpenAI product. References to third-party products describe interoperability; they do not imply affiliation or endorsement.

Ask a configured local model to summarize a short passage you provide. Use Codex CLI on the same host over standard input/output (stdio), or use ChatGPT or Codex in a supported private workspace where an operator has configured the LAF app through OpenAI's Secure MCP Tunnel. A regular ChatGPT session cannot connect directly to a localhost MCP server. Submit the job through LAF, check its status, and retrieve the summary.

ChatGPT and Codex are third-party OpenAI products. They act as clients for LAF and are not replaced by it. The LAF Router sends jobs submitted through LAF to a local engine running a configured third-party model. Obtain model weights separately from LAF.

Goal and current scope

LAF aims to make local models usable through a common job interface while operators choose their engine and manage model storage. The experimental 0.0.1 source preview exposes the configured model catalog and Router job tools through MCP. Its documented CPU-only path uses the third-party inference engine Ollama with one pinned model.

Architecture

The local CLI and private workspace paths converge at the LAF MCP server.

flowchart LR
    Local["Local Codex"] -->|stdio| MCP["LAF MCP server"]
    Workspace["ChatGPT and Codex in a private workspace"] --> App["Private App"]
    App --> Tunnel["Secure MCP Tunnel"]
    Tunnel --> MCP
    MCP --> Router["LAF Router"]
    Router --> Engine["Configured local inference engine"]
    Engine --> Model["Third-party model running locally"]

Hardware and model examples

The table gives planning examples for host CPU and installed memory.

PathCPUSystem DRAMDedicated GPU VRAMModel and Ollama download
CPU-only with local Dockerx86-64, about 4 host cores16 GiB installedNone neededSmolLM2-135M-Instruct, Q4_K_M (105 MB)
AMD GPU candidates (untested)x86-64, about 4 host coresSize for the model and engine8-16 GB nominalQwen2.5-Coder-1.5B-Instruct, Q4_K_M (986 MB)Qwen2.5-Coder-7B-Instruct, Q4_K_M (4.7 GB)

The listed sizes are downloads. Shared graphics memory draws from system DRAM.

Startup checks

  • In the CPU-only Docker example, Ollama is limited to 1 CPU and 1 GiB of RAM. At cold start, available host RAM must cover the 1 GiB limit plus an 8 GiB reserve.
  • The existing GPU path checks for at least 8 GiB of available system DRAM and 2 GiB of free VRAM. For the untested GPU candidates, verify device and driver compatibility and measure headroom during model load and generation.

Getting Started

  1. Model. Choose a model and prepare persistent storage.
  2. Router and runtime. Configure and start the Router. Use the host prerequisites below to prepare a private runtime.
  3. Client connection. Choose the local Codex or private workspace path in Installation.
  4. First check. In the connected client, use laf_router_status and look for ready.

Installation

Use Linux with Python 3.12 or later and install MCP SDK 1.30.0. The SDK installer supports CPython 3.12 and 3.14 on Linux x86-64.

Documentation

License and contributions

LAF's source is public. The first-party source uses the KISS Open License v1.0, which permits use, modification, and redistribution, including commercial use, subject to its terms. Third-party models and engine artifacts have their own terms. Third-party product names and marks belong to their respective owners.

Anyone can open an issue or submit a pull request. See the contribution rules.