Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(channels): seed api key in channel test support

Steven Enamakel6b2d5b35bcd2
diff --git a/crates/openhuman-core/src/channels/runtime/test_support.rs b/crates/openhuman-core/src/channels/runtime/test_support.rs
index 189612c9d9..75ee4483e5 100644
--- a/crates/openhuman-core/src/channels/runtime/test_support.rs
+++ b/crates/openhuman-core/src/channels/runtime/test_support.rs
@@ -311,6 +311,10 @@ pub(crate) fn bind_test_core_context_with_provider_endpoint(
config.workspace_dir = workspace.clone();
config.action_dir = workspace.clone();
config.config_path = workspace.join("config.toml");
+ // A standing API-key credential satisfies the backend session gate that
+ // building the host agent's model checks, without a signed-in user.
+ crate::security::credentials::api_key::store_api_key(&config, "test-session-fixture-key")
+ .expect("store channel test credential");
config.cloud_providers = ["openai", "test-provider"]
.into_iter()
.map(|slug| crate::config::schema::CloudProviderCreds {