Two windows of the pacod-broker resource page for Llama 3.3 70B Instruct (fp8), one light and one dark, overlapping: a description, a seven-day bar of availability and prices, lowest, mean and highest rates in EUR, and a reputation card with bars for accuracy, availability, lease discipline, performance, quality, reliability, stability and trust.
A model by day and by night: less than half price off-peak, cheaper from next Monday, a maintenance gap on Friday night, and a reputation of 65 % with every component and its evidence.

pacod-broker is a catalogue that keeps itself up to date. Providers announce models, MCP servers, agents, tools and compute, each with its interfaces, prices over time, availability over time and the hardware it runs on, and keep them listed with a heartbeat. Consumers, agents and gateways discover them with one query that filters by capability, price, hours, data policy and reputation, and says why each result matched. One small binary, no database.

Resource discovery

  • Licence: Apache-2.0
  • Version: 0.1.0 · Preview
  • Written in: Rust, TypeScript, Python
  • Tech stack: Rust, Axum, SvelteKit, MCP, Caddy, Docker, Prometheus
  • View on GitHub · Open an issue

Features

Announce under a lease

A provider sends one announcement and a small heartbeat. What it stops renewing disappears on its own; a goodbye removes it at once.

One discovery query

Filter by kind, words, capabilities, protocols, model limits, regions, data policy, GPU and software version, price and reputation. Every result says why it matched.

Prices over time

Periods, off-peak windows, one-off overrides, volume tiers and commitments, in the provider's own currency. A price that has started never changes.

Availability over time

Opening hours, maintenance and bookable slots, so a consumer can ask what something costs and whether it is free next Tuesday night.

Reputation for both sides

Providers on availability, reliability, performance, honest claims and ratings; clients on identity, conduct, payment and honest feedback. Reports count only with a ticket.

Agents use it directly

/mcp offers discover_resources, describe_resource and describe_provider as MCP tools, so an agent can find a model or a tool at run time.

Small and fast

A 12.7 MB static binary that starts in under 100 ms and idles at 23 MB. Filtered discovery takes 0.2 to 1.2 ms at 10,000 resources, with no lock on the read path.

Clients in three languages

Rust, Python and TypeScript libraries, each with a command line, for a provider that stays announced and a consumer that discovers, watches and reports.

A console that docks to it

An optional console on pacod-id's design and sign-in, docking to one or several brokers. A broker never needs it.

The platform diagram with pacod-broker lit at the right and the other projects dimmed, a gold dotted line joining it to pacod-id and plum lines to pacod-gw, pacod-ap and pacod-cms.
Where pacod-broker sits: beside the products, in the path of none of their calls. It signs people and services in through pacod-id (gold); the plum lines are its links to pacod-gw (offerings, proposals, pools, witnessed calls), pacod-ap (agents that search and are offered) and pacod-cms (websites offered as datasets). Dimmed: LLM calls through pacod-gw (green), sign-in through pacod-id (gold), use by people (grey), pacod-benchmark (coral).

Screenshots

The light Resources page of the pacod-broker console, 22 resources at index generation 8, with a table of GPU hours, models, MCP servers and agents from fictional providers, each active, with a price such as 0.95 per GPU hour off-peak or free, and a reputation from 56 % fair to 75 % good.
The catalogue: every resource with its kind, provider, live state, price now and reputation, searchable by words and kind.
The dark page of Llama 3.3 70B Instruct (fp8) from a fictional provider: an off-peak price of 0.22 and 0.45 EUR per million tokens, a seven-day bar with a maintenance gap, rates from lowest to highest, and a reputation of 65 % with eight component bars.
One resource, at night: what the provider says about it, its prices and availability for the next seven days, and how its reputation is made up.
The light Reputation page with tabs for providers, resources and clients: nine fictional providers from 54 % fair, weakest in accuracy, to 76 % good, nearly all at 100 % confidence.
Reputation, lowest first: each provider's score, how sure the broker is of it, and its weakest component, so the console shows first what needs looking at.
The dark Providers page: nine fictional providers with their source, lease or static, their numbers of resources and leases, inventory, a reputation from 54 % to 76 % and when they were last updated.
The providers, at night: six announced under a lease and kept by their heartbeats, three static entries from the catalogue file.
The light Overview page: tiles of 22 resources, 9 providers, 6 leases and 20 clients rated; counts by kind (agents, compute, embedding, MCP servers, models), live status with 21 active and 1 degraded, and the broker's version, index generation and access mode.
The overview: what the broker holds now, by kind and by live state. Providers announce under leases; what they stop renewing goes by itself.

