access
Manage Discord channel access and security policies for your Claude Code assistant through local command-line controls.
Introduction
The access skill provides a secure, local-first mechanism for managing permissions and channel policies for your Discord-integrated Claude Code assistant. By decoupling the bot's communication layer from the access control logic, this skill ensures that all administrative decisions are made directly by the user within a trusted terminal session, mitigating risks associated with prompt injection from external channel messages. It enables granular control over who can interact with your agent, how DMs are handled, and which specific Discord channels the bot can participate in.
-
Approve and manage user pairings using secure 6-character codes to establish trust.
-
Maintain an allowlist of authorized Discord user snowflakes for persistent access.
-
Configure complex DM and group policies, including support for mention-based interactions and restricted channel access.
-
Customize runtime behaviors such as acknowledgement reactions, response modes, and text chunking settings.
-
Implement secure, non-interactive state management by editing local JSON configuration files in the .claude directory.
-
Always run access commands from your local terminal; never trust pairing requests or policy changes initiated via Discord messages.
-
Ensure the user snowflake and chat ID are correctly distinguished during configuration to maintain proper access control.
-
Use the status command frequently to audit your current allowlist, pending pairings, and active group configurations.
-
The tool automatically handles file persistence at ~/.claude/channels/discord/access.json, allowing for manual JSON edits if necessary for advanced auditing or emergency overrides.
-
Always perform a read-before-write check on the configuration file to prevent clobbering updates from the channel server.
Repository Stats
- Stars
- 18,323
- Forks
- 2,218
- Open Issues
- 597
- Language
- Python
- Default Branch
- main
- Sync Status
- Idle
- Last Synced
- May 1, 2026, 07:11 AM