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
feat: show the agent or service on request cards in the chat
leepokaif9b6d3f69a74
diff --git a/apps/desktop/src/renderer/views/marketplace/ConnectionRequestCard.tsx b/apps/desktop/src/renderer/views/marketplace/ConnectionRequestCard.tsxindex 33a18f99..9da398c0 100644--- a/apps/desktop/src/renderer/views/marketplace/ConnectionRequestCard.tsx+++ b/apps/desktop/src/renderer/views/marketplace/ConnectionRequestCard.tsx@@ -1,17 +1,17 @@import { useState } from 'react'import type { Backend, Entry } from '@shared/models'-import { Button, Spinner } from '../../components/Controls'+import { Button, IconButton, Spinner } from '../../components/Controls'import { Icon } from '../../components/Icon'import { font } from '../../lib/fonts'import { useStore } from '../../store/context'-import { AgentSheet } from './AgentSheet'+import { AgentSheet, AgentTile } from './AgentSheet'import { ComposioConnectSheet } from './ComposioViews'import { InstallConnectorSheet } from './ConnectorSheets'import {errorText, market, needsSignIn,type ComposioApp, type ConnectionRequest, type MarketConnector,} from './market-models'-import { Field, FormSheet } from './pieces'+import { AppLogo, Field, FormSheet, ServiceLogo, lineClamp } from './pieces'import { pluginsFor } from './plugins'const caption = { ...font('caption'), color: 'var(--secondary)' }@@ -77,39 +77,42 @@ export function ConnectionRequestCard({ entry }: { entry: Entry }) {setBusy(false)}+ const pending = request.status === 'pending'return (- <div style={{ display: 'flex', flexDirection: 'column', gap: 12, padding: 16, background: 'var(--surface)', borderRadius: 18 }}>- <span style={{ display: 'flex', alignItems: 'center', gap: 6, ...font('headline') }}>- <Icon name="lock.shield" size={13} />- {request.title}- </span>- {entry.data.text ? <span style={{ color: 'var(--secondary)' }}>{entry.data.text}</span> : null}- {request.status === 'pending' ? (- <>- {isLogin ? (- <>- <Field value={username} onChange={setUsername} placeholder="Username or email" />- <Field value={value} onChange={setValue} placeholder="Password or op:// reference" secret />- <span style={caption}>Saved securely on this computer. The bot types it into the sign-in page but never sees it.</span>- </>- ) : isSecret ? (- <>- <span style={caption}>{`${request.field ?? 'Credential'} · ${request.location ?? ''}`}</span>- <Field value={value} onChange={setValue} placeholder="Credential or op:// reference" secret />- <span style={caption}>Saved securely on this computer. Never added to the conversation.</span>- </>- ) : null}- <div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>+ <div style={{ display: 'flex', flexDirection: 'column', gap: 12, width: '100%', maxWidth: 480, boxSizing: 'border-box', alignSelf: 'flex-start', padding: '14px 16px', border: '1px solid var(--border)', borderRadius: 20 }}>+ <div style={{ display: 'flex', alignItems: 'center', gap: 14 }}>+ <RequestLogo request={request} />+ <div style={{ display: 'flex', flexDirection: 'column', gap: 2, flex: 1, minWidth: 0 }}>+ <span style={{ ...font('body', 'semibold'), color: 'var(--text)', ...lineClamp(1) }}>{request.title}</span>+ {entry.data.text ? <span style={{ ...font('subheadline'), color: 'var(--secondary)', ...lineClamp(2) }} title={entry.data.text}>{entry.data.text}</span> : null}+ </div>+ {pending ? (+ <div style={{ display: 'flex', alignItems: 'center', gap: 6, flex: 'none' }}>+ {busy ? <Spinner /> : <IconButton title="Cancel request" icon="xmark" onClick={() => void cancel()} />}<Button disabled={busy || ((isSecret || isLogin) && !value)} onClick={() => void connect()}>- {isAgent ? 'Sign in' : isLogin ? 'Save login' : isSecret ? 'Save and connect' : 'Connect'}+ {isAgent ? 'Sign in' : isLogin ? 'Save' : 'Connect'}</Button>- <Button kind="secondary" disabled={busy} onClick={() => void cancel()}>Cancel</Button>- {busy ? <Spinner /> : null}</div>+ ) : (+ <span style={{ display: 'flex', alignItems: 'center', gap: 6, flex: 'none', ...font('subheadline'), color: 'var(--secondary)' }}>+ {request.status === 'ready' ? <Icon name="checkmark" size={11} weight="semibold" /> : null}+ {request.status === 'ready' ? (isAgent ? 'Signed in' : isLogin ? 'Saved' : 'Connected') : 'Cancelled'}+ </span>+ )}+ </div>+ {pending && isLogin ? (+ <>+ <Field value={username} onChange={setUsername} placeholder="Username or email" />+ <Field value={value} onChange={setValue} placeholder="Password or op:// reference" secret />+ <span style={caption}>Saved securely on this computer. The bot types it into the sign-in page but never sees it.</span>+ </>+ ) : pending && isSecret ? (+ <>+ <span style={caption}>{`${request.field ?? 'Credential'} · ${request.location ?? ''}`}</span>+ <Field value={value} onChange={setValue} placeholder="Credential or op:// reference" secret />+ <span style={caption}>Saved securely on this computer. Never added to the conversation.</span></>- ) : (- <span style={{ color: 'var(--secondary)' }}>{request.status === 'ready' ? (isAgent ? 'Signed in' : isLogin ? 'Saved' : 'Connected') : 'Cancelled'}</span>- )}+ ) : null}{error ? <span style={{ ...font('footnote'), color: 'var(--danger)' }}>{error}</span> : null}<FormSheet open={item !== null} onClose={() => setItem(null)}>{item ? <InstallConnectorSheet item={item} requestId={entry.id} done={() => setItem(null)} /> : null}@@ -123,3 +126,16 @@ export function ConnectionRequestCard({ entry }: { entry: Entry }) {</div>)}++/** The agent, website or service a request is for. */+function RequestLogo({ request }: { request: ConnectionRequest }) {+ const store = useStore()+ if (request.kind === 'agent') {+ const backend = store.hello?.backends.find((b) => b.id === request.backend)+ return <AgentTile registry={backend?.registry ?? request.backend} icon={26} tile={46} radius={12} />+ }+ if (request.kind === 'app') return <AppLogo url={request.logo} name={request.title} />+ // A login's site is a domain, or an app's name (no logo to find for that).+ if (request.kind === 'login') return <ServiceLogo site={request.site?.includes('.') ? request.site : null} name={request.title} />+ return <ServiceLogo name={request.title} registryName={request.registryName} />+}diff --git a/apps/desktop/src/renderer/views/marketplace/market-models.ts b/apps/desktop/src/renderer/views/marketplace/market-models.tsindex 3bbcb192..59f68af3 100644--- a/apps/desktop/src/renderer/views/marketplace/market-models.ts+++ b/apps/desktop/src/renderer/views/marketplace/market-models.ts@@ -125,6 +125,8 @@ export interface ConnectionRequest {site?: string | null/** Agent sign-in requests: the agent (backend id) to sign in to. */backend?: string | null+ /** App requests: the app's logo, when Composio lists it. */+ logo?: string | null}/** A saved website or app login; the password stays on the computer. */diff --git a/apps/desktop/src/renderer/views/marketplace/pieces.tsx b/apps/desktop/src/renderer/views/marketplace/pieces.tsxindex 0061fb18..3bee9dad 100644--- a/apps/desktop/src/renderer/views/marketplace/pieces.tsx+++ b/apps/desktop/src/renderer/views/marketplace/pieces.tsx@@ -116,9 +116,10 @@ function serviceDomain(website: string | null | undefined, name: string, registrreturn `${labels[1]}.${labels[0]}`}-/** A service's logo from its website favicon, on a white tile; its initial otherwise. */-export function ServiceLogo({ website, name, registryName, size = 46 }: { website?: string | null; name: string; registryName?: string | null; size?: number }) {- const domain = serviceDomain(website, name, registryName)+/** A service's logo from its website favicon, on a white tile; its initial otherwise. `site`: the+ * service's own domain when it's known (a login's site), even github.com. */+export function ServiceLogo({ website, site, name, registryName, size = 46 }: { website?: string | null; site?: string | null; name: string; registryName?: string | null; size?: number }) {+ const domain = site ?? serviceDomain(website, name, registryName)const radius = size * 0.26return (<div style={{ position: 'relative', width: size, height: size, borderRadius: radius, overflow: 'hidden', background: 'var(--bubble-agent)', display: 'grid', placeItems: 'center', flex: 'none' }}>diff --git a/apps/ios/Kit/Sources/CodyncKit/Models/Market.swift b/apps/ios/Kit/Sources/CodyncKit/Models/Market.swiftindex 3aed642b..36fdf126 100644--- a/apps/ios/Kit/Sources/CodyncKit/Models/Market.swift+++ b/apps/ios/Kit/Sources/CodyncKit/Models/Market.swift@@ -248,6 +248,8 @@ public struct ConnectionRequest: Codable, Hashable, Sendable {public var site: String?/// Agent sign-in requests: the agent (backend id) to sign in to.public var backend: String?+ /// App requests: the app's logo, when Composio lists it.+ public var logo: String?}/// A saved website or app login; the password stays on the computer.diff --git a/apps/ios/Kit/Sources/CodyncUI/Marketplace/ConnectionRequestCard.swift b/apps/ios/Kit/Sources/CodyncUI/Marketplace/ConnectionRequestCard.swiftindex 3ff75068..f5bf172c 100644--- a/apps/ios/Kit/Sources/CodyncUI/Marketplace/ConnectionRequestCard.swift+++ b/apps/ios/Kit/Sources/CodyncUI/Marketplace/ConnectionRequestCard.swift@@ -17,41 +17,44 @@ struct ConnectionRequestCard: View {@State private var busy = false@State private var error: String?+ private var pending: Bool { request.status == "pending" }+var body: some View {VStack(alignment: .leading, spacing: 12) {- Label(request.title, systemImage: "lock.shield")- .font(.headline)- if let text = entry.data.text { Text(text).foregroundStyle(Palette.secondary) }- if request.status == "pending" {- if request.kind == "login" {- TextField("Username or email", text: $username)- .plainTextInput()- SecureField("Password or op:// reference", text: $value)- .plainTextInput()- Text("Saved securely on this computer. The bot types it into the sign-in page but never sees it.")- .font(.caption).foregroundStyle(Palette.secondary)- } else if request.kind == "secret" {- Text("\(request.field ?? "Credential") · \(request.location ?? "")")- .font(.caption).foregroundStyle(Palette.secondary)- SecureField("Credential or op:// reference", text: $value)- .plainTextInput()- Text("Saved securely on this computer. Never added to the conversation.")- .font(.caption).foregroundStyle(Palette.secondary)- }- HStack {- Button(connectTitle) { connect() }- .buttonStyle(PrimaryButtonStyle())- .disabled(busy || (["secret", "login"].contains(request.kind) && value.isEmpty))- Button("Cancel") { cancel() }.buttonStyle(SecondaryButtonStyle()).disabled(busy)- if busy { Spinner() }+ HStack(spacing: 14) {+ logo+ VStack(alignment: .leading, spacing: 2) {+ Text(request.title).font(.body.weight(.semibold)).foregroundStyle(Palette.text).lineLimit(1)+ if let text = entry.data.text {+ Text(text).font(.subheadline).foregroundStyle(Palette.secondary).lineLimit(2)+ }}- } else {- Text(request.status == "ready" ? doneTitle : "Cancelled").foregroundStyle(Palette.secondary)+ Spacer(minLength: 8)+ trailing+ }+ if pending, request.kind == "login" {+ TextField("Username or email", text: $username)+ .plainTextInput()+ SecureField("Password or op:// reference", text: $value)+ .plainTextInput()+ Text("Saved securely on this computer. The bot types it into the sign-in page but never sees it.")+ .font(.caption).foregroundStyle(Palette.secondary)+ } else if pending, request.kind == "secret" {+ Text("\(request.field ?? "Credential") · \(request.location ?? "")")+ .font(.caption).foregroundStyle(Palette.secondary)+ SecureField("Credential or op:// reference", text: $value)+ .plainTextInput()+ Text("Saved securely on this computer. Never added to the conversation.")+ .font(.caption).foregroundStyle(Palette.secondary)}if let error { Text(error).font(.footnote).foregroundStyle(Palette.danger) }}- .padding(16)- .background(Palette.surface, in: RoundedRectangle(cornerRadius: 18))+ .padding(.horizontal, 16)+ .padding(.vertical, 14)+ .overlay(RoundedRectangle(cornerRadius: 20, style: .continuous).strokeBorder(Palette.border))+ // A card, not a banner: full width on a phone, capped on wider screens.+ .frame(maxWidth: 480, alignment: .leading)+ .frame(maxWidth: .infinity, alignment: .leading).textFieldStyle(.plain).codyncSheet(item: $item) { item inInstallConnectorSheet(item: item, requestId: entry.id) { self.item = nil }@@ -63,11 +66,46 @@ struct ConnectionRequestCard: View {.onDisappear { value = ""; username = "" }}+ /// The agent, website or service the request is for.+ @ViewBuilder private var logo: some View {+ switch request.kind {+ case "agent":+ let backend = model.hello?.backends.first { $0.id == request.backend }+ AgentIcon(registry: backend?.registry ?? request.backend, size: 26)+ .frame(width: 46, height: 46)+ .background(Palette.bubbleAgent, in: RoundedRectangle(cornerRadius: 12, style: .continuous))+ case "app":+ AppLogo(url: request.logo, name: request.title)+ case "login":+ // A login's site is a domain, or an app's name (no logo to find for that).+ ServiceLogo(website: nil, site: request.site.flatMap { $0.contains(".") ? $0 : nil }, name: request.title)+ default:+ ServiceLogo(website: nil, name: request.title, registryName: request.registryName)+ }+ }++ @ViewBuilder private var trailing: some View {+ if pending {+ HStack(spacing: 6) {+ if busy { Spinner() } else { IconButton("Cancel request", systemImage: "xmark") { cancel() } }+ Button(connectTitle) { connect() }+ .buttonStyle(PrimaryButtonStyle())+ .disabled(busy || (["secret", "login"].contains(request.kind) && value.isEmpty))+ }+ } else {+ HStack(spacing: 6) {+ if request.status == "ready" { Image(systemName: "checkmark").fontWeight(.semibold) }+ Text(request.status == "ready" ? doneTitle : "Cancelled")+ }+ .font(.subheadline)+ .foregroundStyle(Palette.secondary)+ }+ }+private var connectTitle: String {switch request.kind {case "agent": "Sign in"- case "login": "Save login"- case "secret": "Save and connect"+ case "login": "Save"default: "Connect"}}diff --git a/apps/ios/Kit/Sources/CodyncUI/Marketplace/MarketRows.swift b/apps/ios/Kit/Sources/CodyncUI/Marketplace/MarketRows.swiftindex 729992e5..baee532b 100644--- a/apps/ios/Kit/Sources/CodyncUI/Marketplace/MarketRows.swift+++ b/apps/ios/Kit/Sources/CodyncUI/Marketplace/MarketRows.swift@@ -140,12 +140,15 @@ struct SkeletonGrid: View {/// A service's logo from its website favicon, on a white tile; its initial otherwise.struct ServiceLogo: View {let website: String?+ /// The service's own domain when it's known (a login's site), even github.com.+ var site: String?let name: String/// MCP Registry names are reverse-DNS ("com.notion/mcp"): the owner's domain.var registryName: String?var size: CGFloat = 46private var domain: String? {+ if let site { return site }if let website, let host = URL(string: website)?.host(), host != "github.com" { return host }guard let owner = registryName?.split(separator: "/").first else { return nil }let labels = owner.split(separator: ".")diff --git a/host/src/market/requests.rs b/host/src/market/requests.rsindex 78bf8d97..58257739 100644--- a/host/src/market/requests.rs+++ b/host/src/market/requests.rs@@ -67,7 +67,8 @@ pub fn invite_agent_sign_in(}let request = json!({"kind": RequestKind::Agent, "status": RequestStatus::Pending, "title": name, "botId": bot,"backend": backend, "entryIds": entries});- let text = format!("{name} needs you to sign in. Your message goes out again once you're signed in.");+ // The card's title names the agent.+ let text = "Needs you to sign in. Your message goes out again once you're signed in.";hub.add_entry(lane,EntryKind::Notice,@@ -146,8 +147,15 @@ pub async fn call(hub: &Arc<Hub>, bot: &str, name: &str, args: &Value) -> Result}let lane = hub.runtime(bot).lane.unwrap_or_else(|| Lane::main(bot));let reason: String = text(args, "reason")?.chars().take(400).collect();+ // The card shows the app's own name and logo when Composio lists it.+ let listed = super::composio::toolkits(&hub.store, &toolkit, "")+ .await+ .ok()+ .and_then(|v| v["items"].as_array()?.iter().find(|t| t["slug"] == toolkit.as_str()).cloned());+ let title = listed.as_ref().and_then(|t| t["name"].as_str()).unwrap_or(&toolkit).to_owned();+ let logo = listed.as_ref().map_or(Value::Null, |t| t["logo"].clone());let entry = hub.add_entry(&lane,EntryKind::Notice,hub.store.max_turn(bot),&json!({"text":reason,"connectionRequest":{- "kind":RequestKind::App,"status":RequestStatus::Pending,"title":toolkit,"botId":bot,"toolkit":toolkit,"connectorId":format!("{}{}",super::composio::PREFIX,toolkit)+ "kind":RequestKind::App,"status":RequestStatus::Pending,"title":title,"logo":logo,"botId":bot,"toolkit":toolkit,"connectorId":format!("{}{}",super::composio::PREFIX,toolkit)}})).ok_or_else(|| anyhow!("Could not save connection request"))?;Ok(json!({"requestId":entry.id,"status":"waitingForUser"}))}