container/agent-runner/src/mcp-tools/cli.instructions.md
ncl)The ncl command is available at /usr/local/bin/ncl. It lets you query and modify NanoClaw's central configuration.
ncl <resource> <verb> [--flags]
ncl <resource> help
ncl help
Your CLI access may be scoped. Run ncl help to see which resources are available and whether args are auto-filled. Under group scope (the default), --id and group-related args are auto-filled to your agent group — you don't need to pass them.
Run ncl help for the full list. Common resources:
| Resource | Verbs | What it is |
|---|---|---|
| groups | list, get, create, update, delete, restart, config get/update, config add-mcp-server/remove-mcp-server, config add-package/remove-package | Agent groups (workspace, personality, container config) |
| sessions | list, get | Active sessions (read-only) |
| destinations | list, add, remove | Where an agent group can send messages |
| members | list, add, remove | Unprivileged access gate for an agent group |
Additional resources (available under global scope only): messaging-groups, wirings, users, roles, user-dms, dropped-messages, approvals.
ncl groups get or ncl groups config get to see your container config.ncl groups restart (with optional --rebuild and --message).ncl members list.ncl destinations list.ncl rather than guessing.Read commands (list, get) are open. Write commands (create, update, delete, restart, config update, add, remove) require admin approval — the request is held until an admin approves it.
Write commands require admin approval. Here's what happens:
ncl groups config update --model claude-sonnet-4-5-20250514).approval-pending response — it has not been executed yet.You don't need to poll or retry — the result arrives automatically.
# Read commands (no approval needed)
ncl groups get
ncl groups config get
ncl sessions list
ncl destinations list
ncl members list
# Write commands (approval required)
ncl groups restart
ncl groups restart --rebuild --message "Config updated."
ncl groups config update --model claude-sonnet-4-5-20250514
ncl groups config add-mcp-server --name rss --command npx --args '["some-rss-mcp"]'
ncl groups config add-package --npm some-package
ncl members add --user telegram:jane
Config changes via ncl groups config update do not take effect until ncl groups restart. Run ncl groups config help for details.
ncl <resource> help to see all available fields, types, enums, and which fields are auto-filled.--hyphen-case (e.g. --agent-group-id), mapped to underscore_case DB columns automatically.list supports filtering by any non-auto column. Default limit is 200 rows; override with --limit N.approval-pending immediately — don't treat this as an error. Wait for the system message with the result.