Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

fix(host): create bots on machines without a credential store

leepokaica7618a3a82e
diff --git a/host/src/api/mod.rs b/host/src/api/mod.rs
index ce8a9b69..c7ed69c2 100644
--- a/host/src/api/mod.rs
+++ b/host/src/api/mod.rs
@@ -411,9 +411,18 @@ pub async fn dispatch(hub: &Arc<Hub>, caller: &Caller, method: &str, b: Value) -
let mut b = b;
b["id"] = "".into();
// Connectors are on for a new bot unless the client picked them.
+ // Without a credential store (headless Linux) no connector can run, so the bot starts with none.
if b["connectors"].is_null() && b["kind"] != "group" {
- market::vault::unlock(hub.clone()).await?;
- b["connectors"] = json!(connector_ids(&hub.store)?);
+ b["connectors"] = match market::vault::unlock(hub.clone()).await {
+ Ok(()) => json!(connector_ids(&hub.store)?),
+ Err(e) => {
+ tracing::warn!(
+ error = format!("{e:#}"),
+ "credential store unavailable; new bot starts without connectors"
+ );
+ json!([])
+ }
+ };
}
let cfg: BotConfig = serde_json::from_value(b).context("invalid bot")?;
let hub = hub.clone();