ai agent

lifectl ai agent logs

Show the log output of a container. Reads from the container log file at ~/.lifectl/containers/<id>/agent.log. Supports log rotation (up to 5 rotated files, 10 MB each).

Synopsis

lifectl ai agent logs <name|containerId> [-n <lines>] [-f]

Arguments

ArgumentTypeRequiredDescription
<name|containerId>stringRequiredContainer ID, agent name, or alias

Options

FlagTypeDefaultDescription
-n, --linesnumber50Number of lines to show from the end of the log
-f, --followbooleanfalseStream new log lines in real time (like tail -f). Exits automatically when the container stops.

Examples

Show last 50 lines

lifectl ai agent logs my-agent

Show last 100 lines

lifectl ai agent logs my-agent -n 100

Follow log output in real time

lifectl ai agent logs my-agent -f

Follow by container ID

lifectl ai agent logs a1b2c3d4e5f6 -f