Skip to content

API Reference parrot.integrations.agentd.cli

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.integrations.agentd.cli

View source

Click commands for the Agent CLI Daemon (agentd) — Module 9.

Lazily registered into the existing core parrot LazyGroup (see packages/ai-parrot/src/parrot/cli/__init__.py) under the keys serve, attach, ask, status, install-service, mcp-serve. Function names MUST match those keys (with - -> _) since LazyGroup.get_command() resolves them via getattr(mod, cmd_name.replace("-", "_")).

Function ask

One-shot, pipe-friendly question to a running agentd daemon.

Renders Markdown when stdout is a TTY, plain text otherwise (no ANSI in pipes/CI). Exits 0 on success, 1 on error.

ask(name_or_socket: str, question: str) -> None

Parameter Type Default Description
name_or_socket str
question str

Function attach

Attach the interactive Rich console to a running agentd daemon.

attach(name_or_socket: str, no_stream: bool) -> None

Parameter Type Default Description
name_or_socket str
no_stream bool

Function install_service

Generate a systemd unit file for an agentd daemon.

install_service(config_path: str, system_mode: bool) -> None

Parameter Type Default Description
config_path str
system_mode bool

Function mcp_serve

Run an MCP stdio proxy exposing an agentd daemon to external LLMs.

mcp_serve(name_or_socket: str) -> None

Parameter Type Default Description
name_or_socket str

Function serve

Run a per-agent daemon in the foreground.

CONFIG_OR_TARGET is either a path to a YAML config file (.yaml/ .yml) or a Python module:attr target (class, instance, or sync/async factory).

serve(config_or_target: str, name: str | None, socket_path: str | None, dsn: str | None, use_redis: bool | None, log_level: str | None) -> None

Parameter Type Default Description
config_or_target str
name str | None
socket_path str | None
dsn str | None
use_redis bool | None
log_level str | None

Function status

Pretty-print a running agentd daemon's status.

status(name_or_socket: str) -> None

Parameter Type Default Description
name_or_socket str

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally