Skip to main content

SerenLodestar

The cluster head. The thing that knows which box has the GPU.

One process on port 6361 that keeps a live picture of every node you're running, routes service control to whichever one can actually do the job, runs the chat tool loop, fires scheduled tasks, and puts the whole thing behind one operator dashboard.

Lodestar doesn't run models. It knows where the models are, and it's the only address anything else has to remember.

Part of the Seren stack. It talks to SerenObservatory on each node — that's the only hard dependency, and everything else is optional.


Install

pip install seren-lodestar
python -m seren_lodestar

That starts, finds no nodes, and tells you so on stderr rather than pretending:

[lodestar] config: 0.0.0.0:6361
[lodestar] inbound auth: DISABLED (no token)
[lodestar] cluster: 0 node(s) configured

Copy seren-lodestar.yaml.sample to seren-lodestar.yaml and list your nodes. Unlike the rest of the family, configuration isn't optional here — a cluster head with no cluster orchestrates nothing, and it will warn you about exactly that at startup.

python -m seren_lodestar --config /etc/seren/lodestar.yaml --port 6361

--config, --port and --host override the file. SEREN_LODESTAR_CONFIG does the same for the config path.

Wire up your nodes

cluster:
  refresh_interval: "00:30:00"    # how often to re-probe
  discovery_timeout: "00:00:02"   # per-node patience

  nodes:
    - name: "orin-nano"
      agent_url: "http://192.0.2.100:7777"
      preferred_for: ["whisper", "kokoro"]
      is_host: false

    - name: "xavier"
      agent_url: "http://192.0.2.101:7777"
      preferred_for: ["llama", "comfy"]
      is_host: true

Port 7777 is where an Observatory listens. Check one before you trust it:

curl http://192.0.2.100:7777/api/v1/system/ping

preferred_for is advisory, not binding. It's where Lodestar looks first; if that node is down or doesn't have the service installed, the request goes to whoever actually answers. A preference is a hint about your hardware, not a promise you have to keep making true by hand.

is_host marks the node running primary inference — exactly one. nickname is free text for the dashboard. agent_update_path is where a pushed Observatory package lands on that node, which differs per box (a Jetson image is usually /home/jetson, a NUC or Spark is whatever account runs the service), so it's per-node rather than global.

The node type isn't special to Lodestar. A Jetson, a NUC, a Spark and a spare laptop all go in the same way. Only the Observatory on the far end matters.


What it actually does

Discovery runs on a loop. Every refresh_interval, every node gets probed with a discovery_timeout of patience. Nodes go offline and come back without anyone restarting anything, and the capability map — which services exist on which boxes — updates itself.

Service control is routed, not addressed. POST /api/v1/service/llama/start doesn't need to know which machine that is. If you do want to be specific, /api/v1/node/xavier/service/llama/start bypasses routing entirely.

Chat carries a tool loop. POST /api/v1/chat runs inference with tools attached; /chat/stream does it streaming, one generation per round, with the answer arriving as it is produced. Lodestar's own tools are always attached; tooling.remote_mcp adds other MCP servers (Workbench, for memory and search). The dialect that formats tool calls for the model lives behind IToolDialect — QwenHermesDialect is the shipped one, and swapping model families means writing a new dialect, not editing the loop. POST /api/v1/chat/inspect shows you exactly what got injected when the answer looks wrong.

The scheduler fires tools on a clock. Cron expressions or relative offsets (2h, 30m, 90s). State persists to scheduler.persistence_dir, defaulting to a scheduler/ directory next to your config file (or ~/seren-lodestar/scheduler when running on defaults). Tasks survive a restart; one-shots delete themselves after firing, recurring ones re-arm. A task fires through the same tool client the chat uses.

Agent updates push outward. POST /api/v1/system/agent-update ships a packaged Observatory to every node at its configured agent_update_path.


Connect a model to it

The MCP endpoint is at /mcp/ — trailing slash, a bare /mcp gets a 307.

{
  "mcpServers": {
    "seren-lodestar": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "http://127.0.0.1:6361/mcp/",
               "--transport", "http-only"]
    }
  }
}

Six tools, all cluster-shaped:

tool
cluster_refresh re-probe everything, or one named node
cluster_capabilities which services are on which nodes
service_control start / stop / restart / status / health, routed or pinned
scheduler_list what's scheduled
scheduler_add cron or relative
scheduler_remove by name

DNS-rebinding protection defaults off, because the normal deployment is a trusted LAN and the check breaks cross-host access. Turn it on with SEREN_LODESTAR_ALLOWED_HOSTS / SEREN_LODESTAR_ALLOWED_ORIGINS when the network stops being trusted.


Endpoints

