Skip to content

About

A comprehensive and easy to use local LLM and StableDiffusions model downloader, loader, and server for Unix based kernels.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

ENGRAISERVER

Simplified Hosting for Local Inference Models

Linux macOS CUDA MLX Hugging Face Cloudflare

Make local LLMs easy to access. ENGRAISERVER runs your local AI models and connects them to chat or image generation apps, supporting OpenAI-compatible keys.

An average user shouldn't need to learn machine learning to run local LLMs. So installing and using ENGRAISERVER feels like using an app, not setting up a development environment.

Features

  1. Blistering Speed: A modified, tuned, and tested engine under the hood to ensure even your longest conversations feel snappy.
  2. For All Hardware: ENGRAISERVER supports Metal for Apple Silicon, CUDA for modern Nvidia GPUs, and Vulkan across all other processors.
  3. Model Browser: Download & browse exciting models directly in-app via the Hugging Face community search tool.
  4. Card Studio: Create character, group, scenario, and lorebook cards with images to be exported as SillyTavern CardV2-formatted JSON or PNG. See CARD-STUDIO.md.
  5. Ledger: Write down your own dated history once, and every model you route knows it, whichever chat client you use. See LEDGER.md.
  6. Remote Hosting: Oh, you're one of those who likes to go fancy, huh? Fine, ENGRAISERVER has you covered with setup guides for Tailscale (WireGuard) & Cloudflare Tunnels so you can deploy it to devices away from home.

Quickstart Guide

Note

A macOS and Linux desktop app is on the way to run the app without the Terminal. Until then, ENGRAISERVER has kept Terminal commands as straightforward and no-nonsense as possible so anyone can run it with ease.

Download ENGRAISERVER's latest release directly from GitHub by pasting this into your Terminal for macOS or Linux:

curl -fsSL https://raw.githubusercontent.com/va-desai-dev/ENGRAISERVER/master/scripts/install.sh | sh

Tip

Verify the downloaded version matches the latest release by pasting this command:

engrai-server -h #list all the commands and help guides
engrai-server --version #check version installed

Launch the server at localhost:8400 (default port for ENGRAISERVER) by running the command below:

engrai-server --serve #launch command on default port

Open your browser (e.g., Chrome, Safari, Firefox, etc.) and go to http://127.0.0.1:8400 on the same device to access ENGRAISERVER's gorgeous and simplified interface.

Running as Background Service (LINUX ONLY)

The quicklaunch engrai-server serve command stops when the terminal or SSH session that started it closes, for example, when the laptop you connected from goes to sleep. For an always-on host, stop the foreground gateway with Ctrl+C first, then install the systemd user service once using the installed app:

engrai-server service install --now
loginctl enable-linger "$USER"

The first command writes ~/.config/systemd/user/engrai-server.service, enables it at boot, and starts it now. The second keeps your user services running when nobody is logged in; you only need to run it once when you install.

Configuration

Optionally, you may wish to implement the following quickstart configuration flags for advanced initialization:

Flag Purpose Command
--serve Default launch command engrai-server --serve
--init Creates a new profile again engrai-server --init
--config Access and change settings engrai-server --config
--routes List your saved model files engrai-server --preflight

Additional Guides & Links

Documents & FAQ Links

Access the comprehensive list of documentation, guides, and FAQs for various configurations, troubleshooting, and more:

Guide Document
Everyday commands, models, and services. INSTALLATION
Access & change runtime, network, and other settings. RUNTIMES
Install the source code for your own development. SOURCE INSTALL
Tests, UI guides, and policies for contributors. CONTRIBUTING
Build and deploy your own images. DOCKER
Deploy remote cloud compute clusters via Kubernetes. KUBERNETES
Learn more about the text-inference engine and torch flags. LLM PROFILES
Learn more about the image-gen engine. DIFFUSIONS
Learn more about the architecture. ARCHITECTURE
Complete archives, updates, and maintainer builds. ARCHIVES

Repo Layout: Don't Get Lost!

Use this as a guide to understanding what each subfolder and file broadly does inside this codebase.

Path Responsibility
@models/ Portable manifests and versioned schemas; no host paths or GPU assignments
src/engrai_server/domain/ Engine-independent model and deployment contracts
src/engrai_server/engines/ Engine protocol and provider adapters
src/engrai_server/ Gateway, CLI, services, authentication, and orchestration
src/engrai_server/static/ Compiled presentation layer shipped in the wheel
src/engrai_server/cardgen/ Card Studio: its API, library and job buffer; web/ is its unbuilt browser app
ui/ Presentation source only
tests/ Domain, lifecycle, API, packaging, and UI tests

Cache Folder: Don't Spook Out!

ENGRAISERVER will dump files and folders such as engrai-server in your hidden ./cache, ./config, and ./local system folders. The following table explains what each file/folder in the cache stores:

Kind Default
Configuration and deployments ${XDG_CONFIG_HOME:-~/.config}/engrai-server/
Versioned runtime bundles and resolved artifacts ${XDG_DATA_HOME:-~/.local/share}/engrai-server/
Card Studio library (cards, prompts, galleries) ${XDG_DATA_HOME:-~/.local/share}/engrai-server/cardgen/
Credentials, logs, and process state ${XDG_STATE_HOME:-~/.local/state}/engrai-server/
Disposable cache ${XDG_CACHE_HOME:-~/.cache}/engrai-server/
Hugging Face model cache ${HF_HUB_CACHE:-${HF_HOME:-~/.cache/huggingface}/hub}

Security & Privacy

  • The fresh default binds ENGRAISERVER to 127.0.0.1:8400.
  • Engine workers remain on loopback-only and do not write scripts outside the local repository.
  • engraiAuth Keys are stored with mode 0600 under XDG state for secure local storage. It is your responsibility to keep your credentials secure and private to prevent unauthorized access.
  • Model manifests do not encode secrets, absolute paths, or device information when routed via network payloads. Credentials and secured data remain seperated from the network API.
  • Runtime installation is explicit, checksums every payload file, and uses an atomic active-runtime record; automatic replacement while requests are running is forbidden.
  • See SECURITY & ARCHITECTURE for reporting and detailed operational guidance.

Contribution & Development

  • Contributor tooling is separate from the installed-app experience. See CONTRIBUTING.md for checkout setup, rebuilding local changes, UI watch mode, tests, and packaging.
  • Use SOURCE-INSTALL.md to install a source-preview build as an independent app command.
  • Native engine compilation and qualification belong to RUNTIMES.md. They are maintainer workflows, not something users should need to learn to run local models.

Licensing

Copyright © 2026 ENGRAI by Vedant A. Desai. All rights reserved.

ENGRAISERVER is pre-release software, licensed under the GNU Affero General Public License v3.0. See LICENSE.md. Bundled and pinned third-party components keep their own licenses; see docs/ACKNOWLEDGEMENTS.md.

Join ENGRAI's Discord Email Us

About

A comprehensive and easy to use local LLM and StableDiffusions model downloader, loader, and server for Unix based kernels.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages