discord-connect

discord-connect is a skill for Claude Code, Codex from AtlasOmnia/hermes-custom-pack. It costs 28 tokens per session (2,920 once invoked), scanned B, a copy of discord-connect, MIT.

A guide for connecting a Discord bot to Hermes, including creating the bot, inviting it to a server, and configuring access. Discord is a chat platform where servers contain channels and messages.

In plain words
What is it for?
Use it to create a Discord bot, configure its message-reading access, generate an invite link, and connect it to Hermes. It covers optional intents and slash-command access.
Why use it?
It explains the setup steps and the smallest listed permissions needed for the bot to read and send messages. It also clarifies the difference between installing a bot in a server and installing it for a user.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for hermes-agent. Also seen: built for hermes-agent.

Good fit Use it to create a Discord bot, configure its message-reading access, generate an invite link, and connect it to Hermes. It covers optional intents and slash-command access.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/atlasomnia/hermes-custom-pack/discord-connect
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.

Any agent
npx skills add AtlasOmnia/hermes-custom-pack --skill discord-connect
Clone the repo
git clone --depth 1 https://github.com/AtlasOmnia/hermes-custom-pack

Made for: Claude Code, Codex.

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 discord-connect

README.md
[![agentmods](https://agentmods.dev/badge/skills/atlasomnia/hermes-custom-pack/discord-connect/github.svg)](https://agentmods.dev/skills/atlasomnia/hermes-custom-pack/discord-connect)
Your own site
<a href="https://agentmods.dev/skills/atlasomnia/hermes-custom-pack/discord-connect"><img src="https://agentmods.dev/badge/skills/atlasomnia/hermes-custom-pack/discord-connect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for discord-connect

Your own site · 80×15
<a href="https://agentmods.dev/skills/atlasomnia/hermes-custom-pack/discord-connect"><img src="https://agentmods.dev/badge/skills/atlasomnia/hermes-custom-pack/discord-connect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,920 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00028 $0.02920
Opus 5 $0.00014 $0.01460
Sonnet 5 $0.00006 $0.00584
Haiku 4.5 $0.00003 $0.00292

Measured 12d ago against content hash 75569062dd3c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade B, and why

discord-connect scanned grade B with 1 finding 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 12d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- **Gateway dies on logout** — enable linger: `sudo loginctl enable-linger $USER`.
Origin

This is a copy

100% identical to discord-connect — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/discord-connect/SKILL.md · 199 lines

How it starts

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

Discord Connection Guide

Quick Setup Flow

  1. Create a bot application — go to Discord Developer Portal, create a new application (or use an existing one).
  2. Generate a bot token — under Bot → Reset Token, copy the token.
  3. Enable intents — in Bot settings:
  • Message Content Intent (required for reading messages)
  • Presence Intent (optional, for online status)
  1. Generate OAuth2 invite URL — use OAuth2 URL Generator and paste into browser.
  2. Invite to server — pick your guild from the dropdown.
  3. Configure in Hermeshermes gateway setup or manually configure via config.yaml.

Bot Permissions (Minimal)

For Hermes, you only need:

  • Send Messages (0x2)
  • Read Message History (0x100000)
  • View Channel (0x400)
  • Use External Emojis (0x1000000)

Nice to have: Embed Links, Add Reactions, Send Text-to-Speech, Manage Messages.

Shortcut: set permissions to 3558496 ("Moderator" preset).

OAuth2 Scopes

  • bot — essential, lets you invite it to servers
  • applications.commands — enables slash commands (useful but not strictly required)

Guild Install vs User Install

Guild install is the one that puts the bot into your servers. User install is for apps, not bots. When generating the OAuth2 link, make sure guild is in the scope (usually default).

Gotchas

  • Private applications cannot have a default authorization link. Generate manually via OAuth2 URL Generator.
  • Message Content Intent must be enabled — without it, the bot reads messages as empty strings and appears silent.
  • Presence Intent — optional but useful for seeing when the bot is online/offline.
  • Prefer the exact invite URL generated by Discord Developer Portal over improvising OAuth / Code Grant explanations from memory. If the generated link fails, inspect the portal settings rather than guessing about URL semantics.
  • Always verify prior state before assuming. Don't assume a server exists, permissions are set, or the bot is already invited — ask first.
  • Discord connected is not the same as Discord usable. A successful gateway login only proves the token works. Separately verify that the bot is invited to a guild, can see a text channel, slash commands appear there, and Hermes discovered the channel.
  • After adding the bot to a new server, restart the Hermes gateway so channel_directory.json rebuilds against current guild visibility.
  • If send_message(action='list') still shows no Discord targets, inspect ~/.hermes/channel_directory.json. If it contains "discord": [] while the bot is present in the server, treat it as a guild/channel discovery or visibility problem, not an auth failure.

Read the full file on GitHub · 199 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. 12d ago First seen · 199 lines · 28 tokens per session scan B 75569062dd3c

Subscribe to this mod's changes

discord-connect is a skill published in the GitHub repository AtlasOmnia/hermes-custom-pack (56 stars, last pushed 28d ago), licensed MIT. It adds 28 tokens to every session and 2,920 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). It is 100% identical to discord-connect, differing in 0 lines, and is treated as a copy.