Skip to main content

lua devices

Manage connected devices from the command line.

Actions

Options

Examples

lua push device-trigger

Push a compiled device trigger to the server.
Device triggers are agent-side primitives that handle events fired by devices. They are compiled, versioned, and pushed like other Lua primitives (skills, webhooks, jobs).
1

Compile

The compiler detects defineDeviceTrigger() calls and bundles them.
2

Push

3

Deploy

Activates the pushed version.

lua compile

The compiler automatically detects device-related primitives in your source code:
  • defineDeviceTrigger() calls are compiled as device trigger primitives
  • defineDevice() calls define device metadata (commands and inline triggers)
No special flags are needed — lua compile handles everything.
Output includes device triggers alongside other primitives:

lua chat

Test device interactions through the chat interface:
When devices are connected, the agent has access to their commands as tools. You can test device interactions by chatting naturally:
The device must be running and connected for its tools to appear. If you do not see device tools, check that your device is online with lua devices list.

Next Steps

Quickstart

Connect your first device

Triggers

Device trigger development guide

Node.js Client

Full device client reference

Overview

Device Gateway architecture