Get an API key
Permissions

The ten categories

Every tool carries a category, and the category — not the tool — decides what a mode allows. Some tools compute theirs from their arguments.

10 categories4 modes3 never pre-approved
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

The engine asks onPermission only when the mode does not already answer. Three categories never reach that shortcut: nothing can take back a sent message, a published page or a spent credit.

Categoryaskautoplanfull
readallowedallowedallowedallowed
memoryallowedallowedallowedallowed
taskallowedallowedallowedallowed
writeaskedallowedrefusedallowed
execaskedaskedrefusedallowed
storageaskedaskedrefusedallowed
dnsaskedaskedrefusedallowed
sendaskedaskedrefusedasked
publishaskedaskedrefusedasked
moneyaskedaskedrefusedasked

What “always” means, and where it is kept

  • storage — remembered per storage, for the session only.
  • dns — remembered per domain, never globally.
  • exec — a bash command is remembered on disk, in ~/.iagenify/permissions.json; a terminal kill only for the session.
  • send, publish, money — there is no always. Every call is asked.

Categories computed from arguments

terminal is read for list and output, exec for kill. The service tools pick theirs from their action. The engine evaluates this everywhere the category matters: the permission, the tool_start event, and whether the call may run in parallel.

const agent = api.agents.create({
  runtime: "local",
  machine: pc,
  model: "gemini-3.5-flash",
  mode: "ask",
  onPermission: async ({ tool, args, category }) => {
    if (category === "send") return "deny";
    return "once";                      // "once" | "always" | "deny"
  },
});
def on_permission(request):
    if request["category"] == "send":
        return "deny"
    return "once"                      # "once" | "always" | "deny"

agent = api.agents.create(
    runtime="local",
    machine=pc,
    model="gemini-3.5-flash",
    mode="ask",
    on_permission=on_permission,
)