Open beta. Rin Chat is under active development. Expect rough edges, and please tell us what breaks.

Skip to content
Extension guide contents

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

PermissionAllowsInstall dialog sentenceCalls and hooks
chat.readReading the open chat: messages, the card (or every group member), variablesCan read the chats you turn it on for.rin.chat.read; the onReply and onReplyDone hooks
chat.varsReading 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.sendPosting messages into the chat under the extension's nameCan post messages in your chats.rin.chat.send; send: true quick replies in rin.ui.choices
chat.generateAsking for a swipe or a continue of the newest replyCan ask for a new reply or a continue, which may cost you money: up to 20 a day.rin.chat.generate
prompt.injectAdding text to the prompt, labeled with the extension's nameCan add instructions to what is sent to the model.rin.prompt.inject
prompt.rewriteReplacing the whole assembled prompt of a requestCan change anything that is sent to the model, including your own words.rin.prompt.rewrite; the onAssembled hook
prompt.macroDefining {{ext.<name>}} macros for cards, prompts and lorebook entriesCan fill in its own macros in what is sent to the model.rin.prompt.macro; the onMacro hook
reply.transformChanging a finished reply before it is savedCan change what the character says before you see it.rin.reply.transform; the onReply and onReplyDone hooks
render.transformChanging how a message is shown, never what is savedCan change how messages look on your screen, never what is saved.The onRender hook
model.runCompletions on a model the user picks for this extension, under a daily budgetCan 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.paramsSampler settings for the next reply, inside ranges the user setsCan adjust the model's sampler settings, within ranges you set.rin.gen.params
storageIts own key/value space in the user's encrypted vault(none)rin.storage.get, set, delete, keys
ui.settingsA settings form in Settings > Extensions(none)rin.settings.get; the manifest's settings
ui.commandSlash commands in the composer(none)rin.ui.command; the onCommand hook
ui.widgetChoice, ask, pick, form, doc and bar widgets in its own posts(none)Widget lines in rin.chat.send text; the onWidget hook
ui.panelA section in the chat sidebar(none)rin.ui.panel; the onPanel hook
ui.hudItems in the Adventure Mode stat strip(none)rin.ui.hud
ui.annotateNotes and badges under saved messages(none)rin.ui.annotate
ui.choicesQuick-reply buttons above the composer(none)rin.ui.choices
ui.notifyNotices in the chat(none)rin.ui.notify
composer.draftPutting text in the composer for the user to edit(none)rin.composer.draft
ui.styleCSS for the chat window, through the chat style sanitizerCan change how your chats look.rin.ui.style
ui.themeOffering a color theme the user may pick(none)rin.ui.theme
audio.playPlaying the sound files in its packageCan play the sounds that come with it.rin.audio.play, rin.audio.stop
voice.speakReading text aloud with the user's voice settingsCan read text aloud with your voice settings.rin.voice.speak
open.urlAsking 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.log and console.*: 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 by net and the user's network level instead.
  • rin.ui.partStyle: CSS for the extension's own panel and notes, with any of ui.widget, ui.panel, ui.hud, ui.annotate, ui.choices, ui.notify, ui.style or ui.theme in the manifest (ui.settings and ui.command do not count).
  • The hooks onChatOpen, onChatClose, onBeforeAssemble and onTest.

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.