Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
import type { HostOs } from './host-os'
export type { HostOs } from './host-os'
// Use the phone OS for keyboard/inset arithmetic: Platform.OS is web here; iPadOS needs the Mac-plus-touch heuristic.
export function hostOs(): HostOs {
const agent = globalThis.navigator?.userAgent ?? ''
if (/iP(ad|hone|od)/.test(agent)) {
return 'ios'
}
if (globalThis.navigator?.platform === 'MacIntel' && globalThis.navigator.maxTouchPoints > 1) {
return 'ios'
}
return agent.includes('Android') ? 'android' : 'web'
}