Why a broker

An application that calls a model usually knows which one: it is pinned, and it should stay pinned. But someone has to choose it first, and the choice keeps changing. Providers add models and drop them, prices change by the hour, a workstation serves at night and not by day, a GPU host has capacity next week and not now, and an MCP server that looked promising may answer half of its calls. A list kept by hand is out of date the day after it is written.

pacod-broker is that list, kept by the people who know: the providers announce what they offer and keep it listed while it is there. Consumers ask one question and get an answer that holds for the instant or the span they asked about. And because the broker sees both sides of every interaction, it can keep a record of who keeps their promises, on both sides.

It started as the capability broker of pacod-gw's feature catalogue (section 12, BRK-01 to BRK-13), where the design assessment called it "elegant, value unproven". So it was built as a product of its own: small enough to run anywhere, useful without the gateway, and joined to it only where the value is clear.

What can be announced

A resource is one endpoint: the same model at two providers is two resources. Its kind is one of model, mcp_server, agent, tool, compute, embedding or dataset, or a kind of your own (other:<slug>). It carries:

  • interfaces: the protocol (openai-chat, openai-responses, anthropic-messages, gemini, pacod-gw, mcp-streamable-http, a2a, openapi, grpc and others), the address, and how to obtain access — never a secret;
  • model facts: family, context window, output limit, modalities, quantisation, size;
  • capabilities: tools, vision, reasoning, structured output, streaming, prompt cache, and an MCP server's tools;
  • prices and availability over time (below);
  • a data policy: retention, training use, residency;
  • access: public, the whole platform, or one organisation, and a minimum client reputation.

A provider describes itself, and may add an inventory: the GPUs, accelerators, memory and networks it runs on, and the drivers, runtimes and serving engines with their versions. Every inventory item is marked as declared, and a resource names the items it runs on.

ttl_s: 30
provider:
  name: local-ollama
  title: Workstation models
  inventory:
    hardware:
      - { id: gpu, type: gpu, vendor: nvidia, model: RTX-4090, count: 1, memory_gb: 24 }
    software:
      - { id: ollama, kind: serving_engine, name: ollama, version: "0.5.7" }
resources:
  - key: qwen-coder
    kind: model
    name: qwen2.5-coder-32b
    interfaces:
      - { protocol: openai-chat, url: "http://workstation.lan:11434/v1" }
    model: { family: qwen, context_window: 32768, quantisation: q4_k_m, parameters_b: 32 }
    capabilities: { tools: true, streaming: true }
    runs_on: { hardware: [gpu], software: [ollama] }
    pricing: { free: true }
    availability:
      capacity: { max_concurrency: 2 }
      schedule:
        timezone: Europe/Sofia
        rules:
          - { weekdays: [mon, tue, wed, thu, fri], from_time: "18:00", to_time: "08:00" }
          - { weekdays: [sat, sun], from_time: "00:00", to_time: "24:00" }

Leases: a catalogue that keeps itself

An announcement is a lease. The provider sends PUT /v1/announce with its profile and its resources, then a heartbeat to keep the lease. The heartbeat is one small request per provider session, not per resource, and carries the live state: active, degraded, draining or in maintenance, the capacity in use and the time to first token it observes. Without a heartbeat the lease runs out and its resources disappear; a goodbye (DELETE /v1/leases/{id}) removes them at once.

Leased entries are never written to disk: after a restart, providers announce again, and the clients do that on their own. What has to survive a restart — entries from a YAML catalogue or the admin API, decisions such as a blocked provider, and the evidence behind reputations — is a few files in BROKER_STATE_DIR.

Time is first-class

Prices have periods, and each period can hold recurring windows (off-peak, weekends), one-off overrides (a promotion, a spot price), volume tiers and commitments. Rates are per million tokens (input, output, cache read and write, reasoning) or per unit (request, call, image, second, hour, GPU hour). The broker works out the price at an instant, or the lowest, highest and time-weighted mean over a span, with the instants at which it changes. A period that has started can be ended, not rewritten: prices are never retroactive. And the broker converts no currency; discovery's currency filter keeps a comparison within one.

Availability has validity, opening hours, maintenance and bookable slots, each in its own time zone. The capacity at an instant is decided in a fixed order: closed outside validity and during maintenance, then a slot if one covers the instant, then the opening hours, then the declared maximum. The live state from heartbeats counts only within 15 minutes of now: a provider draining now says nothing about next week.

