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 { ipcRenderer } from 'electron'
import type { PreloadApi } from '../api-types'
export const sessionApi = {
get: (hostId) => ipcRenderer.invoke('session:get', hostId),
listHostIds: () => ipcRenderer.invoke('session:list-host-ids'),
set: (args, hostId) => ipcRenderer.invoke('session:set', args, hostId),
patch: (args, hostId) => ipcRenderer.invoke('session:patch', args, hostId),
closeTerminalSurface: (args) => ipcRenderer.invoke('session:close-terminal-surface', args),
flush: () => ipcRenderer.invoke('session:flush'),
readTerminalScrollback: (args) =>
ipcRenderer.sendSync('session:read-terminal-scrollback-sync', args),
hasTerminalScrollback: (args) =>
ipcRenderer.sendSync('session:has-terminal-scrollback-sync', args)
} satisfies PreloadApi['session']