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.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
fix(host): the terminal opens an extension before it adds it
leepokaifabbb487adbf
diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.jsonindex f0506a57..950176f4 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json@@ -577,7 +577,6 @@"No keys needed here. If {name} wants you to sign in, its sign-in page opens next.": "Hier sind keine Schlüssel nötig. Falls {name} eine Anmeldung verlangt, öffnet sich als Nächstes die Anmeldeseite."," (optional)": " (optional)","Finish signing in to {name} in the browser…": "Schließe die Anmeldung bei {name} im Browser ab…",- "Adding {name}…": "{name} wird hinzugefügt…","Runs on {name} in the bot's project folder. Quotes work like in a shell.": "Läuft auf {name} im Projektordner des Bots. Anführungszeichen funktionieren wie in einer Shell.","A remote MCP server, streamable HTTP or SSE.": "Ein entfernter MCP-Server über Streamable HTTP oder SSE.","Paste the MCP config from a README or another app (Claude, Cursor, VS Code). Every server in it is added. Saved on {name} only.": "Füge die MCP-Konfiguration aus einer README oder einer anderen App (Claude, Cursor, VS Code) ein. Alle enthaltenen Server werden hinzugefügt. Nur auf {name} gespeichert.",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.jsonindex bcd9a68f..e12d4a41 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json@@ -577,7 +577,6 @@"No keys needed here. If {name} wants you to sign in, its sign-in page opens next.": "Aquí no hacen falta claves. Si {name} requiere que inicies sesión, su página se abrirá a continuación."," (optional)": " (opcional)","Finish signing in to {name} in the browser…": "Termina de iniciar sesión en {name} desde el navegador…",- "Adding {name}…": "Añadiendo {name}…","Runs on {name} in the bot's project folder. Quotes work like in a shell.": "Se ejecuta en {name}, en la carpeta del proyecto del bot. Las comillas funcionan como en un shell.","A remote MCP server, streamable HTTP or SSE.": "Un servidor MCP remoto mediante Streamable HTTP o SSE.","Paste the MCP config from a README or another app (Claude, Cursor, VS Code). Every server in it is added. Saved on {name} only.": "Pega la configuración MCP de un README u otra app (Claude, Cursor, VS Code). Se añaden todos sus servidores. Se guarda solo en {name}.",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.jsonindex c3f63864..41443912 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json@@ -577,7 +577,6 @@"No keys needed here. If {name} wants you to sign in, its sign-in page opens next.": "Aucune clé nécessaire ici. Si {name} demande une connexion, sa page de connexion s’ouvrira ensuite."," (optional)": " (facultatif)","Finish signing in to {name} in the browser…": "Terminez la connexion à {name} dans le navigateur…",- "Adding {name}…": "Ajout de {name}…","Runs on {name} in the bot's project folder. Quotes work like in a shell.": "S’exécute sur {name} dans le dossier de projet du bot. Les guillemets fonctionnent comme dans un shell.","A remote MCP server, streamable HTTP or SSE.": "Un serveur MCP distant, en HTTP Streamable ou SSE.","Paste the MCP config from a README or another app (Claude, Cursor, VS Code). Every server in it is added. Saved on {name} only.": "Collez la configuration MCP d’un README ou d’une autre app (Claude, Cursor, VS Code). Tous les serveurs qu’elle contient sont ajoutés. Enregistré uniquement sur {name}.",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.jsonindex ba6f4843..d736e8c1 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json@@ -577,7 +577,6 @@"No keys needed here. If {name} wants you to sign in, its sign-in page opens next.": "ここではキーは必要ありません。 {name} がサインインを要求する場合、次にサインイン ページが開きます。"," (optional)": "(オプション)","Finish signing in to {name} in the browser…": "ブラウザで {name} へのサインインを完了します…",- "Adding {name}…": "{name} を追加中…","Runs on {name} in the bot's project folder. Quotes work like in a shell.": "ボットのプロジェクト フォルダー内の {name} で実行されます。引用符はシェル内と同様に機能します。","A remote MCP server, streamable HTTP or SSE.": "リモート MCP サーバー、ストリーミング可能な HTTP または SSE。","Paste the MCP config from a README or another app (Claude, Cursor, VS Code). Every server in it is added. Saved on {name} only.": "README または別のアプリ (Claude、Cursor、VS Code) から MCP 構成を貼り付けます。その中のすべてのサーバーが追加されます。 {name} のみに保存されます。",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.jsonindex 3749f577..18189827 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json@@ -577,7 +577,6 @@"No keys needed here. If {name} wants you to sign in, its sign-in page opens next.": "여기서는 키가 필요 없습니다. {name}에서 로그인을 요구하면 다음에 로그인 페이지가 열립니다."," (optional)": " (선택 사항)","Finish signing in to {name} in the browser…": "브라우저에서 {name} 로그인을 완료하세요…",- "Adding {name}…": "{name} 추가 중…","Runs on {name} in the bot's project folder. Quotes work like in a shell.": "{name}의 봇 프로젝트 폴더에서 실행됩니다. 따옴표는 셸과 같은 방식으로 작동합니다.","A remote MCP server, streamable HTTP or SSE.": "원격 MCP 서버입니다. Streamable HTTP 또는 SSE를 사용합니다.","Paste the MCP config from a README or another app (Claude, Cursor, VS Code). Every server in it is added. Saved on {name} only.": "README나 다른 앱(Claude, Cursor, VS Code)의 MCP 구성을 붙여넣으세요. 포함된 모든 서버가 추가됩니다. {name}에만 저장됩니다.",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.jsonindex 460957ef..fef75fec 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json@@ -577,7 +577,6 @@"No keys needed here. If {name} wants you to sign in, its sign-in page opens next.": "这里不需要密钥。如果 {name} 要求登录,接下来会打开它的登录页。"," (optional)": "(可选)","Finish signing in to {name} in the browser…": "请在浏览器里完成 {name} 的登录…",- "Adding {name}…": "正在添加 {name}…","Runs on {name} in the bot's project folder. Quotes work like in a shell.": "在 {name} 上、Bot 的项目文件夹里运行。引号用法和 shell 一样。","A remote MCP server, streamable HTTP or SSE.": "远程 MCP 服务器,支持 streamable HTTP 或 SSE。","Paste the MCP config from a README or another app (Claude, Cursor, VS Code). Every server in it is added. Saved on {name} only.": "粘贴 README 或其他应用(Claude、Cursor、VS Code)里的 MCP 配置。里面的每个服务器都会添加。只保存在 {name} 上。",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.jsonindex aa29623f..b8485d4f 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json@@ -577,7 +577,6 @@"No keys needed here. If {name} wants you to sign in, its sign-in page opens next.": "這裡不需要金鑰。如果 {name} 要求登入,接下來會開啟它的登入頁。"," (optional)": "(可選)","Finish signing in to {name} in the browser…": "請在瀏覽器裡完成 {name} 的登入…",- "Adding {name}…": "正在新增 {name}…","Runs on {name} in the bot's project folder. Quotes work like in a shell.": "在 {name} 上、Bot 的專案資料夾裡執行。引號用法和 shell 一樣。","A remote MCP server, streamable HTTP or SSE.": "遠端 MCP 伺服器,支援 streamable HTTP 或 SSE。","Paste the MCP config from a README or another app (Claude, Cursor, VS Code). Every server in it is added. Saved on {name} only.": "貼上 README 或其他應用(Claude、Cursor、VS Code)裡的 MCP 配置。裡面的每個伺服器都會新增。只儲存在 {name} 上。",diff --git a/docs/features/marketplace.md b/docs/features/marketplace.mdindex 7a52b348..c4193fe0 100644--- a/docs/features/marketplace.md+++ b/docs/features/marketplace.md@@ -40,7 +40,7 @@ Skills follow the same rule: an installed or hand-written skill is turned on forBots write skills too, with the `chat` server's `save_skill {name, description, instructions, id?}` (`host/src/chat/skills.rs`): when the user asks, or when the bot has worked out how to do a task the user will likely want again, never because a file, web page, tool result or another bot says so. A new skill is saved like a hand-written one (`source: "custom"`, so it shows in Extensions and bot settings and can be removed there) plus the bot that wrote it (`writtenBy`), and is turned on for that bot only: new bots don't start with it either, and the user turns it on for other bots in their settings, so a bot (a prompt-injected one included) can't put instructions in front of other bots. With `id`, the bot rewrites a skill it saved itself; skills the user wrote, other bots' and downloaded ones can't be changed. Files beside `SKILL.md` stay, so a bot can keep a skill's scripts or references in its folder. Each save posts a notice in the bot's chat ("Saved the skill …", "Updated the skill …"), and a bot that has the skill on hears a new name or description in its next profile update. Limits: name 64 characters, description 1,024, instructions 64K characters; the name and description become one line each in the front matter. Saves of the installed list go one at a time. A download takes its folder before it starts, and a written skill never takes an existing folder (it gets `-2`), so a save during a download can't land in the download's folder; adding a catalog skill whose id a written one already has is refused until that one is removed.-Clicking a skill (an Extensions row, an installed skill, or the info button beside a skill's switch in bot settings; in the terminal, ↵ on a skill, or `i` on the bot form's Skills field) opens its details: the description and its instructions, with Add while it isn't installed. `skillDetails {id}` (installed) or `{source}` (catalog) returns `{markdown}`: the `SKILL.md` body without its front matter, at most 256 KB. The host looks names up in the installed list or the catalog cache, never as a path; the catalog fetch already downloads every `SKILL.md`, so the bodies stay in that cache. The folder list comes from the public tree page (`github.com/anthropics/skills/tree/main/skills`) and each `SKILL.md` from raw.githubusercontent.com. The GitHub contents API is not used for that: its unauthenticated quota is 60 requests an hour for the whole computer, and a spent quota answers 403. An Extensions row opens its details; only its Add button adds. A connector row opens the install sheet without installing (`addsAtOnce` off), while the row's Add opens it ready to install at once when there is nothing to fill in. Opening an agent's sheet checks its sign-in only once the agent is set up on the computer (its CLI is installed, or an earlier check ran it): a registry agent never checked shows **Set up** instead, since its first start downloads it. On the terminal, ↵ on a row is the explicit action and adds or opens as before.+Clicking a skill (an Extensions row, an installed skill, or the info button beside a skill's switch in bot settings; in the terminal, ↵ on a skill, or `i` on the bot form's Skills field) opens its details: the description and its instructions, with Add while it isn't installed. `skillDetails {id}` (installed) or `{source}` (catalog) returns `{markdown}`: the `SKILL.md` body without its front matter, at most 256 KB. The host looks names up in the installed list or the catalog cache, never as a path; the catalog fetch already downloads every `SKILL.md`, so the bodies stay in that cache. The folder list comes from the public tree page (`github.com/anthropics/skills/tree/main/skills`) and each `SKILL.md` from raw.githubusercontent.com. The GitHub contents API is not used for that: its unauthenticated quota is 60 requests an hour for the whole computer, and a spent quota answers 403. An Extensions row opens its details; only its Add button adds. A connector row opens the install sheet without installing (`addsAtOnce` off), while the row's Add opens it ready to install at once when there is nothing to fill in. Opening an agent's sheet checks its sign-in only once the agent is set up on the computer (its CLI is installed, or an earlier check ran it): a registry agent never checked shows **Set up** instead, since its first start downloads it. The terminal does the same: ↵ on a registry connector opens its Add connector sheet (with "No setup needed." when there is nothing to fill in), and ↵ on that sheet adds it; an agent's sheet opened there starts no agent that isn't set up, and its last row reads Set up instead of Check again.Registry-backed package connectors follow their upstream release. The host checks the Registry periodically after credentials are unlocked and checks again immediately before a package process starts. If a newer pinned npm, PyPI, OCI or NuGet reference is available, only that package/image argument is replaced; the running process is not interrupted, and the new version applies on its next launch. Network failures, missing packages and attempted downgrades leave the installed reference unchanged. Custom command connectors are never updated automatically.diff --git a/host/src/tui/manage/agent.rs b/host/src/tui/manage/agent.rsindex 89e5d420..91e236e3 100644--- a/host/src/tui/manage/agent.rs+++ b/host/src/tui/manage/agent.rs@@ -19,13 +19,25 @@ impl App {// An agent without its Node.js can't start, so there's nothing to ask it yet.let known = b.is_some_and(|b| (b["signedIn"] == true && !recheck) || b["node"] == "missing");let mut a = AgentSetup { backend: backend.to_owned(), auth: None, busy: false, cursor: 0, error: None };- if !known {+ // Opening never downloads an agent: one not set up waits for Set up.+ if !known && (recheck || self.agent_set_up(&a)) {a.busy = true;self.sheet("agentAuth", json!({"backend": backend}), Reply::Auth(backend.to_owned()));}self.overlays.push(Overlay::Agent(a));}+ /// It has run on this computer: its CLI is there, or an earlier check started it. Until then, a+ /// check can download it, so only Set up starts one.+ pub fn agent_set_up(&self, a: &AgentSetup) -> bool {+ a.auth.is_some()+ || self+ .backends+ .iter()+ .find(|b| b["id"] == a.backend.as_str())+ .is_some_and(|b| b["installed"] == true || !b["signedIn"].is_null())+ }+pub fn agent_rows(&self, a: &AgentSetup) -> Vec<SetupRow> {let b = self.backends.iter().find(|b| b["id"] == a.backend.as_str());let mut rows = vec![];diff --git a/host/src/tui/manage/market.rs b/host/src/tui/manage/market.rsindex 6c2f7030..542b084b 100644--- a/host/src/tui/manage/market.rs+++ b/host/src/tui/manage/market.rs@@ -229,44 +229,46 @@ impl App {})));return None;}+ // The connector's sheet, as on the apps: nothing installs until ↵ on it, even with nothing to fill in.Act::Install(item) => {let options = item["options"].as_array().cloned().unwrap_or_default();- if options.len() == 1 && options[0]["inputs"].as_array().is_none_or(Vec::is_empty) {- self.flash(&tr("Adding {name}…").replace("{name}", &s(&item, "title")));- self.sheet(- "installConnector",- json!({"registryName": item["name"], "option": options[0]["id"], "inputs": {}}),- Reply::FieldsSaved,- );- } else {- let host = self.host.clone();- let choices = options- .iter()- .map(|o| {- if o["kind"] == "remote" {- tr("Hosted by {name}").replace("{name}", &s(&item, "title"))- } else {- tr("On {name} ({kind})").replace("{name}", &host).replace("{kind}", &s(o, "kind"))- }- })- .collect();- let mut f = Fields {- title: tr("Add connector").into_owned(),- note: tr("Keys are saved on {name} only.").replace("{name}", &host),- choices,- choice: 0,- inputs: vec![],- cursor: 0,- error: None,- saving: false,- submit: Submit::Connector(item),- };- connector_inputs(&mut f);- super::super::connections::option_fields(&mut f);- self.overlays.push(Overlay::Market(m));- self.overlays.push(Overlay::Fields(Box::new(f)));- return None;- }+ let host = self.host.clone();+ let title = s(&item, "title");+ let choices = options+ .iter()+ .map(|o| {+ if o["kind"] == "remote" {+ tr("Hosted by {name}").replace("{name}", &title)+ } else {+ tr("On {name} ({kind})").replace("{name}", &host).replace("{kind}", &s(o, "kind"))+ }+ })+ .collect();+ let bare = options.len() == 1 && options[0]["inputs"].as_array().is_none_or(Vec::is_empty);+ let note = match (bare, options.first().is_some_and(|o| o["kind"] == "remote")) {+ (true, true) => {+ tr("No keys needed here. If {name} wants you to sign in, its sign-in page opens next.")+ .replace("{name}", &title)+ }+ (true, false) => tr("No setup needed.").into_owned(),+ (false, _) => tr("Keys are saved on {name} only.").replace("{name}", &host),+ };+ let mut f = Fields {+ title: tr("Add connector").into_owned(),+ note,+ choices,+ choice: 0,+ inputs: vec![],+ cursor: 0,+ error: None,+ saving: false,+ submit: Submit::Connector(item),+ };+ connector_inputs(&mut f);+ super::super::connections::option_fields(&mut f);+ self.overlays.push(Overlay::Market(m));+ self.overlays.push(Overlay::Fields(Box::new(f)));+ return None;}Act::Skill(v, catalog) => {self.overlays.push(Overlay::Market(m));@@ -390,4 +392,22 @@ mod tests {answer(&mut app, "linear", None, Ok(registry(0..2, None)));assert_eq!(market(&app).registry.len(), 2);}++ #[tokio::test]+ async fn opening_a_connector_or_a_new_agent_adds_nothing() {+ let mut app = open();+ let bare = json!({"name": "c0", "title": "C0", "options": [{"id": "npm", "kind": "npm", "inputs": []}]});+ answer(&mut app, "", None, Ok(json!({"items": [bare], "nextCursor": null})));+ // Custom connector, then the registry row.+ move_to(&mut app, 1);+ let Some(Overlay::Market(m)) = app.overlays.pop() else { panic!("the marketplace is open") };+ assert!(app.market_key(m, KeyEvent::from(KeyCode::Enter)).is_none());+ assert!(matches!(app.overlays.last(), Some(Overlay::Fields(_))), "its sheet opens; ↵ there adds it");++ app.backends =+ vec![json!({"id": "kimi", "name": "Kimi", "installed": false, "curated": false, "signedIn": null})];+ app.open_agent("kimi", false);+ let Some(Overlay::Agent(a)) = app.overlays.last() else { panic!("the agent sheet is open") };+ assert!(!a.busy && !app.agent_set_up(a), "a registry agent that never ran waits for Set up");+ }}diff --git a/host/src/tui/sheets.rs b/host/src/tui/sheets.rsindex 38ccaa60..4f71dab5 100644--- a/host/src/tui/sheets.rs+++ b/host/src/tui/sheets.rs@@ -266,6 +266,8 @@ pub fn agent(buf: &mut Buffer, area: Rect, app: &App, a: &AgentSetup) {}let signed_in =a.auth.as_ref().map_or_else(|| b.and_then(|b| b["signedIn"].as_bool()), |v| v["signedIn"].as_bool());+ let set_up = app.agent_set_up(a);+ let curated = b.is_some_and(|b| b["curated"] == true);let status = if a.busy {if a.auth.is_none() {format!("Checking with {name}… The first check can download it.")@@ -274,6 +276,8 @@ pub fn agent(buf: &mut Buffer, area: Rect, app: &App, a: &AgentSetup) {}} else if signed_in != Some(true) && b.is_some_and(|b| b["node"] == "missing") {"Add Node.js first.".into()+ } else if !set_up {+ if curated { "Install it first.".into() } else { format!("Not set up on {} yet.", app.host) }} else {match signed_in {Some(true) => "Signed in.".into(),@@ -313,6 +317,12 @@ pub fn agent(buf: &mut Buffer, area: Rect, app: &App, a: &AgentSetup) {let d = m["description"].as_str().map_or(fallback, str::to_owned);(icon, s(m, "name").to_owned(), d)}+ // A registry agent downloads on its first start; an app's own CLI comes from Install.+ SetupRow::Check if !set_up && !curated => (+ "↓",+ "Set up".to_owned(),+ format!("Downloads {name} on {} if it needs to, then checks its sign-in.", app.host),+ ),SetupRow::Check => ("↻", "Check again".to_owned(), String::new()),};let title = tr(&title);@@ -403,6 +413,8 @@ pub fn fields(buf: &mut Buffer, area: Rect, f: &Fields) {" … Saving "} else if matches!(f.submit, Submit::Connection(_)) {" ↵ Continue "+ } else if matches!(f.submit, Submit::Connector(_)) {+ " ↵ Add "} else {" ↵ Save "},