Permissions
The manifest's permissions list every ability the extension uses. A call whose permission is not in the
manifest is refused with denied. An unknown name refuses the package at install.
The user sees the permissions twice: in the install dialog, and again when turning the extension on for a character or a chat. Each permission that can affect the user's chats, money or privacy has one sentence in those dialogs, quoted below exactly. The others are drawn by the app in plain view (a panel, a command, a notice) and show no sentence. An extension that asks for nothing with a sentence shows "Asks for nothing that needs your approval."
What the user approves stays approved
When the user turns an extension on, Rin Chat records the permissions, the net hosts and the author key of
that version. An update that asks for more permissions or hosts, or is signed by another key, does not run
where it was turned on until the user turns it on again there ("This version asks for more than you approved,
so it is off until you turn it on again."). An update that asks for fewer keeps running.
The table
| Permission | Allows | Install dialog sentence | Calls and hooks |
|---|---|---|---|
chat.read | Reading the open chat: messages, the card (or every group member), variables | Can read the chats you turn it on for. | rin.chat.read; the onReply and onReplyDone hooks |
chat.vars | Reading and writing the chat's variables (the stats sheet) | Can change the chat's stats and variables. | rin.chat.vars.get, rin.chat.vars.set |
chat.send | Posting messages into the chat under the extension's name | Can post messages in your chats. | rin.chat.send; send: true quick replies in rin.ui.choices |
chat.generate | Asking for a swipe or a continue of the newest reply | Can ask for a new reply or a continue, which may cost you money: up to 20 a day. | rin.chat.generate |
prompt.inject | Adding text to the prompt, labeled with the extension's name | Can add instructions to what is sent to the model. | rin.prompt.inject |
prompt.rewrite | Replacing the whole assembled prompt of a request | Can change anything that is sent to the model, including your own words. | rin.prompt.rewrite; the onAssembled hook |
prompt.macro | Defining {{ext.<name>}} macros for cards, prompts and lorebook entries | Can fill in its own macros in what is sent to the model. | rin.prompt.macro; the onMacro hook |
reply.transform | Changing a finished reply before it is saved | Can change what the character says before you see it. | rin.reply.transform; the onReply and onReplyDone hooks |
render.transform | Changing how a message is shown, never what is saved | Can change how messages look on your screen, never what is saved. | The onRender hook |
model.run | Completions on a model the user picks for this extension, under a daily budget | Can use your AI provider, which may cost you money: up to 20 requests a day. | rin.model.run; 60-second deadlines for user-started hooks |
gen.params | Sampler settings for the next reply, inside ranges the user sets | Can adjust the model's sampler settings, within ranges you set. | rin.gen.params |
storage | Its own key/value space in the user's encrypted vault | (none) | rin.storage.get, set, delete, keys |
ui.settings | A settings form in Settings > Extensions | (none) | rin.settings.get; the manifest's settings |
ui.command | Slash commands in the composer | (none) | rin.ui.command; the onCommand hook |
ui.widget | Choice, ask, pick, form, doc and bar widgets in its own posts | (none) | Widget lines in rin.chat.send text; the onWidget hook |
ui.panel | A section in the chat sidebar | (none) | rin.ui.panel; the onPanel hook |
ui.hud | Items in the Adventure Mode stat strip | (none) | rin.ui.hud |
ui.annotate | Notes and badges under saved messages | (none) | rin.ui.annotate |
ui.choices | Quick-reply buttons above the composer | (none) | rin.ui.choices |
ui.notify | Notices in the chat | (none) | rin.ui.notify |
composer.draft | Putting text in the composer for the user to edit | (none) | rin.composer.draft |
ui.style | CSS for the chat window, through the chat style sanitizer | Can change how your chats look. | rin.ui.style |
ui.theme | Offering a color theme the user may pick | (none) | rin.ui.theme |
audio.play | Playing the sound files in its package | Can play the sounds that come with it. | rin.audio.play, rin.audio.stop |
voice.speak | Reading text aloud with the user's voice settings | Can read text aloud with your voice settings. | rin.voice.speak |
open.url | Asking the user to open a link in their browser | (none) | rin.open.url |
The "20" in the model.run and chat.generate sentences is the default daily request budget; the user can
change it per extension.
Network: the net field, not a permission
Network access has no permission name. The manifest's net hosts are the request, and the install dialog
says: "Wants to send data to these sites: <hosts>. You will see each request first." Nothing is allowed on
install: every extension starts Blocked, and the user chooses its level on its page in Settings >
Extensions. See Network.
Needs no permission
rin.logandconsole.*: the extension's own log.rin.dice.roll,rin.time.now,rin.text.tokens: app services that read nothing of the chat.rin.net.request: governed bynetand the user's network level instead.rin.ui.partStyle: CSS for the extension's own panel and notes, with any ofui.widget,ui.panel,ui.hud,ui.annotate,ui.choices,ui.notify,ui.styleorui.themein the manifest (ui.settingsandui.commanddo not count).- The hooks
onChatOpen,onChatClose,onBeforeAssembleandonTest.
Ask for what you use
AICC's review compares the permissions and hosts an extension asks for with what its code calls. A permission the code never uses, or a call the manifest does not cover, fails that check. Fewer permissions also mean a shorter install dialog, which users read.