Skip to main content

LumynaX MaramaRoute: sovereign OpenAI-compatible model router for LumynaX releases.

Project description


license: apache-2.0 library_name: custom tags:

  • abteex-ai-labs
  • lumynax
  • marama-route
  • model-router
  • sovereign-ai
  • governance
  • new-zealand
  • aotearoa
  • openrouter-alternative
  • openai-compatible
  • local-first
  • ollama-alternative language:
  • en
  • mi

🇳🇿 LumynaX MaramaRoute

Sovereign OpenAI-compatible model router for Aotearoa New Zealand. One install. One command. 98 curated LumynaX models. Jurisdiction- and sovereignty-aware routing built in.

PyPI npm Hugging Face License Python

Ko te mārama te tūāpapa. Clarity is the foundation.


What is MaramaRoute?

MaramaRoute is the Ollama-class CLI and OpenAI-compatible gateway for the LumynaX sovereign model family. Think Ollama for running models, OpenRouter for routing — but purpose-built for Aotearoa New Zealand with jurisdiction, sovereignty tier, and residency enforced at the routing layer, not bolted on after.

Ollama OpenRouter MaramaRoute
OpenAI-compatible API ❌ partial
Local-first execution ❌ remote-only
Routes across many providers ❌ single backend
NZ jurisdiction enforcement ✅ first-class
Sovereignty tier policy gate
Te reo Māori support tagging
Curated model registry small huge unfiltered 98 LumynaX models, every one auditable
Self-hostable for free ❌ paid ✅ Apache-2.0

If you've ever wanted ollama run ergonomics with per-request sovereignty controls and a curated NZ-aligned model catalog, this is that.


Install

pip install lumynax-marama-route

That's it. Six command aliases get installed — pick whichever you like to type:

MaramaRoute --help        # CamelCase
LumynaXRoute --help       # brand alias
marama-route --help       # hyphenated
maramaroute --help        # lowercase
lumynax-route --help      # brand hyphenated
lumynaxroute --help       # brand lowercase

Also available via npm (npm install -g lumynax-marama-route) for Node-first teams — the npm package wraps the same Python wheel.


30-second Quickstart

# 1. Install
pip install lumynax-marama-route

# 2. Verify the wiring (offline smoke — does not bind a port)
MaramaRoute serve --smoke

# 3. Start the OpenAI-compatible gateway + browser console
MaramaRoute serve --port 8787 --open

You now have an OpenAI-compatible endpoint at http://127.0.0.1:8787/v1. Point any OpenAI SDK at it:

from openai import OpenAI

client = OpenAI(base_url="http://127.0.0.1:8787/v1", api_key="local")

# MaramaRoute picks the right model for the job — no hardcoding
response = client.chat.completions.create(
    model="auto",   # MaramaRoute selects from 98 LumynaX models
    messages=[{"role": "user", "content": "Write a Python function to compute Fibonacci."}],
    extra_body={"marama_route": {"task_type": "code", "jurisdiction": "NZ"}},
)
print(response.choices[0].message.content)

The model catalog (98 sovereign models, curated)

Distribution across the LumynaX family:

Families: qwen (29) · deepseek (6) · lumynax (6) · phi (6) · mistral (5) · olmo (5) · granite (4) · smollm (4)

Runtimes: llama_cpp · transformers · llama_cpp_multimodal · transformers_multimodal · python_embedding

Browse interactively:

MaramaRoute catalog --task code --limit 10
MaramaRoute catalog --task reasoning --requires-tools --jurisdiction NZ
MaramaRoute models | jq '.data[].id'

Every model in the registry carries:

  • sovereignty_tier — 1 (remote frontier) through 5 (NZ-resident only)
  • residency — list of allowed jurisdictions
  • license_id — the upstream license, verifiable in the model card
  • runtime — exactly which backend (llama.cpp, transformers, etc.) runs the weights
  • primary_artifact — the actual file shipped on Hugging Face

Full registry: AbteeXAILab/marama-route · 98 LumynaX model repos under AbteeXAILab on Hugging Face.


What the router actually does

Every routing decision passes through ordered gates. Models that fail any gate are rejected with a documented reason.

Gate Rejects when
Modality match Requested modalities aren't subset of model modalities
Context length Model's context_tokens < requested min_context_tokens
Tool support requires_tools=true but model lacks tool calling
JSON support requires_json=true but model can't enforce JSON output
License allowlist License ID isn't in caller's allowed list
Jurisdictional residency requires_local=true and jurisdiction not in model residency
Sovereignty tier High-sensitivity data routed to insufficient tier

