hub-setup-slack

hub-setup-slack is a command for coding agents from fiale-plus/fiale-claude-plugins. It costs 9 tokens per session (548 once invoked), scanned A, original, MIT.

A setup command that connects the coding-agent environment to Slack through an existing browser session. Slack is a team messaging service used for channels and direct conversations.

In plain words
What is it for?
Use it to configure Slack access, verify the connection, list channels, search messages, and work with Slack through the available API functions.
Why use it?
It walks through obtaining and storing the browser credentials needed to read and post Slack messages without creating a separate Slack app.

Command

Part of the claude-status-hub plugin — 16 commands shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/fiale-plus/fiale-claude-plugins/hub-setup-slack
Clone the repo
git clone --depth 1 https://github.com/fiale-plus/fiale-claude-plugins

Or install claude-status-hub, the plugin that ships this one along with the rest of its 16 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hub-setup-slack

README.md
[![agentmods](https://agentmods.dev/badge/commands/fiale-plus/fiale-claude-plugins/hub-setup-slack.svg)](https://agentmods.dev/commands/fiale-plus/fiale-claude-plugins/hub-setup-slack)
Your own site
<a href="https://agentmods.dev/commands/fiale-plus/fiale-claude-plugins/hub-setup-slack"><img src="https://agentmods.dev/badge/commands/fiale-plus/fiale-claude-plugins/hub-setup-slack.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 548 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00009 $0.00548
Opus 5 $0.00005 $0.00274
Sonnet 5 $0.00002 $0.00110
Haiku 4.5 $0.00001 $0.00055

Measured 5d ago against content hash f699c83233f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

hub-setup-slack scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/claude-status-hub/commands/hub-setup-slack.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/hub-setup-slack

Set up Slack API integration using browser session tokens.

Usage

/hub-setup-slack

When to Use

Use this command when:

  • You want to read Slack messages from Claude Code
  • You want to post messages to Slack channels
  • You want to search Slack messages programmatically
  • You don't want to create a Slack App (uses browser session instead)

What It Does

This command walks you through:

  1. Extracting credentials from your browser (d cookie + xoxc token)
  2. Storing credentials securely in ~/.claude/
  3. Verifying the connection works

Prerequisites

  • A Slack workspace you have access to
  • Slack open in your browser (for credential extraction)
  • Access to browser DevTools

Credentials Required

Credential Where to Find Lifespan
Workspace URL Browser address bar Permanent
d cookie DevTools > Application > Cookies ~1 year
xoxc token DevTools > Network > Request Headers Hours to days

The setup saves all credentials. When the xoxc token expires, it can be automatically refreshed using the d cookie.

After Setup

Once configured, you can use the Slack API functions:

# List channels
slack_list_channels()

# Read messages
slack_get_messages("C123ABC", 20)

# Post a message
slack_post_message("C123ABC", "Hello from Claude!")

# Reply to a thread
slack_post_message("C123ABC", "Thread reply", "1705344000.000100")

# Search messages
slack_search("project update from:@pavel")

Security Notes

  • Credentials give full access to your Slack account (as you)
  • Stored in ~/.claude/ with 600 permissions (owner-only)
  • Never share your credentials or commit them to git
  • Run /hub-setup-slack again if credentials expire

Refreshing Credentials

If you get authentication errors:

  1. Log into Slack in your browser
  2. Run /hub-setup-slack to extract fresh credentials

The d cookie rarely expires (~1 year), but the xoxc token may expire more frequently. The tool tries to auto-refresh the xoxc token, but if that fails, you'll need to re-run setup.

Read the full file on GitHub · 86 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 86 lines · 9 tokens per session scan A f699c83233f4

Subscribe to this mod's changes

hub-setup-slack is a command published in the GitHub repository fiale-plus/fiale-claude-plugins (4 stars, last pushed 4mo ago), licensed MIT. It adds 9 tokens to every session and 548 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.