GET / service info + update status
GET /health liveness
GET /viewer the operator dashboard
GET /api/v1/system/ping public — no token
GET /api/v1/system/version public — no token
GET /api/v1/system/status per-node status
GET /api/v1/system/health cluster health
POST /api/v1/system/reclaim stop the GPU daemons (never the constellation, unless told)
POST /api/v1/system/reboot/{node} reboot a node
POST /api/v1/system/reboot/{node}/cancel change your mind
POST /api/v1/system/agent-update push Observatory to every node
POST /api/v1/node/{node}/agent-update push Observatory to one node
POST /api/v1/cluster/refresh re-probe all nodes
POST /api/v1/cluster/refresh/{node} re-probe one
GET /api/v1/cluster/capabilities the capability map
GET/POST /api/v1/service/{name}/* routed service lifecycle
GET/POST /api/v1/node/{node}/service/{svc}/* pinned to one node
GET/POST /api/v1/scheduler/tasks list / add
DELETE /api/v1/scheduler/tasks/{name} remove
POST /api/v1/scheduler/tasks/{name}/pause pause
POST /api/v1/scheduler/tasks/{name}/resume resume
POST /api/v1/chat inference with tools
POST /api/v1/chat/stream the same, streamed
POST /api/v1/chat/inspect what got injected, for debugging
GET /api/v1/chat/health is the backend up
GET /api/v1/chat/last_user_at last human activity
/mcp/ MCP streamable-HTTP transport

Auth

Set server.bearer_token, or point at an env var or the OS keyring:

server:
  bearer_token_env: "SEREN_LODESTAR_BEARER_TOKEN"
  # bearer_token_keyring: "seren-lodestar"

Everything requires it except /, /health, /viewer, system/ping and system/version — liveness and identity probes that a monitoring box shouldn't need a secret to reach.

runtime.inject_bearer_token makes Lodestar forward its own token when calling Observatories, so you can configure one secret instead of one per node.

With no token set, auth is off entirely and it says so on startup. That's fine on a bench and wrong on anything routable.


Update checking

GET / reports whether a newer seren-lodestar has been published:

{
  "service": "SerenLodestar",
  "version": "1.4.2",
  "status": "ok",
  "updates": {
    "status": "ok",
    "installed": "1.4.2",
    "latest": "1.5.0",
    "update_available": true
  }
}

On by default: update checking is part of the core install (it lives in seren-meninges). A box that never leaves the LAN has no business calling PyPI; set enabled: false there. The knobs:

updates:
  enabled: true
  check_interval_hours: 6      # cached; never checked per-request
  allow_prerelease: false
  # index_url: "https://pypi.org/pypi/{distribution}/json"

The result is cached and the check never happens in the request path, so / stays fast. updates.status is always one of ok, disabled, unavailable (a broken install: the checker's dependencies are missing) or error — never absent, and never a silent "you're fine" when it couldn't actually check. SEREN_LODESTAR_UPDATES_ENABLED=false turns it off without editing config.

Note / is public, so this publishes "running 1.4.2, which is behind" to anyone who asks. It already published the version; this adds the comparison. Set enabled: false if that bothers you and read it off the dashboard instead.

Lodestar never upgrades itself. Applying an update is pip install -U seren-lodestar and a restart — your service supervisor's job, not this process's. A running process can't reliably swap its own code out from under itself, so it doesn't pretend to.


What it won't do

It won't upgrade itself (see above). It won't install services — that's the Observatory's job on each node. It won't invent a node that isn't in the config; discovery probes what you listed, it doesn't scan your subnet. A preferred_for entry can't force work onto a box that isn't answering. And with zero nodes configured it comes up healthy and warns loudly rather than failing silently, because "I am running and I have nothing to do" is a real state worth being able to see.

Development

pip install -e ".[dev]"
pytest -q

License

AGPL-3.0-or-later.

Metadata

Release files for seren-lodestar 5.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for seren-lodestar 5.0.1
File Size Uploaded
seren_lodestar-5.0.1.tar.gz 113.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for seren-lodestar 5.0.1
File Interpreter ABI Platform
seren_lodestar-5.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 212.5 kB

Release files / seren_lodestar-5.0.1.tar.gz

Download URL seren_lodestar-5.0.1.tar.gz
Size 113.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9c42fc7ad56be6791c9266a9caee5345cea50d72c05e4a78c202c626588d4f4c
BLAKE2b-256 checksum
How to use checksums
efd62b1ba297827cf8e68a45e68771fe4cd98dc750aafb99f8344da8f044829d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / seren_lodestar-5.0.1-py3-none-any.whl

Download URL seren_lodestar-5.0.1-py3-none-any.whl
Size 99.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0c489e14e6443a3575d78499501a9b2c0f18177b4413b6d15fdf7d4f11b6ad9
BLAKE2b-256 checksum
How to use checksums
22830f7852908c313dbf22f5e651fd2c94e5af2f1af3b2f1dc5e0ee01ce3b010
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release history Release notifications | RSS feed

5.1.2

2 release files

5.1.1

2 release files

5.0.5

2 release files

This release

5.0.1 This release

2 release files

5.0.0

2 release files

2.5.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page