Skip to content

Reference

Permission reference ​

The parts of the permission tree, their names in the app and on the command line, and the pattern syntax of each target type. The tree is stored per workspace in permissions.json; the defaults come from the code and are never stored.

Holders ​

Holder (CLI)In the appWhoDefault
chatChat · every chatevery chat a person watchesreading allowed; targets ask
chat:<id>a chat's stripone chat's own column: timed allows from answers onlynothing
voiceVoice · spokena spoken session in the app or on a satellitea short read-only list
agent:<name>the agent's name · agentone agentoff
remote:<device>the device's name · devicea paired device that calls tools; by id or nameoff
ext:<name>the extension's name · by itselfan extension's own codewhat installing it granted
widget:<name>, watch:<name>their names · widget, watcha standing call on a schedulewhat you accepted when it was made

nocturn perms takes all of these except chat:<id>, widget: and watch:. A chat's own column holds only what its answers set for a while.

Places ​

PlaceExampleWhat it is
a built-in toolhttp_read (builtin/http_read)see Built-in tools
a plugin's toolplugin/weather/nowone tool of an installed plugin
an MCP server's toolmcp/acme/searchone tool of a connected server
a groupmcp/acmeevery tool of that server
a targethttp_read › *.home.examplea pattern under a tool with a target type
a secretsecret/opnsense-apiwho may send that credential; its hosts are fixed
a profile fieldprofile/placeswhat an extension may read of the household profile

Cells ​

CellThe callThe model
allowrunssees the tool
askwaits for a person; an agent on a schedule leaves a draftsees the tool
offis refuseddoes not see the tool

How a place resolves ​

  1. A rule at the place itself decides.
  2. Above it, a stored off or ask carries down. Allow never does: an allow above counts as ask.
  3. Otherwise the default from the code decides.
  4. Nothing anywhere is off.

When several patterns match one target, the strictest wins. A call with several targets (a mail to three people) must pass for every one. A tool with a target type needs its targets allowed: allow on the tool itself covers none, so allow * for every target.

Locks ​

A lock sits on ask or off at a place and covers everything below it. Under it, an answer can allow once but keep nothing, and allows that earlier answers left stop counting. Allows you set yourself still stand. In the app it is Always ask; on the command line --lock.

Target types ​

TypeToolsPatternCoversWider suggestion
hosthttp_read, http_write, dns_resolve, pingnas.home.example, *.home.example, *the host; *.home.example covers home.example and every subdomain. A port is part of the host: api.example.com:8443the parent domain: *.example.com
pathfile_write, file_move, file_remove, mail_attachment_savenotes/todo.md, notes/*, *a workspace path; * does not cross /, so notes/* is one levelthe folder: notes/*
addressmail_sendbob@home.example, *@home.example, *one recipient, case-insensitive; checked per recipientthe domain: *@home.example
sshssh_execadmin@fw.home.example docker ps *a user, a host and a command; a * word is any one word, and as the last word any numberthe first words plus *, or the same command on *.<parent>
globimage_generate, image_edit, profile_set*, ?any text; * crosses /none

The daemon never suggests * as a wider pattern. A host pattern takes * only as its first label: *.com is refused.

Origins ​

In the appIn nocturn perms show
Set by youset by owner
Set by your answer in "<chat>"set by answer in chat <id>
Timed until HH:MMtimed until HH:MM
Installed with <extension>set by installed with <extension>
Inherited from <place>inherited from <place>
Defaultdefault
Nothing by defaultnothing says otherwise

Files and commands ​

WhatWhere
Stored rulesnocturn-data/workspaces/<name>/permissions.json
"For a while"forAWhile in workspace.json, default 2h
Shownocturn perms show [--holder H] [--node N] [--all]
Setnocturn perms set <holder> <node> [target] allow|ask|off [--lock] [--reload]
Clearnocturn perms clear <holder> <node> [target] [--reload]
Agentsnocturn agent show|accept <name>
Devicesnocturn remote allow <device> <tool>..., nocturn remote show <device>

A running daemon reads permissions.json again at nocturn reload, or at once with --reload. Every command takes -w <workspace>; the default is main.

nocturn is open source. Example hosts and people on these pages are made up.