Proprietary free-to-use local LLM inference, streaming chat, and dense vector embeddings engine distributed via Bark.
Documentation
axil-auren
Proprietary free-to-use local LLM inference, streaming chat, and dense vector embeddings engine powered by llama.cpp and Vulkan/Metal, served as an axil module or embedded C library and distributed via Bark-protected releases (.business/axil-auren). Canonical header is<ttypt/auren.h>.
No CUDA toolchains to manage, no gigabytes of Python dependencies. axil-auren compiles to a single, compact C library (under 5 MB) that loads standard open GGUF models directly on Linux (Vulkan/CPU), macOS (Metal), and Windows.
1. Quickstart: Zero-Config Axil Module & ren Agent
axil-auren is designed as a native axil server module plus a standalone libren / ren streaming agent CLI & Unix-socket server.
Zero-config out of the box:
- Models & Vision Projectors: Any
.gguffiles placed in~/.models/(or$AUREN_MODELS_DIR) are automatically discovered, symlink-deduplicated, and classified (*bge*,*embed*,*nomic*,*minilm*,*e5-*->embed|judge, all others ->chat|judge), with noauren.jsonrequired. Matching*mmproj*.ggufvision projectors are paired automatically (defaulting to CPU-onlymmprojto avoid Vulkan VRAM contention, or configured via JSON"mmproj"/AUREN_MMPROJ_PATH) and reported with"vision": trueonGET /v1/models. Dedicated embed fast-lane workers isolate/v1/embeddingsand/v1/systemonefrom long-running chat decodes, and cold model loads run lock-free so concurrent HTTP requests never stall. Optional config still loads from$AUREN_CONFIG_PATH,./auren.json,~/.config/auren/config.json, or~/.auren.json. - Cloud Upstreams: Optional upstream routing (
very-fast,fastβneon,smartβargon,genius,antigravity/*,kilo/*) reads OAuth/API credentials from$AUREN_AUTH_PATH,~/.config/auren/auth.json, or~/.pi/agent/auth.json.
# Primary execution: start axil daemon loading the auren module on port 4242
axil -A -d -p 4242 -m libaxil-auren
# Or via the @tty-pt/axil and @tty-pt/auren npm prebuilds (no system C install required):
npx axil -A -d -p 4242 -m axil-auren
# Or via the turnkey helper launcher:
scripts/auren-server
# Interactive / IPC agent CLI (with Tier-0 ren-reflex, ren-fs, ren-bash):
ren --listen /tmp/ren.sock
ren Agent, Modules & Tier-0 ren-reflex Router
libren (bin/ren, <ttypt/libren.h>) provides a lightweight pure-C multi-turn agent loop over /v1/chat/completions with a pure-C line editor (history ring, Tab completion via src/ren-complete.c, bottom powerline prompt with live context usage, async live steering), pluggable ren_ui_driver_t UI events (TOKEN/TOOL_RESULT), IPC STATUS query, project context & AGENTS.md/skills discovery, and extensible libxylem modules:
- Core Modules (
mods/):mods/fs/ren-fs.c(read/write/edit with structured JSON tool schemas),mods/bash/ren-bash.c(shell execution),mods/nvim/ren-nvim.c(Neovim RPC tools:nvim_context,nvim_diagnostics,nvim_jump,nvim_reload), andmods/reflex/ren-reflex.c(Tier-0 router). External modules such asren-mmandren-jarvislive in their owner repos and load viaREN_MOD_DIR(see docs/MOD_MM.md). - Tier-0 Deterministic Reflexes (
mods/reflex/ren-reflex.c): Matches direct commands in<1 mswithout an LLM round-trip (workspace switching, window management, media/volume, browser tab open/close, terminal launch, conversation control) in both English and Portuguese, including UTF-8 Latin diacritic folding (Γ‘rea=area,prΓ³xima=proxima), polite prefix stripping (please,can you,por favor,podes, etc.), and fail-open to Tier-1 LLM on questions or multi-clause utterances. Custom rules can be added via~/.config/ren/reflex.tsv. - Upstream Tier Aliases: Supports
very-fast,fast,smart, andgeniusmodel aliases mapped viasrc/auren-upstream.cto local GGUF or authenticated cloud endpoints with HTTP/2 pooling, circuit breaking, persistent thought signatures, and session affinity.
Verified curl Queries
# 1. Streaming Chat Generation (OpenAI-compatible)
curl -s http://127.0.0.1:4242/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"chat","messages":[{"role":"user","content":"Explain pure C in 10 words."}]}'
# 2. Dense Vector Embeddings (for libsepal semantic search)
curl -s http://127.0.0.1:4242/v1/embeddings \
-H "Content-Type: application/json" \
-d '{"model":"bge-base","input":"Zero-copy in-memory associative search"}'
# 3. System One: Fast Reflexive Decisions (0 decode tokens)
# A. Choice Gating
curl -s http://127.0.0.1:4242/v1/systemone \
-H "Content-Type: application/json" \
-d '{"prompt":"Is this statement about programming? Statement: I wrote a C struct.\nAnswer [yes/no]:","choices":["yes","no"]}'
# B. Nearest-Exemplar Matching
curl -s http://127.0.0.1:4242/v1/systemone \
-H "Content-Type: application/json" \
-d '{"text":"Fix typo in README","exemplars":{"trivial":"fix spelling","complex":"refactor allocator"}}'
2. Recommended Models & Hardware Tiers
Models reside in ~/.models/ and are automatically discovered:
| Tier | Target Hardware | Recommended Chat Model | Recommended Embed Model | RAM Footprint |
|---|---|---|---|---|
| Tier 1: Lightweight | <4 GB RAM / Low-spec VPS | Qwen2.5-0.5B-Instruct (491 MB) | bge-small-en-v1.5 (37 MB, 384-d) | ~500 MB total |
| Tier 2: Balanced MoE (Default) | 8β16 GB RAM / Standard Laptop | OLMoE-1B-7B-Instruct (3.3 GB) | bge-base-en-v1.5 (118 MB, 768-d) | ~3.8 GB total |
| Tier 3: High-Fidelity | 16β32 GB+ RAM / Discrete GPU | Qwen2.5-7B-Instruct (~4.7 GB) | bge-large-en-v1.5 (330 MB, 1024-d) | ~6β10 GB total |
π For model configuration options, resident limits, and Jinja chat templates, see docs/USAGE.md.
3. HTTP Endpoints
| Endpoint | Method | Input Model / Role | Description |
|---|---|---|---|
/v1/systemone | POST | model: "bge-base" or "judge" | Unified System 1 reflexive decision: choice gating, exemplar matching, and question evaluation (~5β15ms) |
/v1/collections/{name}/documents | POST | text, id? | Multi-tenant persistent document ingestion using libsepal and libcorm |
/v1/collections/{name}/search | GET | q, limit? | Multi-tenant ranked vector search |
/v1/collections/{name}/documents/{id} | DELETE | none | Delete document and vector from tenant collection |
/v1/chat/completions | POST | model: "chat" (or explicit ID) | OpenAI-compatible streaming/non-streaming text & local multimodal vision (image_url data URIs with pre-validation) and per-request temperature (0.0 = greedy) |
/v1/embeddings | POST | model: "bge-base" / "bge-small" | Generate dense vector embeddings for semantic search |
/v1/models | GET | none | List all registered models and active capabilities (including "vision": true for mmproj-paired models) |
4. Embedded C API Reference (<ttypt/auren.h>)
Embed local inference directly into your C application:
#include <stdio.h>
#include <ttypt/auren.h>
int main(void) {
struct auren_config cfg = {
.model_path = "/home/user/.models/qwen2.5-0.5b-instruct.gguf",
.n_ctx = 2048,
.n_threads = 4,
};
struct auren_ctx *ctx = auren_create(&cfg);
if (!ctx) return 1;
// Prime prompt into KV cache
auren_prime(ctx, "Explain C pointers in 5 words:");
// Stream generated tokens
char token[64];
while (auren_next(ctx, token, sizeof(token)) > 0) {
printf("%s", token);
fflush(stdout);
}
printf("\n");
auren_free(ctx);
return 0;
}
Compile and link:
cc inference_demo.c $(pkg-config --cflags --libs axil-auren) -o inference_demo
Core C API Functions
| Function | Signature | Description |
|---|---|---|
auren_create | struct auren_ctx *auren_create(cfg) | Initialize model context, optional mmproj_path vision projector, and compute engine |
auren_prime | int auren_prime(ctx, prompt) | Tokenize and evaluate prompt into KV cache |
auren_next | int auren_next(ctx, buf, bufsz) | Decode next token from context |
auren_chat_media | int auren_chat_media(ctx, msgs, n_msgs, media, n_media, cb, user) | Streaming multimodal chat over auren_media_marker() placeholders (auren_has_vision) |
auren_set_temperature | int auren_set_temperature(ctx, temperature) | Override sampling temperature (0.0f = deterministic greedy, < 0.0f = default) |
auren_embed | int auren_embed(ctx, text, out, out_dim) | Generate normalized float vector embedding |
auren_free | void auren_free(ctx) | Release model resources and memory |
π For the complete C function reference, VRAM calculators, and session KV prefix caching, see docs/API.md.
5. Distribution, Services & Build
Bark-Protected Free-to-Use Distribution
Public binary distributions of axil-auren (including NeverDark and free-to-use local inference releases) are distributed as Bark-protected packages rather than unencrypted public package-manager or npm uploads. Source builds are private to .business/axil-auren.
Build from Source (Private Workspace)
Builds use shared libstele rules (include ttypt/include.mk):
make # builds libaxil-auren.so, libren.so, bin/ren, and ren-* mods
make test # run comprehensive unit, edge, stress, and ren test suite
make PREFIX="$HOME/.local" install # install headers, libraries, ren modules, and licenses
Cross-platform service definitions live under services/ (services/systemd/axil-auren.service, services/openrc/axil-auren, services/freebsd/axil-auren, services/rc.d/axil_auren, services/launchd/pt.tty.axil-auren.plist, services/xdg/axil-auren.desktop, services/windows/axil-auren.xml, and services/windows/install-service.ps1) and are installed via make install-services. On Windows (MinGW64), setting VULKAN_SDK automatically enables the ggml Vulkan backend and VRAM probe.
6. JavaScript, WebAssembly & N-API Bindings (@tty-pt/auren)
The npm/ workspace provides internal browser, Node.js, and WebSocket/HTTP client bindings ("private": true β not published directly to public npm):
- Prebuilt
libaxil-aurenServer Module &getModulePath(): Bundleslibaxil-auren.{so,dylib,dll}and its runtime dependencies inprebuilds/<platform>-<arch>/with$ORIGINRPATH. - N-API Accelerated Cosine Similarity: Bundles
auren.node(cosine(vecA, vecB)) with automatic pure-JS fallback. - Isomorphic Client & Browser Wllama Engine: Provides
createAurenClient,AurenBrowserEngine(WebAssemblyllama.cpp+ SmolLM2), andcreateAurenBridge.
See npm/README.md for the full TypeScript, N-API, and WebAssembly API reference.
License
Proprietary Free-to-Use License β All Rights Reserved. Copyright (c) 2026, tty-pt. Authorized Bark-protected distributions are free to use (including for NeverDark, personal, non-commercial, and Church use). See LICENSE and THIRD_PARTY_NOTICES.