Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Fix automation agent-server auth (#410)

Graham Neubig12bd8171cbf8
diff --git a/scripts/dev-with-automation.mjs b/scripts/dev-with-automation.mjs
index af3f3bd0c4..a26cf1fe99 100644
--- a/scripts/dev-with-automation.mjs
+++ b/scripts/dev-with-automation.mjs
@@ -478,6 +478,7 @@ function startAutomationBackend(config) {
cwd: config.stateDir,
env: {
AUTOMATION_AGENT_SERVER_URL: `http://localhost:${config.agentServerPort}`,
+ AUTOMATION_AGENT_SERVER_API_KEY: config.sessionApiKey,
AUTOMATION_DB_URL: `sqlite+aiosqlite:///${join(config.stateDir, "automations.db")}`,
AUTOMATION_BASE_URL: `http://localhost:${config.ingressPort}`,
AUTOMATION_WORKSPACE_BASE: join(config.stateDir, "workspaces"),