Overview
lua triggers manages agent triggers: URLs that start an agent turn when an external service POSTs to them. There are two flavours, managed with the same command:
- URL triggers — created entirely from the CLI with
lua triggers create, no code required. Paste the printed URL into any service that can send a webhook; every delivery becomes an agent turn carrying the payload (optionally prefixed with an instruction you set at creation time). - SDK triggers — defined in code with
defineTriggerand deployed vialua push. These add declarativeverify/filter/transformshaping in front of the agent turn.
For defining SDK triggers in code, see the LuaTrigger API. Looking for integration triggers (Linear, HubSpot, and other connected apps)? Those are managed with
lua integrations webhooks.Subcommands
Running
lua triggers with no action opens an interactive menu covering all of the above.
Options
The Paste-Anywhere URL Workflow
Create a trigger, paste its URL somewhere, and every POST to it becomes an agent turn:curl, another agent. The agent receives the request body as its message, prefixed with [Trigger: <name>] and the instruction if you set one.
Examples
Output Shapes
list
Each trigger is shown with its type — URL (a plain paste-anywhere trigger) or SDK (a deployeddefineTrigger version owns the pipeline) — plus its status, URL, and creation date. --json emits the same fields as machine-readable JSON.
logs
Executions are listed newest first, with a status per delivery:rotate-token
Prints the new URL and confirms the old one is dead:SDK Triggers and lua push
SDK triggers are not created with this command — they are defined in code and deployed with lua push, which compiles each trigger, uploads a new version, and records it in lua.skill.yaml:
lua triggers list alongside URL triggers, and logs, activate/deactivate, and rotate-token all work the same way.
Common Workflow
Related
- LuaTrigger API — defining SDK triggers with verify/filter/transform
- LuaWebhook API — when you need full request/response control
- Webhooks Command — managing webhook primitives
- Integrations Command — integration triggers for connected apps (Linear, HubSpot, …)
- Env Command — secrets for verify slots

