Proprietary free-to-use local LLM inference, streaming chat, and dense vector embeddings engine distributed via Bark.

axil-auren logo

axil-auren

npm C99 Proprietary (Free to Use) Vulkan/Metal/CPU Inference & Embeddings System One

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 .gguf files 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 no auren.json required. Matching *mmproj*.gguf vision projectors are paired automatically (defaulting to CPU-only mmproj to avoid Vulkan VRAM contention, or configured via JSON "mmproj" / AUREN_MMPROJ_PATH) and reported with "vision": true on GET /v1/models. Dedicated embed fast-lane workers isolate /v1/embeddings and /v1/systemone from 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), and mods/reflex/ren-reflex.c (Tier-0 router). External modules such as ren-mm and ren-jarvis live in their owner repos and load via REN_MOD_DIR (see docs/MOD_MM.md).
  • Tier-0 Deterministic Reflexes (mods/reflex/ren-reflex.c): Matches direct commands in <1 ms without 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, and genius model aliases mapped via src/auren-upstream.c to 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:

TierTarget HardwareRecommended Chat ModelRecommended Embed ModelRAM Footprint
Tier 1: Lightweight<4 GB RAM / Low-spec VPSQwen2.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 LaptopOLMoE-1B-7B-Instruct (3.3 GB)bge-base-en-v1.5 (118 MB, 768-d)~3.8 GB total
Tier 3: High-Fidelity16–32 GB+ RAM / Discrete GPUQwen2.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

EndpointMethodInput Model / RoleDescription
/v1/systemonePOSTmodel: "bge-base" or "judge"Unified System 1 reflexive decision: choice gating, exemplar matching, and question evaluation (~5–15ms)
/v1/collections/{name}/documentsPOSTtext, id?Multi-tenant persistent document ingestion using libsepal and libcorm
/v1/collections/{name}/searchGETq, limit?Multi-tenant ranked vector search
/v1/collections/{name}/documents/{id}DELETEnoneDelete document and vector from tenant collection
/v1/chat/completionsPOSTmodel: "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/embeddingsPOSTmodel: "bge-base" / "bge-small"Generate dense vector embeddings for semantic search
/v1/modelsGETnoneList 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

FunctionSignatureDescription
auren_createstruct auren_ctx *auren_create(cfg)Initialize model context, optional mmproj_path vision projector, and compute engine
auren_primeint auren_prime(ctx, prompt)Tokenize and evaluate prompt into KV cache
auren_nextint auren_next(ctx, buf, bufsz)Decode next token from context
auren_chat_mediaint 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_temperatureint auren_set_temperature(ctx, temperature)Override sampling temperature (0.0f = deterministic greedy, < 0.0f = default)
auren_embedint auren_embed(ctx, text, out, out_dim)Generate normalized float vector embedding
auren_freevoid 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-auren Server Module & getModulePath(): Bundles libaxil-auren.{so,dylib,dll} and its runtime dependencies in prebuilds/<platform>-<arch>/ with $ORIGIN RPATH.
  • N-API Accelerated Cosine Similarity: Bundles auren.node (cosine(vecA, vecB)) with automatic pure-JS fallback.
  • Isomorphic Client & Browser Wllama Engine: Provides createAurenClient, AurenBrowserEngine (WebAssembly llama.cpp + SmolLM2), and createAurenBridge.

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.

Maintained by:quirinpa