Together they answer the questions a catalogue usually cannot: the cheapest model with tools and 128k context that is open all of next Tuesday night, or a host with two H100s and vLLM 0.7 or newer for ten hours this weekend, under 3 EUR per GPU hour.

Discovery

POST /v1/discover takes every filter in one body:

Group Filters
What it is kind, words, tags, protocols, capabilities, provider, model family, context window, output limit, modalities, quantisation
Where data goes regions, residency, no training use
What it runs on GPU model, GPU memory, number of GPUs, memory; software name and a semver range
Price a maximum per rate, currency, whether unpriced entries count
Time and capacity an instant or a span, minimum capacity, full or partial coverage, no degraded entries
Reputation a minimum score and a minimum confidence

Results sort by relevance or name, and within one kind by a price rate, time to first token or reputation: a speech model and a chat model are never ranked against each other. Ties break by id, so the same query gives the same order. Every result carries the effective price (or the price over the span), availability, the live state, reputations, why — the filters it passed and its sort value — and a ticket.

The same engine answers GET /v1/resources with the common filters as parameters, the MCP tool discover_resources, and a watch stream of server-sent events for consumers that keep their own copy.

broker-cli discover --kind model --capability tools --currency EUR --max-price input=0.5 --sort price:input
broker-cli discover --gpu H100-SXM --software 'vllm@>=0.7' --during 2026-11-10T20:00:00Z..2026-11-11T06:00:00Z

Reputation, built from evidence

A catalogue says what providers claim; reputation says whether the claims hold. The broker keeps a score for every resource, provider and client, from evidence it observes itself (leases, uptime against the promised hours, how often prices change) and from reports about real interactions.

Providers and resources Clients
availability against the promised hours identity: anonymous, a person, a service account, a verified organisation
reliability of calls conduct: abuse and policy violations reported by providers
performance, as a percentile within the kind settlement: whether the client pays
accuracy of the declared latency and price commitment: reservations kept
lease discipline and stability honesty of its own ratings
ratings from 1 to 5, and trust tenure

It is built to be hard to game:

  • Tickets. Every discovery result carries a broker-signed ticket. A usage report or a rating counts only with one, and only from the client it was issued to, so a rating proves its author was shown the resource.
  • Smoothing and decay. Scores lean towards a neutral prior until evidence accumulates, and evidence fades with a 30-day half-life, so a newcomer with three good reports does not outrank an established provider, and a provider that improves recovers.
  • Weighted raters. A report counts with its author's own reputation as a client.
  • No self-praise. Reports from the provider's own organisation are ignored.
  • Transparent. No score travels alone: each carries its components, its evidence count, a confidence and when it was computed.

Access, and a console

BROKER_AUTH=open, the default, is for development and closed networks. BROKER_AUTH=oidc uses pacod-id: people with access tokens, providers and machines with service accounts, and roles from authz/broker.yaml — admin, operator, moderator and viewer for the platform; provider and consumer for the platform or one organisation; witness, for gateways that report on the calls they carried; and provisioner, for products such as pacod-cms that make a provider account for each organisation they announce for. The broker decides locally from its copy of pacod-id's role bindings, so discovery never waits for pacod-id, and keeps answering while it is down.

The console is an optional SvelteKit app on pacod-id's design and sign-in. It holds no state and docks to the admin API of one or several brokers: the overview; resources with a seven-day timeline of prices and availability; providers with their inventories and leases; reputation with its evidence, and moderation (freeze, reset, take back an unfounded report); static entries and leases; metrics; access; settings. The browser never talks to a broker.

Clients

Providers and consumers do not have to speak HTTP by hand. The repository has the same client in three languages, each a library and a command line:

Language Library Command line
Rust pacod_broker_client broker-cli
Python pacod_broker_client pacod-broker
TypeScript (Node 20+) @pacod/broker-client pacod-broker

A provider announces and stays announced: it heartbeats, announces again after the broker restarts and says goodbye when it stops. A consumer discovers, watches, and reports usage and ratings with its tickets. The TypeScript types are generated from the broker's OpenAPI document, and make clients-test runs all three against a real broker.

Deployment and operations

Service What
pacod-broker The broker: the public API on 8060, the admin API on 8061, metrics on 9160
broker-console The console, behind Caddy

