Skip to content

Console usage

Connect the board over USB, use idf.py monitor, minicom, or the web flasher Console to reach the edge_agent prompt (default app> ).

Each session uses its own history file (see Memory). Long-term memory data is managed in the shared memory/ directory.

session demo
session

ask starts a multi-turn chat with history. Add --once for a single turn that does not use session history.

ask list what you can do for me
ask --once one-off question, do not use history
cap list

The second argument must be valid JSON (mind quoting/escaping).

cap call get_current_time '{}'
cap call list_dir '{"keyword":"scripts"}'

A capability may expose many tools, which are organized into groups.

cap groups

ls recursively lists files under the DATA and SYSTEM roots. Its optional argument filters paths by keyword.

ls
ls scripts

skill lists the current Skill catalog. Add --reload to rescan the directories first.

skill
skill --reload
router --reload
router --rules
router --last
Dataflow and automation More commands and details in this doc

hwmap shows registered resources and their users; hwmap query <key> selects one resource. EXCLUSIVE permits at most one claim, while SHARED permits multiple claims. USERS is the current usage count and CLAIM is the usage credential ID. Registered idle resources show (free); an unregistered key returns an error.

hwmap
hwmap query gpio:1
hwmap query bus:i2c0
hwmap query device:display_lcd

Resources are registered at startup and claimed when Board Manager actually initializes each driver. Successful driver deinitialization releases its claim. Flash, PSRAM and console resources are outside this registry’s protection scope. Shared access reuses an existing hardware object and does not guarantee that arbitrary concurrent operations are safe.

Depending on the build configuration, edge_agent can also register lua, scheduler, router, skill, hwmap, and wifi. Type help in the Console for the full list.

For runtime Wi‑Fi / LLM edits, Web is often easier:

Web configuration Change settings and files from the LAN
Configuration NVS keys and how values apply