onefrontieronefrontier.ai

docs · gateway

package/gateway/workers.yaml.examplerendered from source at build

One endpoint over every cell

# onefrontier gateway — workers.yaml
#
# The gateway's worker home. You own everything except the `workers:` block
# at the bottom: sync.sh rewrites that block from the fleet state on every
# tick — a cell that vanished drops within one tick, a new one appears the
# same way. Hand rows go in `static:` and are never rewritten; the sync
# merges them into the gateway like any other row.
#
# Copy this file to workers.yaml next to sync.sh and edit the two sections
# below (the sync also creates a bare workers.yaml on its own when none
# exists).

# Fleet consoles whose cell rows join the desired set. Each endpoint serves
# JSON rows at /api/cells; a row contributes a worker when it carries a
# `url` field (rows without one are counted and skipped — a console that
# reports cells but not their doors cannot feed a router). An endpoint that
# does not answer contributes nothing for that tick.
console: []
#  - https://console.example.org

# Hand rows: any OpenAI-compatible endpoint you want behind the door that
# the launch kit did not create (a home server, a rented box from another
# provider). A row needs a url; the served model is discovered from the
# endpoint's own /v1/models unless you pin it with `model:`.
static: {}
#  my-home-server:
#    url: http://192.168.1.10:8000
#  a-pinned-name:
#    url: http://10.0.0.5:30000
#    model: The-Served-Name

# ——— sync-owned from here down; hand edits are overwritten on the next tick ———
workers: {}