The image is static and distroless, about 15 MB, and runs as an unprivileged user. Every setting is an environment variable and every one is optional; an unknown BROKER_* variable stops the broker from starting, and every problem is reported in one go. make dev-up starts the broker and the console from the working tree, and make up adds the edge, Prometheus and Grafana with the broker's dashboard and alerts. The runbook covers configuration, pacod-id, monitoring and backups.

With the rest of the platform

The broker is useful on its own, but it was built to sit beside the other PACOD products, and since November it does: pacod-gw, pacod-ap, pacod-cms and pacod-demo meet it on their main branches. Each keeps its own rules. A pinned model stays pinned, nothing changes behind an admin's back, and no call waits for the broker; with no broker address set, each product behaves as before.

pacod-gw carries the calls, and the broker knows what can be called, so they meet in several places, as the integration document sets out:

  • a bridge, gw-broker, offers the templates each organisation chooses, with prices from the gateway's repository and live state from its routing, each organisation announcing as itself;
  • the bridge witnesses the calls it carried on the consumers' own tickets, so the broker's reputation rests on real traffic, with time to first token, which the gateway now measures;
  • the broker's catalogue is one more source of model discovery: a model it lists becomes a proposal in the gateway's review queue, and a model linked to a broker resource carries its id in the gateway's model lists;
  • a template's pool can grow from a stored discovery query, proposed to a workspace admin or followed, and self-hosted servers of the organisation that announce themselves can join it under their lease;
  • the gateway's own /mcp serves the broker's search tools to anyone with a gateway key, and the console has a Broker page.

pacod-ap gives agents a "Platform catalogue" tool that searches the broker. It is opt-in, and its hits enter the context as other providers' listings, never as instructions. An agent whose published version says so is offered on the broker, as an OpenAI-compatible API and with its reference facts as an MCP server, and the console's Broker page shows what is offered and the reputation of the gateway's models.

pacod-cms offers a website on the broker as a dataset (its home page, llms.txt, feed and sitemap), each organisation under a provider account of its own, made with the provisioner role, so that its members' reads never count towards it. The studio's AI card shows the broker's reputation and price for the gateway's models, and the chat models the broker knows that the gateway does not offer yet.

pacod-demo runs it all in the full stack: the broker and its console, the bridge, and the credentials each product needs, made by the bootstrap and checked by make verify.

What has been tested, and its limits

  • The parts: unit and API tests for the model, the index, the reputation engine and the binary; make verify adds formatting, clippy, OpenAPI and roles drift, and the console's checks.
  • The whole: twenty scenarios run the real binary against configurations of providers and consumers — lifecycles, ranking within a kind, prices and hours, inventories, lost leases, honest and dishonest providers, bad clients, fake feedback, approval and blocking, restarts with state, organisations, roles, pacod-id down, the price feed and the witness. Load runs put many providers and consumers on one broker and measure it against targets.
  • Measured at 10,000 resources: 0.23 ms for capabilities and protocol, 0.54 ms over a time span, 1.2 ms for hardware and software, 1.8 ms for a kind sorted by price. Queries that touch every entry take up to 3.5 ms; bringing them under a millisecond is the next step.
  • Not yet: one node only (ids are ready for federation), no slot booking, no active probes or canaries, semantic search only as BM25, and no Helm chart.

The concept and the reputation model describe the design in full.

Quick start

The broker with the example catalogue, a provider and a consumer

make run-catalog
cargo run -p pacod-broker-client --bin broker-cli -- announce examples/announcement.example.yaml
cargo run -p pacod-broker-client --bin broker-cli -- --client me discover --kind model --currency EUR --sort price:input

The broker and its console in Docker

make dev-up
make console

Works with

  • pacod-id: People and service accounts sign in through pacod-id. The broker pushes the roles of authz/broker.yaml to pacod-id at every start and follows its feed of role bindings; discovery never waits for it.
  • pacod-gw: The gateway offers its organisations' templates on the broker, takes new models from it as proposals, witnesses the calls it carried, builds pools from discovery queries and serves the broker's MCP tools on its own /mcp.
  • pacod-ap: Agents search the broker with an opt-in tool, offer themselves on it with their facts as an MCP server, and the console shows the reputation and price of the gateway's models.
  • pacod-cms: The studio offers websites on the broker as datasets, each organisation as its own provider, and its AI card shows what the broker says of the gateway's models.
  • pacod-demo: Runs the broker and its console in the full stack, with the gateway's bridge, pacod-ap and the studio connected and checked by make verify.