MAX messenger CLI permissions for AI agents
Control MAX CLI access with per-command deny, readonly, ask and allow rules; understand CLI confirmations and MCP write behavior.
Choose which actions your agent may perform for this account or bot. Check the access level, recipient restrictions and confirmation behavior before enabling changes.
Read this page before letting an AI agent, a script or another person use your MAX account through max. For each profile, you can choose which actions are read-only, which need your approval and which can run without asking. You will learn to make a read-only profile, allow an individual action such as sending, and understand the checks that still apply.
Terms used below:
- Profile — named settings for one account or bot, such as
work(profiles and bots). - Permission key — a command or command-group name, such as
messagesormessages.send. A longer key is more specific. - Access level — what happens when a command runs:
deny,readonly,askorallow.
Start with reading and allow changes as needed.
Choose an access level
| Level | Behavior |
|---|---|
deny | The action is forbidden, including reading. |
readonly | Reading is allowed; changes are forbidden. |
ask | Changes prompt for confirmation in the terminal. |
allow | The action can run without another confirmation. |
A denial means you need to check the action and settings. It does not indicate a connection problem. Do not ask the agent to remove the restriction just to finish the task.
Allow one action
max work config set permissions.messages.send askReplace work with your profile name. To allow reading messages and forbid changes by default:
max work config set permissions.messages readonlyA more specific key takes precedence: permissions.messages.send ask keeps the confirmation prompt before sending in the terminal and allows sending through MCP. To forbid sending, set this key to readonly. Check other exceptions with config show.
These permissions cover messages. Reactions and chat administration have separate keys. See the permissions reference for all keys and a read-only profile example.
Bot permissions
Bot permissions and limits are set in the bot section. To require confirmation before sending in the terminal:
max support config set permissions.bot.messages.send ask --bot
max support config set sends_per_hour 30 --botLimit recipients and repeated sends
The recipient list restricts the chats a profile can send to. The hourly limit helps stop a sending loop. These checks also apply to an allowed command. See protection against sending to the wrong place for the controls.
Temporarily change MCP server permissions
Add --permission messages.send=deny when starting the server to forbid that process to send messages. Saved settings are unchanged. The flag only tightens permissions: a server with an override that would loosen the profile's level does not start. Through MCP, ask does not require a server confirmation form: the application manages its own confirmations and may allow a call without another prompt. To forbid changes, use deny or readonly. Browser setup explains the full connection process.
Limitations and detailed rules
An agent with access to configuration files or an unrestricted terminal can change these permissions. Read security before granting that access. The permissions reference explains nested permissions and exact command keys.