Registry
List recipes and manage the local recipe registry
The registry command lists recipes and manages the local recipe registry server.
An agent selects a recipe from the same local registry the CLI enumerates:
from praisonaiagents import Agent
from praisonai.recipe.registry import get_registry
registry = get_registry()
recipes = registry.list_recipes(tags=["support"])
agent = Agent(
name="Support Bot",
instructions=f"Load {recipes[0]['name']} and handle the ticket.",
)
agent.start("Customer needs a refund for order #4821.")# The user (or an operator) discovers what's available from the CLI.
praisonai registry list --tags support --jsonQuick Start
- List recipes
List every recipe in the local registry (
~/.praison/registry):bash praisonai registry listAn empty registry prints
No recipes found in registry: <path>and still exits0. - Check server status
Confirm a running registry server is healthy:
bash praisonai registry status
Commands
list
List recipes in the local recipe registry.
| Option | Type | Default | Description |
|---|---|---|---|
--dir PATH | string | ~/.praison/registry | Registry directory |
--tags a,b | comma-separated | None (no filter) | Filter recipes by tags (any-match) |
--json | flag | False | Output in JSON format |
Examples:
# List all local recipes
praisonai registry list
# Filter by tags (matches audio OR video)
praisonai registry list --tags audio,video
# JSON output for scripts
praisonai registry list --json
# List from a custom registry directory
praisonai registry list --dir /shared/recipesJSON output uses a consistent envelope:
{ "ok": true, "registry_path": "...", "count": 2, "recipes": [] }serve
Start a local HTTP registry server.
| Option | Type | Default | Description |
|---|---|---|---|
--port, -p | int | 7777 | Port to bind to |
--host | string | 127.0.0.1 | Host to bind to |
--dir | string | ~/.praison/registry | Registry directory |
--token | string | None | Require token for write operations |
--read-only | flag | False | Disable all write operations |
--json | flag | False | Print startup message as JSON |
Examples:
# Deprecated form (prints a warning, then serves)
praisonai registry serve --port 7777
# Canonical form — migrate to this
praisonai serve registry --port 7777status
Check the health of a running registry server.
| Option | Type | Default | Description |
|---|---|---|---|
--registry URL | string | http://localhost:7777 | Registry URL to check |
--json | flag | False | Output in JSON format |
Examples:
# Check the default registry
praisonai registry status
# Check a specific registry
praisonai registry status --registry http://localhost:7777
# JSON output
praisonai registry status --jsonExit Codes
| Code | Meaning |
|---|---|
0 | Success (includes empty registry) |
1 | General error (exception during list) |
2 | Validation error (unknown subcommand) |
9 | Auth error (reserved) |
10 | Network error (cannot connect — used by status) |
See Also
Publish, pull, and list recipes from local or remote registries
Recipe Registry ServerDeploy the canonical praisonai serve registry HTTP server
HTTP API endpoints exposed by the registry server
Recipe Registry (Python)Publish and pull recipes from the Agent’s perspective