/nats-channel:configurefrom nats-channel
Configures NATS channel settings: connection context, session name, description, sender identity, inbound trust, and permissions. Use when setting up or changing NATS channel configuration.
Ships in nats-channel. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Configures the NATS channel plugin: connection context, session name,
description, sender identity, inbound sender trust, and permission handling.
State lives in config.json in the channel's state directory.
Arguments passed: $ARGUMENTS
Resolve it first, before any other step, the way the server does:
printenv NATS_STATE_DIR.~/.claude/channels/nats.Every path below written <state dir> is that directory. Use it for every
read, write and delete. Whenever you show the config or save it, name the
file you used, and say when NATS_STATE_DIR chose its directory: a
session started with NATS_STATE_DIR reads its config there, not under
~/.claude/channels/nats.
Read state and give the user a complete picture, then ask:
Current config - read <state dir>/config.json. Show:
NATS_STATE_DIR chose its directoryClaude Code — <session name>)off or signed; default off)any or signed; default any)terminal or query) and whether permission prompts
will be relayed as NATS query chunks or handled in the local terminalAvailable contexts - run the list-contexts.sh script bundled
alongside this skill file to list all NATS CLI contexts with their
URL and description.
Ask the user - show the numbered list of available contexts and ask if they'd like to switch. Example:
<name>. Available contexts:"list - list available NATS contextsTwo separate steps - do NOT combine into one Bash call:
list-contexts.sh script bundled alongside this skill
file. It produces no stdout - it writes to a file.<state dir>/.contexts and present the
markdown table to the user.<context-name> - select a context$ARGUMENTS as the context name (trim whitespace).~/.config/nats/context/<name>.json exists. If not, show
available contexts and error.mkdir -p <state dir><state dir>/config.json if present; update/add the context field,
preserve other fields (like sessionName, permissions). Write back.session <name> - set session name overrideagents.prompt.cc.<owner>.<name>. It defaults to the working directory
basename. This command overrides it.<state dir>/config.json (or start fresh). Set sessionName field.
Write back.session clear - remove session name overrideRemove the sessionName field from <state dir>/config.json so the default
(CWD basename) is used.
owner <name> - set owner overrideagents.prompt.cc.<owner>.<name>. It defaults to the sanitized
$USER. This command overrides it — useful for service accounts or
deployment-scoped owners.<state dir>/config.json (or start fresh). Set the owner field.
Write back.SYNADIA_CLAUDE_CODE_OWNER and
SYNADIA_OWNER env vars take precedence over this config field.owner clear - remove owner overrideRemove the owner field from <state dir>/config.json so the default (sanitized
$USER) is used.
description <text> - say what this session doesdescription of the
session's registration ($SRV.INFO). It says what the session does,
what to ask it, and what it can reach or never does, in one to three
sentences. It defaults to Claude Code — <session name>.description is the text, unless it is the
word clear alone (see description clear below). Make it one line
of plain text: turn line breaks, tabs and any other control characters
into spaces, collapse repeated spaces, and trim the ends. It may have
at most 500 characters; if it has more, say so and ask the user for a
shorter one rather than cut it.<state dir>/config.json (or start fresh). Set the description
field to the text as a JSON string: inside it, write " as \" and
\ as \\, as JSON requires. Unlike the other fields this skill
writes, the description is free text, and it is written by hand. Write
back.<state dir>/config.json again and check that it is still valid JSON, with
every other field as it was and the description reading as the user
gave it. A config.json that does not parse stops the channel from
starting (invalid config.json: expected valid JSON). If it does not
parse, correct it and read it again before going on.SYNADIA_CLAUDE_CODE_DESCRIPTION
and SYNADIA_DESCRIPTION env vars take precedence over this config
field.description clear - remove the descriptionOnly when the word clear is all that follows description. A text that
only begins with it, such as description clear the cache when asked, is
a description to set.
Remove the description field from <state dir>/config.json so the default
(Claude Code — <session name>) is registered.
identity off - disable host identitySet senderIdentity to "off" in <state dir>/config.json. The channel performs no host identity lookup
and registers no identity metadata. This is the default and works with
token/password authentication and servers where user-info lookup is not
permitted. It does not change inbound sender policy.
identity signed - use the connection identitySet senderIdentity to "signed" in <state dir>/config.json. The selected NATS context must contain a
user seed (creds, nkey, or user_jwt plus user_seed). The same immutable
credential snapshot supplies both connection authentication and signing; never
ask for or add a second identity credential. Signed startup fails rather than
downgrading when the connection cannot be bound to that signer.
NATS_SENDER_IDENTITY overrides this config field. A plugin reload or Claude
Code restart is required after changing it.
trust any - accept all sender trust classesSet minSenderTrust to "any" in <state dir>/config.json. Headerless, claimed, and verified prompts are
admitted. This is the backward-compatible default and is independent of the
channel's own identity.
trust signed - require verified sendersSet minSenderTrust to "signed" in <state dir>/config.json. Headerless, claimed, malformed, stale, and
replayed requests are rejected before an acknowledgement and before Claude sees
the prompt. NATS_MIN_SENDER_TRUST overrides this config field.
permissions terminal - use terminal for permission promptsSet permissions.mode to terminal in <state dir>/config.json. Permission prompts will appear in the
Claude Code terminal session. This is the simplest option when the operator
has direct terminal access, and the default when no permissions block is set.
<state dir>/config.json (or start fresh).permissions to { "mode": "terminal" }.permissions query - relay permissions as query chunksSet permissions.mode to query in <state dir>/config.json. When Claude needs permission to use a
tool during an active NATS prompt, the plugin emits a protocol query
chunk (§7 of the Synadia Agent Protocol for NATS) on the active stream's reply
subject. The caller replies with yes/no on the query's dynamic reply
inbox, and the plugin forwards the decision back to the Claude Code
harness. The legacy value "nats" is accepted as an alias for
backward compatibility.
If Claude asks for permission while no NATS request is active, the request
is denied (there is no open stream to carry a query chunk on). Operators
who need terminal-style prompting in that case should use permissions terminal instead.
<state dir>/config.json (or start fresh).permissions to { "mode": "query" }.permissions clear - reset to defaultRemove the permissions field from <state dir>/config.json, restoring the default
behavior (terminal-mode prompts).
clear - remove configDelete <state dir>/config.json.
list-contexts.sh resolves the state directory by the same rule, from
the same environment, so .contexts lands next to config.json.config.json once at boot. Config changes need a
session restart or /reload-plugins. Say so after saving.~/.config/nats/context/<name>.json. Each
file contains url, description, creds, nkey, user, password,
token, cert, key, ca, and other fields.config.json that is not valid JSON does stop the start, whichever
field broke it. That is why the description is written escaped and the
file is read back.senderIdentity and minSenderTrust are independent. Do not enable strict
inbound policy merely because signed host identity was enabled."mode": "nats" are still accepted and treated as
the new "query" mode; they do not need to be rewritten.permissions.subject are silently ignored - query
chunks use a dynamic reply inbox per request, not a fixed subject.What SKILL.md sets; muted values are Claude Code's defaults
lownpx claudepluginhub synadia-ai/synadia-agents --plugin nats-channelOther plugins' skills for the same job