About OpenAI Chat
AI assistant plugin for Rust game servers using the OpenAI Responses API. Players can ask questions in-game via a chat command (default: !ai) and receive AI-generated responses. Supports conversation context, a custom knowledge base for server-specific documents, multi-tier rate limiting, and optional integrations like Discord webhooks and BetterChat.
|
Features
Chat command trigger |
Chat / Bot
Configurable command prefix |
Rate Limits
Per-player cooldowns |
Integrations
Discord webhook logging |
Knowledge base made easy
Use the Rust Server Knowledge Generator to build knowledge files for your server. Fill out a form (server info, wipe schedule, rules, commands, FAQ, etc.), use the AI Assistant or Quick Server Lookup (BattleMetrics), then either deploy to an OpenAI vector store from the site or download a .zip and sync from your server with openai.kb sync. See How It Works for the full guide.
Commands and plugins
In the Commands form section you can search and add plugins (from the default catalog or your own), add chat commands, and contribute commands for plugins. These feed into commands.txt for the knowledge base.
{ "Config Version": "2.2.0", "API Settings": { "API Key": "", "API URL": "https://api.openai.com/v1/responses", "Model": "gpt-5-nano", "Max Output Tokens (0 = model default)": 2048, "Reasoning Effort (none/minimal/low/medium/high)": "low", "Enable Web Search": false, "Retry Attempts": 3 }, "Rate Limits": { "Cooldown Seconds": 10, "Max Requests Per Minute": 30, "Daily Token Budget": 500000, "Per Player Daily Token Limit": 15000, "Persist Usage Data": true }, "Chat Settings": { "Command Prefix": "/ai", "Response Prefix": "[AI]", "Response Color": "#55AAFF", "Message Color": "#FFFFFF", "Font Size": 12, "Max Message Chunk Size": 450, "Strip URLs from Links": true }, "Discord Integration": { "Enabled": false, "Webhook URL": "" }, "Security Settings": { "Max Input Length": 500, "Filter Injection Attempts": true }, "Prompt Settings": { "System Prompt": "You are a chat bot for a Rust game server. You answer players questions. Do not discuss topics outside this server or the game Rust.", "Include Server Info": true, "Include Player Names": true, "Custom Instructions": [ "You have no access to live game data (locations, inventories, maps, commands). If asked, say you can't access that.", "Keep responses concise. Answer from your knowledge and any provided documents only." ] }, "Knowledge Base": { "Enable Knowledge Base": true, "Vector Store ID": "", "Knowledge Subfolder": "OpenAI/knowledge", "Auto Create Vector Store": false }, "Global Chat Bot": { "Enabled": false, "Bot Name": "Assistant", "Response Prefix": "[Bot]", "Response Color": "#55AAFF", "Cooldown Seconds": 5, "Trigger Patterns": [ "?" ], "Only Respond in Team Chat": false, "Monitor Team Chat": false, "Personality Preset": "helpful", "Custom System Prompt": "", "Daily Token Budget (0 = shared with main)": 0, "Use Better Chat": false, "Better Chat Title": "[AI]", "Better Chat Title Color": "#55AAFF", "Enable Translation (requires TranslationAPI)": false }, "Death Notes by Terceran/Mr. Blue": { "Enabled": false, "Model": "gpt-4.1-nano", "Cooldown Seconds": 5.0, "System Prompt": "A death just happened on a Rust game server. Reply with one short, witty, non-offensive comment. No explanation. One sentence only.", "Max Output Tokens": 1256, "Play Sound When Posted": true, "Sound Prefab": "assets/prefabs/misc/easter/painted eggs/effects/egg_upgrade.prefab" }, "Developer Hooks": { "Enabled": true, "Share Rate Limits With Players": true, "External Max Requests Per Minute": 30, "Log External Requests": true, "Expose API Key to Other Plugins": false }, "VIP Tier Order": [ "vip_elite" ], "VIP Tiers": { "vip_elite": { "Model": "gpt-5", "Max Output Tokens": 8192, "Daily Token Limit": 1000000, "Cooldown Seconds": 1, "Reasoning Effort": "medium", "Web Search Enabled": false } }, "Debug Mode": false }
See full configuration options in the documentation.
