The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(scripts): correct scenario runner to handle missing config file
Steven Enamakel70545918ec31
diff --git a/scripts/life-scenarios/run.mjs b/scripts/life-scenarios/run.mjsindex a2bbfe97c5..bea72e083c 100644--- a/scripts/life-scenarios/run.mjs+++ b/scripts/life-scenarios/run.mjs@@ -949,10 +949,36 @@ async function main() {// `channel_web_chat` carries no per-turn route, so on the desktop path this// is the only way to run BYOK — which is also how a BYOK desktop user runs.if (!opts.managed) {+ // `inference_url` + `api_key` on their own are NOT enough, despite the+ // field's own documentation ("When set together with `api_key`, inference+ // goes direct to this URL instead of the OpenHuman backend"). The write is+ // accepted, and then the next turn dies with+ // [chat-factory] BYOK_INCOMPLETE: inference_url is set to a+ // custom/direct endpoint but no matching cloud_providers entry was found+ // because `provider_for_role` resolves through `cloud_providers`, not+ // through `inference_url`. The endpoint has to be registered as a provider+ // and each agent-turn role pinned to it — which is what the Settings →+ // Models screen ends up writing.+ const slug = "life-scenarios-byok";+ const providerString = `${slug}:${opts.model}`;await core.rpc("openhuman.config_update_model_settings", {inference_url: opts.inferenceUrl,api_key: opts.apiKey,default_model: opts.model,+ cloud_providers: [+ {+ id: slug,+ slug,+ label: "Life Scenarios BYOK",+ endpoint: opts.inferenceUrl,+ auth_style: "bearer",+ },+ ],+ primary_cloud: slug,+ chat_provider: providerString,+ reasoning_provider: providerString,+ agentic_provider: providerString,+ coding_provider: providerString,});}console.log(