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 { z } from 'zod'
// Why: a WSL host's server is one per Linux login, so other Orca desktops may share it.
export const ORCAD_PEER_DESKTOPS_METHOD = 'host.peerDesktops'
// A desktop names its installation on its long-lived control socket, so peers tell installations apart.
export const ORCAD_DECLARE_CLIENT_METHOD = 'host.declareClient'
const ClientInstanceIdSchema = z.string().regex(/^[A-Za-z0-9_-]{8,128}$/)
export const OrcadDeclareClientParamsSchema = z
.object({ clientInstanceId: ClientInstanceIdSchema })
.strict()
/** The caller's own installation, so none of its sockets count as another desktop. */
export const OrcadPeerDesktopsParamsSchema = z
.object({ clientInstanceId: ClientInstanceIdSchema.optional() })
.strict()
/** Other desktop installations with a declared control socket open on this server right now. */
export const OrcadPeerDesktopsResultSchema = z.object({
peers: z.array(z.object({ name: z.string() }))
})
export type OrcadPeerDesktopsResult = z.infer<typeof OrcadPeerDesktopsResultSchema>