# conda-broker `conda-broker` is a conda plugin and short `cb` command for supervising long-running conda-adjacent services. It provides a user-visible broker process, a private pluggy provider API, local process supervision, logs, events, health checks, and a small `Broker` API for other plugins. Use it for tools that should not restart from scratch on every conda command: package metadata caches, package recommendation workers, telemetry clients, local LLM helpers, and other opt-in services that users need to inspect and control. ![quickstart demo](../demos/quickstart.gif) ## Install Add `conda-broker` as a PyPI dependency with Pixi: ```bash pixi add --pypi conda-broker pixi run cb --help ``` Or, in a conda installation, use `conda-pypi` from the base environment: ```bash conda activate base conda install conda-pypi conda pypi install conda-broker conda broker --help ``` ## Quick Use ```bash cb list cb enable package-cache cb start package-cache cb status cb logs package-cache --follow cb events ``` Providers expose services with the `conda_broker_services()` hook in the `conda_broker` entry point group. Users decide which services are enabled; discovery alone does not start a process. --- ::::{grid} 2 :gutter: 3 :::{grid-item-card} {octicon}`rocket` Quickstart :link: quickstart :link-type: doc Start the broker, inspect state, and stop it again. ::: :::{grid-item-card} {octicon}`mortar-board` Tutorials :link: tutorials/index :link-type: doc Build a first service provider and a package cache service. ::: :::{grid-item-card} {octicon}`tools` How-to Guides :link: how-to/index :link-type: doc Manage services, query status from plugins, inspect logs, and configure paths. ::: :::{grid-item-card} {octicon}`terminal` CLI Reference :link: reference/cli :link-type: doc Generated command-line reference for `cb` and `conda broker`. ::: :::{grid-item-card} {octicon}`code` Provider API :link: reference/provider-api :link-type: doc Service models, hookspecs, runtime fields, and health checks. ::: :::{grid-item-card} {octicon}`gear` Architecture :link: explanation/architecture :link-type: doc How the broker, registry, supervisor, IPC, logs, and provider plugins fit together. ::: :::: ```{toctree} :hidden: :caption: Getting started quickstart ``` ```{toctree} :hidden: :caption: Tutorials Register your first service Build a provider plugin Create a package cache service ``` ```{toctree} :hidden: :caption: How-to guides Manage services Query status from plugins Integrate conda plugins Inspect logs and events Configure paths Configure health checks Expose service endpoints Validate provider services ``` ```{toctree} :hidden: :caption: Reference CLI Provider API Broker API Plugin Command API JSON output Events Filesystem layout Settings Development harness ``` ```{toctree} :hidden: :caption: Explanation Architecture Process management Plugin discovery Security Prior art ```