Skip to content

Accounts

Every alias is one Slack workspace with its own sign-in, its own cursors and its own status line. The plugin supports several at once: work, personal, and as many more as you configure.

Accounts are held by the mcp mechanism: the vendor's MCP server holds them.

Field Type Required
access read | write no
scopes array no
attribution boolean no

Sign-in, one workspace at a time

The mechanism is mcp: Slack's own MCP server holds the OAuth sign-in, and OpenCode keeps each server's sign-in apart. The plugin registers one server per alias, named slack for default and slack-<alias> for any other, so a sign-in for work can never reach personal's tools or token.

  1. Set the Slack app's client ID once: /connect → Slack app client ID, or oauth.client_id.
  2. Choose what that alias's sign-in may do in its profile: "access": "read" for Read-only, or "access": "write" for Read and write (the default). A host shows this choice at sign-in and may preselect it.
  3. Restart OpenCode so each alias's server is registered with the app's client ID and that choice's scopes.
  4. /connect → slack (or slack-work) → sign in to that workspace.

A profile may also set "attribution": false. Unless it does, every message the plugin posts through the alias ends with _Sent by an agent on your behalf._, so a colleague can see an agent sent it. The setting applies to that alias alone. The line is part of the account's own behaviour, so a grant that names the account carries it.

The client ID is global because one Slack app signs in every workspace; the OAuth grant is per server because Slack's MCP server keeps one workspace per grant. oauth.scopes and the alias's own scopes are the most a sign-in may ask for, not what it grants: a Read-only sign-in asks only the read scopes, and a Read and write sign-in asks the read and write scopes that both ceilings allow. Without a client ID no server is registered: status says so, and its next step is the one above.

Picking an account

Every method that reads or writes Slack takes account; status takes none, and Slack's pass-through tools use their alias's server rather than an account input. With one alias it may be left out. With more than one, leaving it out is ACCOUNT_REQUIRED and its next step lists the aliases; an alias the plugin does not have is ACCOUNT_UNKNOWN.

{ "account": "work", "source": "workspace", "since": "2026-11-17T00:00:00Z" }

The alias is also the first half of a permission resource (work:auth.test) and of every MCP tool's permission (slack-work_slack_search_public), so a rule for one alias cannot reach another.

Cursors

A cursor is bound to the plugin, the source, the account and the scope. A cursor issued for work is refused as CURSOR_INVALID when personal sends it, and a cursor for one scope is refused for another. Keep one cursor per source and alias.

Status

status lists each alias with ready, needs_sign_in or error, and the owner once the alias has answered: the Slack user, with orgs naming the workspace (slack-team:T…) and, on an Enterprise Grid, the organization (slack-enterprise:E…). The /slack text names the user and the workspace on each line.

A ready account may also list shortfalls: what the sign-in cannot do yet, and what would allow it. A scope the choice asks for but the sign-in does not hold is sign_in, with signIn: { "access": "write" } when Read and write is what would allow it. A scope the alias's own scopes list leaves out is settings: this deployment's options do not ask for it. A scope oauth.scopes leaves out is provider_admin: the Slack app does not offer it, and its administrator adds it from slack-app-manifest.json. A Read-only account therefore lists the writes a Read and write sign-in would add; that is how a host offers the choice.

accounts_list answers every signed-in account, keyed by its OpenCode credential id: credentialID, teamId, team, userId, user, enterpriseId when the workspace is on a grid, and active for the credential its server uses. It resolves each credential on its own, so reading the list never switches the active account. An alias with no usable sign-in is left out; status names its state and next step.