#Invalid Config

1 messages ยท Page 1 of 1 (latest)

astral basin
#

@spice haven please help me

#

Failed to read config at /home/goose/.clawdbot/clawdbot.json MissingEnvVarError: Missing env var "MOONSHOT_API_KEY" referenced at config path: models.providers.moonshot.apiKey
at substituteString (file:///home/goose/.npm-global/lib/node_modules/clawdbot/dist/config/env-substitution.js:76:31)
at substituteAny (file:///home/goose/.npm-global/lib/node_modules/clawdbot/dist/config/env-substitution.js:91:16)
at substituteAny (file:///home/goose/.npm-global/lib/node_modules/clawdbot/dist/config/env-substitution.js:100:27)
at substituteAny (file:///home/goose/.npm-global/lib/node_modules/clawdbot/dist/config/env-substitution.js:100:27)
at substituteAny (file:///home/goose/.npm-global/lib/node_modules/clawdbot/dist/config/env-substitution.js:100:27)
at substituteAny (file:///home/goose/.npm-global/lib/node_modules/clawdbot/dist/config/env-substitution.js:100:27)
at resolveConfigEnvVars (file:///home/goose/.npm-global/lib/node_modules/clawdbot/dist/config/env-substitution.js:116:12)
at Object.loadConfig (file:///home/goose/.npm-global/lib/node_modules/clawdbot/dist/config/io.js:169:33)
at loadConfig (file:///home/goose/.npm-global/lib/node_modules/clawdbot/dist/config/io.js:459:51)
at file:///home/goose/.npm-global/lib/node_modules/clawdbot/dist/agents/context.js:10:21 {
varName: 'MOONSHOT_API_KEY',
configPath: 'models.providers.moonshot.apiKey'

#

Config invalid
File: ~/.clawdbot/clawdbot.json
Problem:

  • <root>: Missing env var "MOONSHOT_API_KEY" referenced at config path: models.providers.moonshot.apiKey
#

@spice haven

#

If my setup is completely screwed now and my agent bricked himself, can you at least tell me how to get all my memory files and do a fresh install while still saving my agent?