Surviving candidates are then scored on:

  • Jurisdiction fit (+8)
  • Task-type tag match (+7, with +10 for coder specialization, +9 for reasoning)
  • Sovereignty bonus for iwi / data sovereignty keywords (+3 × tier)
  • Runtime preference (GGUF/llama.cpp gets +2.5)
  • Quality rank vs cost rank tradeoff

The router returns the winner plus the full rejection log so you always know why each candidate didn't win.


All the ways to run it

Local OpenAI-compatible gateway

MaramaRoute serve --port 8787 --open     # browser console + /v1 endpoints

Endpoints exposed:

  • GET /health
  • GET /v1/models — OpenAI-shape {"object":"list","data":[…]}
  • POST /v1/routeshow me which model would handle this
  • POST /v1/chat/completions — full OpenAI chat shape, route_only by default

Ask the router which model fits

MaramaRoute route --request examples/request.code-restricted.json

Inspect a single model

MaramaRoute catalog --search starcoder --limit 5
MaramaRoute compare --model lumynax-coder-starcoder2-15b-gguf --model lumynax-coder-qwen25-coder-32b-gguf

Run the built-in sovereignty scenario matrix

MaramaRoute matrix

Emit an OpenCode provider config (drop into ~/.opencode/providers/)

MaramaRoute opencode-config > ~/.opencode/providers/lumynax.json

Drive it from Python

from marama_route import (
    SovereignModelRouter,
    RoutingRequest,
    load_model_registry,
)
from pathlib import Path

models = load_model_registry(Path("./my_registry.json"))
router = SovereignModelRouter(models)

decision = router.route(
    RoutingRequest(
        prompt="Translate this paragraph to te reo Māori",
        task_type="general",
        jurisdiction="NZ",
        data_sensitivity="personal",   # routes only to sovereignty_tier >= 2
        requires_local=True,
    )
)

print(decision.selected_model.model_id)   # e.g. lumynax-translate-nllb-200-3b
print(decision.reasons)                    # human-readable rationale
print(decision.scores)                     # full scorecard

Why this exists

LumynaX is built by AbteeX AI Labs in Auckland, Aotearoa New Zealand. Three principles drive the design:

  1. Sovereignty over convenience. Every routing decision can be justified to a Māori data-governance reviewer, a privacy officer, or an iwi advisory board. The registry, the routing log, and the policy gates exist for that conversation.

  2. Local-first by default. Tier-3+ models run on machines the data owner controls. The router never silently escalates a sensitive request to a remote frontier model.

  3. Open weights, open license, open evals. Apache-2.0 on this routing layer. Upstream model licenses surfaced honestly per entry. No vendor lock-in.

Ko te mārama te tūāpapa — clarity is the foundation. Every model card states its provenance. Every routing decision is auditable. Every sovereignty constraint is testable.


Companion products

  • abteex-sovereigncode — Policy API and audit ledger for coding agents. Pairs with MaramaRoute when you need per-request policy enforcement and tamper-evident logs.
  • LumynaX model family — 98 sovereign-tagged model repos on Hugging Face, all routable through MaramaRoute out of the box.
  • TinyLuminaX — the heterogeneous MoE research line and training scaffolds.

Links


License

Apache-2.0 — see LICENSE.

Upstream models retain their own licenses; check each model card before commercial deployment.


Made in Aotearoa New Zealand by AbteeX AI Labs. Ko te mārama te tūāpapa.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lumynax_marama_route-0.4.1.tar.gz (45.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lumynax_marama_route-0.4.1-py3-none-any.whl (44.9 kB view details)

Uploaded Python 3

File details

Details for the file lumynax_marama_route-0.4.1.tar.gz.

File metadata

  • Download URL: lumynax_marama_route-0.4.1.tar.gz
  • Upload date:
  • Size: 45.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for lumynax_marama_route-0.4.1.tar.gz
Algorithm Hash digest
SHA256 ec3a734270adc1c4d0a62bdfd6d199bb8a9d4f8224e21ba3c5c3452010217791
MD5 e7ba6cbd57c6641dd7fd082bdd95d034
BLAKE2b-256 e21f4e52186d89f25155c1d8156813090e1816389ac80b82221850699b490171

See more details on using hashes here.

File details

Details for the file lumynax_marama_route-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for lumynax_marama_route-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a320d5165a6b162262f5c4db795ecf617ad7a824aaa77a30499c1e44da3f84c2
MD5 ea98faf43b2d55bc0e15be27bd83b218
BLAKE2b-256 165879558f0c876c0cc41031ce1c8b4fe0cd7f0cfbc8bc572628fa71a5bf0b9f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page