Slack is a bundled OAuth2 provider in authsome. Workspace channels and chat write. Add more scopes throughDocumentation Index
Fetch the complete documentation index at: https://authsome.agentr.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
--scopes.
At a glance
| Provider name | slack |
| Display name | Slack |
| Auth type | OAuth2 |
| Default flow | pkce, PKCE browser flow |
| PKCE supported | No |
| Device code supported | No |
| DCR supported | No |
| Default scopes | channels:read, chat:write |
| Proxy host | slack.com |
Env var (access_token) | SLACK_ACCESS_TOKEN |
Env var (refresh_token) | SLACK_REFRESH_TOKEN |
Prerequisites
You need to register an OAuth app with Slack once. Create a Slack app in the API portal. Under OAuth & Permissions, addhttp://127.0.0.1:7998/auth/callback/oauth as a redirect URL.
The redirect URI must be:
Slack’s OAuth v2 endpoint does not require PKCE. Authsome runs the standard authorization-code flow.
Log in
http://127.0.0.1:7998 to collect your client_id and client_secret. They are encrypted under your profile and reused on every subsequent login. A second browser window then opens to https://slack.com/oauth/v2/authorize for the authorization step.
Verify:
Custom scopes
The bundled definition requestschannels:read, chat:write. Override at login time:
uvx authsome get slack.
Multiple accounts
Pass--connection <name> on login and on every read command to keep two or more accounts on the same provider side by side. See Multiple connections per provider for the full pattern.
Use the token
Run the agent under the proxy. The library tab is for embedding authsome inside a larger Python orchestrator.SLACK_ACCESS_TOKEN=authsome-proxy-managed in the child’s environment and injects the real token into outbound requests to slack.com. The child process never sees the actual value. Refresh tokens are never exported.
Override the bundled definition
What’s next
Run agents with the proxy
Inject the access token into outbound requests without exposing it.
Multiple connections per provider
Keep two or more accounts on the same provider side by side.
Provider schema
Every field in a provider definition.
OAuth providers
All bundled OAuth providers.