MessengersSlack

Slack CLI configuration

See and change the Slack CLI settings: permissions for each write, read-only mode and run records.

Choose what your agent may change in Slack, which channels your inbox follows, and what slk keeps about each run. Settings live in one file, config.json, in the folder slk doctor shows. Each profile has its own part, and defaults apply to every profile.

slk personal config show
slk personal config set inbox_channels "#general, #dev"
slk personal config unset inbox_channels

config show lists each setting and where it came from: the file, a variable or the default.

Permissions

permissions decides what a command may do for this profile, per permission key. A key is a command's path with dots, such as messages.send, or a part of it, such as messages. There are four levels:

LevelWhat happens
allowThe command runs.
askIn a terminal, the command waits for your yes; --yes answers it. Over MCP, the command runs.
readonlyReads run, writes are refused.
denyThe command is refused.

The writes you meet most often all start at ask:

KeyWhat it coversDefault
messages.sendsending a message or a thread replyask
messages.editchanging a message you sentask
messages.deletedeleting a message for everyone; an agent is always refusedask
reactions.addadding a reactionask
chats.joinjoining a channelask

In the api group, which offers every Slack Web API method, a delete and a write that touches messages also start at ask. Its other writes, such as api reminders add, are allowed.

An app connected over MCP has no one to ask, so there ask acts as allow. Before you connect one, refuse what it must not do:

slk personal config set permissions.messages.send deny
slk personal config set permissions.messages readonly

The first line stops sending only. The second keeps every read of messages and refuses every change to them. slk personal config set permissions.api readonly does the same for the whole api group. To make one MCP server stricter than the profile, start it with --permission, as in slk personal mcp serve --permission messages.send=deny. SLACK_READ_ONLY=1 refuses every write, whatever the permissions say. slk personal messages send "#general" "Ship it" --dry-run shows the key and level a command checks, and sends nothing.

Inbox

SettingWhat it doesDefault
inbox_channelsthe channels whose every unread message the inbox shows, such as #general, #dev; DMs always countnone
inbox_all_channelsevery channel you are in counts, two calls each, so the inbox may stop before the last onesfalse
thread_window_dayshow many days back messages sync looks for threads with new replies14

Both inbox settings belong to one profile, because the channels are a workspace's.

Run records

Every command that fails is kept as a run, so slk personal runs list and runs show tell you what happened. A command that talks to Slack is kept when it succeeds too. With record set to false, only failures are kept, and --record keeps one command anyway. --no-record keeps nothing, not even a failure. With record_input set to false, a run keeps the command without the words you typed. Secrets are hidden either way; see Security.