Open-source, local-first AI agent team for your desktop: multi-agent group chats, computer use, browser, MCP, routines and approvals. macOS, Windows, Linux + Android. Built on pi.
TypeScript agentai-agentai-agentsai-assistantandroidautomationchatgptcoding-agentcomputer-usedesktop-appelectronllmlocal-firstmcpmulti-agentollamaopenaiprivacyself-hostedtypescript
/**
* The desktop's OS (`process.platform` values), read from the preload bridge. Capability UIs use
* this instead of `window.pibot`, whose full type belongs to the desktop app.
*/
export function hostPlatform(): string | undefined {
return (globalThis as { pibot?: { platform?: string } }).pibot?.platform;
}