
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
@agentkitai/agentgate-discord
Advanced tools
Discord bot integration for AgentGate - receive approval requests and make decisions directly from Discord.
Discord bot integration for AgentGate - receive approval requests and make decisions directly from Discord.
pnpm add @agentkitai/agentgate-discord
# or
npm install @agentkitai/agentgate-discord
Set the following environment variables:
| Variable | Required | Description |
|---|---|---|
DISCORD_BOT_TOKEN | ✅ | Discord bot token (from Discord Developer Portal) |
AGENTGATE_URL | ❌ | AgentGate server URL (default: http://localhost:3000) |
DISCORD_CHANNEL_ID | ❌ | Default channel ID for notifications |
DISCORD_INCLUDE_LINKS | ❌ | Include one-click links (default: true) |
Run the bot as a standalone service:
# With environment variables
DISCORD_BOT_TOKEN=your-token AGENTGATE_URL=http://localhost:3000 pnpm start
# Or with .env file
pnpm start
import { createDiscordBot } from '@agentkitai/agentgate-discord';
const bot = createDiscordBot({
token: process.env.DISCORD_BOT_TOKEN!,
agentgateUrl: 'http://localhost:3000',
defaultChannelId: '123456789012345678',
includeDecisionLinks: true,
});
await bot.start();
// Send an approval request to a specific channel
const messageId = await bot.sendApprovalRequest(
{
id: 'req-123',
action: 'delete_file',
params: { path: '/important/file.txt' },
context: { user: 'agent-1' },
urgency: 'high',
status: 'pending',
createdAt: new Date(),
updatedAt: new Date(),
},
'987654321098765432'
);
// Graceful shutdown
process.on('SIGINT', () => bot.stop());
bot, applications.commandsSend Messages, Embed Links, Use External EmojisThe bot sends rich embeds with:
Interactive buttons allow users to approve or deny directly from Discord.
The bot integrates with AgentGate's notification system. Configure the server to send notifications to Discord:
# Server environment variables
DISCORD_BOT_TOKEN=your-token
DISCORD_DEFAULT_CHANNEL=123456789012345678
CHANNEL_ROUTES='[{"channel":"discord","target":"123456789012345678","enabled":true}]'
createDiscordBot(options)Creates a new Discord bot instance.
Options:
token (string, required): Discord bot tokenagentgateUrl (string, required): AgentGate server URLdefaultChannelId (string, optional): Default channel for notificationsincludeDecisionLinks (boolean, optional): Include one-click links (default: true)Returns: DiscordBot instance
DiscordBotclient: The underlying Discord.js Clientstart(): Start the botstop(): Stop the botsendApprovalRequest(request, channelId, options?): Send an approval requestimport {
buildApprovalEmbed,
buildDecidedEmbed,
buildActionRow,
getUrgencyEmoji,
getUrgencyColor,
EMBED_COLORS,
} from '@agentkitai/agentgate-discord';
MIT
FAQs
Discord bot integration for AgentGate - receive approval requests and make decisions directly from Discord.
We found that @agentkitai/agentgate-discord demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.