RustAI
RustAI brings intelligent AI-powered chat responses to your Rust server with OpenAI-compatible, Anthropic Messages API, MiniMax token-plan chat completions, Google Gemini, and Ollama/local model support.
RustAI brings intelligent AI-powered chat responses to your Rust server with OpenAI-compatible, Anthropic Messages API, MiniMax token-plan chat completions, Google Gemini, and Ollama/local model support.
RustAI brings intelligent AI-powered chat responses to your Rust server with OpenAI-compatible, Anthropic Messages API, MiniMax token-plan chat completions, Google Gemini, and Ollama/local model support.
Download the plugin source directly, review the configuration example, then install it in your Oxide/uMod plugins folder.
This plugin integrates seamlessly with RustAI.io - our modern Rust server admin panel. View AI responses highlighted in real-time live chat windows directly in the panel.
Try RustAI.io FreeConfiguration file will be generated at oxide/config/RustAI.json.
This example mirrors the default config generated by RustAI 1.9.6. Replace placeholder API keys and server info only in your private server config.
{
"OpenAIApiURL": "https://api.openai.com/v1/chat/completions",
"OllamaApiUrl": "https://llm.yoursite.com/api/chat",
"GeminiApiURL": "https://generativelanguage.googleapis.com/v1beta",
"AnthropicApiURL": "https://api.anthropic.com/v1/messages",
"MiniMaxApiURL": "https://api.minimax.io/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",
"Gemini_API_Key": "your gemini api key here",
"Anthropic_API_Key": "your anthropic api key here",
"MiniMax_API_Key": "your minimax api key here",
"OpenAIModelName": "gpt-4.1-mini",
"GeminiModelName": "gemini-3-flash-preview",
"OllamaModelName": "qwen3:8b",
"AnthropicModelName": "claude-3-5-haiku-latest",
"MiniMaxModelName": "MiniMax-M2",
"AnthropicVersion": "2023-06-01",
"DiscordWebhookURL": "your discord webhook here",
"UserCooldownInSeconds": 60.0,
"GlobalCooldownInSeconds": 10.0,
"ModelType": "openai",
"MaxTokens": 150,
"ReasoningBudgetTokens": 256,
"ReasoningEffort": "low",
"EnableReasoningMode": false,
"Temperature": 1.0,
"RepeatPenalty": 1.1,
"Character": "Server Assistant",
"CharacterColor": "#7FFF00",
"SendCooldownMessages": true,
"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"
}
},
"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": "<color={0}>{1}</color>: {2}",
"UseUncensoredMode": true,
"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"
],
"ConversationMemorySize": 5,
"TimeZoneOffset": 0,
"SharePlayerLocation": false,
"DawnHour": 6.0,
"DuskHour": 18.0,
"DayLengthMinutes": 50.0,
"NightLengthMinutes": 10.0,
"DebugMode": false,
"CloudflareClientId": "",
"CloudflareClientSecret": ""
}
ModelType values: openai, ollama, gemini, anthropic, or minimax.DawnHour, DuskHour, DayLengthMinutes, and NightLengthMinutes to match your server cycle.| Command | Description | Permission |
|---|---|---|
|
!bot |
Send a message to the AI assistant | rustai.use |
|
!admin |
Send a message to the AI assistant (alternative keyword) | rustai.use |
| /switchmodel | In-game chat command that cycles between OpenAI, Ollama, Gemini, Anthropic, and MiniMax models | rustai.admin |
|
switchmodel |
Console command that switches directly to a specific model provider | Server console or rustai.admin |
| /togglecensor | Toggle between censored and uncensored response modes | rustai.admin |
| /timezone | View or set the bot timezone offset. Usage: /timezone [offset] where offset is a number between -12 and +14. Example: /timezone -3 for Buenos Aires time. | rustai.admin |
| /bot | Toggle whether you receive messages from the AI assistant | rustai.toggle |
| Permission | Description |
|---|---|
| rustai.use | Allows players to use the AI chat commands |
| rustai.admin | Allows configuration of AI settings and model selection |
| rustai.toggle | Allows players to toggle receiving AI assistant messages |