2025-03-16 19:45:21 -05:00
const settings = {
2025-03-07 14:19:55 -06:00
"minecraft_version" : "1.21.1" , // supports up to 1.21.1
2024-08-29 19:16:28 -05:00
"host" : "127.0.0.1" , // or "localhost", "your.ip.address.here"
2025-03-16 19:45:21 -05:00
"port" : 55916 ,
2024-05-29 21:49:45 -05:00
"auth" : "offline" , // or "microsoft"
2024-11-19 22:21:17 -06:00
// the mindserver manages all agents and hosts the UI
"host_mindserver" : true , // if true, the mindserver will be hosted on this machine. otherwise, specify a public IP address
"mindserver_host" : "localhost" ,
2025-03-16 19:45:21 -05:00
"mindserver_port" : 8080 ,
2024-05-29 21:49:45 -05:00
2025-02-05 15:58:40 -06:00
// the base profile is shared by all bots for default prompts/examples/modes
"base_profile" : "./profiles/defaults/survival.json" , // also see creative.json, god_mode.json
2025-03-16 19:45:21 -05:00
"profiles" : [
2025-03-12 15:00:51 -05:00
"./andy.json" ,
2024-10-27 15:06:23 -05:00
// "./profiles/gpt.json",
// "./profiles/claude.json",
// "./profiles/gemini.json",
// "./profiles/llama.json",
2024-10-28 13:41:20 +08:00
// "./profiles/qwen.json",
2024-11-11 05:43:26 -06:00
// "./profiles/grok.json",
2025-01-07 13:41:14 -06:00
// "./profiles/mistral.json",
2024-12-26 16:45:48 -07:00
// "./profiles/deepseek.json",
2024-10-27 15:06:23 -05:00
// using more than 1 profile requires you to /msg each bot indivually
2025-02-05 15:58:40 -06:00
// individual profiles override values from the base profile
2024-05-29 21:49:45 -05:00
] ,
"load_memory" : false , // load memory from previous session
2024-11-21 23:29:52 -06:00
"init_message" : "Respond with hello world and your name" , // sends to all on spawn
2024-12-01 22:28:21 -06:00
"only_chat_with" : [ ] , // users that the bots listen to and send general messages to. if empty it will chat publicly
2025-03-13 14:40:18 -05:00
"speak" : false , // allows all bots to speak through system text-to-speech. works on windows, mac, on linux you need to `apt install espeak`
2024-10-02 00:57:28 -05:00
"language" : "en" , // translate to/from this language. Supports these language names: https://cloud.google.com/translate/docs/languages
2024-10-10 22:28:47 -05:00
"show_bot_views" : false , // show bot's view in browser at localhost:3000, 3001...
2024-10-02 00:57:28 -05:00
2024-08-22 15:57:20 -05:00
"allow_insecure_coding" : false , // allows newAction command and model can write/run code on your computer. enable at own risk
2025-02-08 17:39:38 +09:00
"allow_vision" : false , // allows vision model to interpret screenshots as inputs
2025-04-08 16:36:47 -05:00
"blocked_actions" : [ "!checkBlueprint" , "!checkBlueprintLevel" , "!getBlueprint" , "!getBlueprintLevel" ] , // commands to disable and remove from docs. Ex: ["!setMode"]
2025-01-21 14:05:50 -06:00
"code_timeout_mins" : - 1 , // minutes code is allowed to run. -1 for no timeout
2025-03-13 14:33:56 -05:00
"relevant_docs_count" : 5 , // number of relevant code function docs to select for prompting. -1 for all
2024-10-10 22:15:55 -05:00
2025-04-21 12:42:19 -05:00
"max_messages" : 15 , // max number of messages to keep in context
"num_examples" : 2 , // number of examples to give to the model
2025-01-09 15:16:35 -06:00
"max_commands" : - 1 , // max number of commands that can be used in consecutive responses. -1 for no limit
2024-06-23 20:15:28 -05:00
"verbose_commands" : true , // show full command syntax
2024-08-22 15:57:20 -05:00
"narrate_behavior" : true , // chat simple automatic actions ('Picking up item!')
2024-11-21 23:29:52 -06:00
"chat_bot_messages" : true , // publicly chat messages to other bots
2025-04-21 12:42:19 -05:00
"log_all_prompts" : false , // log ALL prompts to file
2024-08-25 14:05:44 -05:00
}
2025-03-16 19:45:21 -05:00
// these environment variables override certain settings
if ( process . env . MINECRAFT _PORT ) {
settings . port = process . env . MINECRAFT _PORT ;
}
if ( process . env . MINDSERVER _PORT ) {
settings . mindserver _port = process . env . MINDSERVER _PORT ;
}
if ( process . env . PROFILES && JSON . parse ( process . env . PROFILES ) . length > 0 ) {
settings . profiles = JSON . parse ( process . env . PROFILES ) ;
}
2025-04-08 16:36:47 -05:00
if ( process . env . INSECURE _CODING ) {
settings . allow _insecure _coding = true ;
}
if ( process . env . BLOCKED _ACTIONS ) {
settings . blocked _actions = JSON . parse ( process . env . BLOCKED _ACTIONS ) ;
}
2025-04-21 12:42:19 -05:00
if ( process . env . MAX _MESSAGES ) {
settings . max _messages = process . env . MAX _MESSAGES ;
}
if ( process . env . NUM _EXAMPLES ) {
settings . num _examples = process . env . NUM _EXAMPLES ;
}
if ( process . env . LOG _ALL ) {
settings . log _all _prompts = process . env . LOG _ALL ;
}
2025-03-16 19:45:21 -05:00
export default settings ;