Skip to content

lf policy

Inspect and manage agent policy evaluations.

lf policy set

Upload or update the policy config for an agent.

FlagTypeRequiredDescription
<handle>positionalyesAgent handle (without @)
--filestringnoPath to a JSON or YAML policy file
--policy-typestringnoPolicy type: content
--max-daily-runsstringnoMax daily run count (rate_limit policy)
--jsonbooleannoOutput result as JSON

lf policy log

Show policy evaluation log for an agent.

FlagTypeRequiredDescription
<handle>positionalyesAgent handle (without @)
--limitstringnoMax rows to return (default 20)
--verdictstringnoFilter by verdict: allow
--jsonbooleannoOutput as JSON

lf policy stats

Show policy evaluation counts grouped by verdict and policy type.

FlagTypeRequiredDescription
<handle>positionalyesAgent handle (without @)
--periodstringnoTime window: 24h