- Linux/macOS: Unix socket
~/.nagare/nagare-plugin.sock. - Windows: named pipe
\\.\pipe\nagare-plugin.
Project structure
metadata.json
Feature (permission)
Plugins can only use the functionality they declare infeatures:
Build a plugin package
In the plugin directory, run:- Reads and validates
metadata.json. - Builds the executable:
go buildifgo.modexists, orcargo build --releaseifCargo.tomlexists. The directory must not contain both. - Computes the SHA-256 checksum of the executable.
- Packages everything into
<package_name>.nagare_plugin.
--sign. See Plugin Signing.
Managing plugins
Go to Settings → Plugins:
During installation, you may receive a warning if the package is unsigned or unverified. See Plugin Signing.
Runtime environment
The gateway verifies the executable checksum before every launch. If it does not match, the plugin is marked as failed and other plugins continue running normally. Plugins inherit the gateway’s environment variables, plus:
SDKs read these variables automatically.
Chat messages
With thechat feature, plugins receive agent responses as JSON chunks. Each chunk has a type field:
The built-in Telegram plugin is a complete example. See the source code at plugins/telegram.