MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / buildAgentServerAutomationEnv

Function buildAgentServerAutomationEnv

scripts/dev-with-automation.mjs:745–755  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

743}
744
745function buildAgentServerAutomationEnv(config) {
746 return {
747 // Make the session API key available to terminal commands spawned by the
748 // agent-server as OPENHANDS_AUTOMATION_API_KEY. The launcher also seeds
749 // this into Settings > Secrets, but agents commonly create automations
750 // with a curl command that references `$OPENHANDS_AUTOMATION_API_KEY`;
751 // exposing it here keeps that path working even before/without
752 // secret-registry env expansion.
753 OPENHANDS_AUTOMATION_API_KEY: config.sessionApiKey,
754 };
755}
756
757function buildAutomationTelemetryEnv(env = process.env) {
758 const telemetryDisabled = env.VITE_DO_NOT_TRACK === "1";

Callers 3

startAgentServerFunction · 0.90
startAgentServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected