PS C:\Users\Matt\OneDrive\Desktop\mindcraft-main\mindcraft-main> node main.js
[ './andy.json' ]
MindServer running on port 8080
Starting agent with profile: ./andy.json
Starting agent initialization with profile: ./andy.json
Initializing action manager...
Initializing prompter...
Using chat settings: { model: 'gpt-4o-mini', api: 'openai' }
Agent start failed with error: {
message: 'API key "OPENAI_API_KEY" not found in keys.json or environment variables!',
stack: 'Error: API key "OPENAI_API_KEY" not found in keys.json or environment variables!\n' +
' at getKey (file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/utils/keys.js:17:15)\n' +
' at new GPT (file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/models/gpt.js:16:25)\n' +
' at new Prompter (file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/agent/prompter.js:71:31)\n' +
' at Agent.start (file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/agent/agent.js:34:29)\n' +
' at file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/process/init-agent.js:48:21\n' +
' at file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/process/init-agent.js:57:3\n' +
' at ModuleJob.run (node:internal/modules/esm/module_job:268:25)\n' +
' at async onImport.tracePromise.proto (node:internal/modules/esm/loader:543:26)\n' +
' at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)',
error: {}
}
Failed to start agent process: {
message: 'API key "OPENAI_API_KEY" not found in keys.json or environment variables!',
stack: 'Error: API key "OPENAI_API_KEY" not found in keys.json or environment variables!\n' +
' at getKey (file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/utils/keys.js:17:15)\n' +
' at new GPT (file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/models/gpt.js:16:25)\n' +
' at new Prompter (file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/agent/prompter.js:71:31)\n' +
' at Agent.start (file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/agent/agent.js:34:29)\n' +
' at file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/process/init-agent.js:48:21\n' +
' at file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/process/init-agent.js:57:3\n' +
' at ModuleJob.run (node:internal/modules/esm/module_job:268:25)\n' +
' at async onImport.tracePromise.proto (node:internal/modules/esm/loader:543:26)\n' +
' at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)',
error: {}
}
Agent process exited with code 1 and signal null
Agent process ./andy.json exited too quickly and will not be restarted.
All agent processes have ended. Exiting.
PS C:\Users\Matt\OneDrive\Desktop\mindcraft-main\mindcraft-main>
PS C:\Users\Matt\OneDrive\Desktop\mindcraft-main\mindcraft-main> node main.js [ './andy.json' ] MindServer running on port 8080 Starting agent with profile: ./andy.json Starting agent initialization with profile: ./andy.json Initializing action manager... Initializing prompter... Using chat settings: { model: 'gpt-4o-mini', api: 'openai' } Agent start failed with error: { message: 'API key "OPENAI_API_KEY" not found in keys.json or environment variables!', stack: 'Error: API key "OPENAI_API_KEY" not found in keys.json or environment variables!\n' + ' at getKey (file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/utils/keys.js:17:15)\n' + ' at new GPT (file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/models/gpt.js:16:25)\n' + ' at new Prompter (file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/agent/prompter.js:71:31)\n' + ' at Agent.start (file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/agent/agent.js:34:29)\n' + ' at file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/process/init-agent.js:48:21\n' + ' at file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/process/init-agent.js:57:3\n' + ' at ModuleJob.run (node:internal/modules/esm/module_job:268:25)\n' + ' at async onImport.tracePromise.proto (node:internal/modules/esm/loader:543:26)\n' + ' at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)', error: {} } Failed to start agent process: { message: 'API key "OPENAI_API_KEY" not found in keys.json or environment variables!', stack: 'Error: API key "OPENAI_API_KEY" not found in keys.json or environment variables!\n' + ' at getKey (file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/utils/keys.js:17:15)\n' + ' at new GPT (file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/models/gpt.js:16:25)\n' + ' at new Prompter (file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/agent/prompter.js:71:31)\n' + ' at Agent.start (file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/agent/agent.js:34:29)\n' + ' at file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/process/init-agent.js:48:21\n' + ' at file:///C:/Users/Matt/OneDrive/Desktop/mindcraft-main/mindcraft-main/src/process/init-agent.js:57:3\n' + ' at ModuleJob.run (node:internal/modules/esm/module_job:268:25)\n' + ' at async onImport.tracePromise.proto (node:internal/modules/esm/loader:543:26)\n' + ' at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)', error: {} } Agent process exited with code 1 and signal null Agent process ./andy.json exited too quickly and will not be restarted. All agent processes have ended. Exiting. PS C:\Users\Matt\OneDrive\Desktop\mindcraft-main\mindcraft-main>