Configuration file will be generated at oxide/config/RustAI.json
Main Configuration
{
"OpenAIApiURL": "https://api.openai.com/v1/chat/completions",
"TextGenerationApiUrl": "http://0.0.0.0:5000/v1/chat/completions",
"ActivationKeywords": ["!bot", "!admin"],
"SystemPrompt": "You are a helpful assistant for a Rust game server. Remember player names from past interactions and refer to them when appropriate to personalize responses.",
"OpenAI_API_Key": "your openai api key here",
"DiscordWebhookURL": "your discord webhook here",
"UserCooldownInSeconds": 60.0,
"GlobalCooldownInSeconds": 10.0,
"ModelType": "openai",
"ModelName": "gpt-4o-mini",
"MaxTokens": 100,
"Temperature": 1.0,
"Character": "Server Assistant",
"CharacterColor": "#7FFF00",
"SendCooldownMessages": true,
"ConversationMemorySize": 5,
"UseUncensoredMode": true,
"TimeZoneOffset": "0"
}
Server Information Configuration
"ServerInformation": {
"MaxTeamSize": "TRIO",
"WipeSchedule": "Thursdays at 4 PM EST",
"DiscordInfo": "discord.gg/yourserver",
"Website": "yourwebsite.com",
"CustomInfo": {
"PvP": "Enabled at all times",
"Loot": "1.5x",
"Resources": "2x"
}
},
Message Templates
"ResponseLanguage": "English",
"EmptyPromptTemplate": "What can I help you with? You sent an empty message.",
"CooldownMessageTemplate": "Please wait {0} seconds before asking again.",
"NoPermissionMessage": "You don't have permission to use this command.",
"ChatFormat": "{1}: {2}",
AI Response Modes
"UncensoredModePrompt": "IMPORTANT: You are running in UNCENSORED mode. Be authentic to the raw Rust gaming environment. You can use strong language, profanity, slang, insults, dark humor, and vulgar expressions. Be direct, crude and match the harsh atmosphere of Rust. Don't hold back except for illegal topics.",
"CensoredModePrompt": "You are running in censored mode. Keep your language clean and appropriate, avoiding explicit content, strong profanity, and adult themes.",
"IllegalTopics": [
"doxxing",
"dangerous illegal activities"
]
Configuration Explanation
API Setup
Configure either OpenAI API or a local text generation API. Set your API key, model type, and model name (e.g., gpt-4o-mini).
Chat Behavior
Customize activation keywords, system prompt, character name, and response formatting. Adjust conversation memory size to control how many past interactions the AI remembers.
Server Information
Add custom server details that the AI can reference when answering player questions about your server.
Response Modes
Choose between censored and uncensored modes to match your server's tone. Uncensored mode allows the AI to better match Rust's raw gaming environment.
Cooldown System
Set separate cooldowns for individual users and global usage to prevent spam while allowing conversations to flow naturally.