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
export const COMPUTER_AWAKE_MODES = ['on', 'off', 'auto'] as const
export type ComputerAwakeMode = (typeof COMPUTER_AWAKE_MODES)[number]
export type ComputerAwakeStatus = {
mode: ComputerAwakeMode
active: boolean
}
export function normalizeComputerAwakeMode(
mode: unknown,
legacyAutoEnabled?: boolean
): ComputerAwakeMode {
const explicitMode = COMPUTER_AWAKE_MODES.includes(mode as ComputerAwakeMode)
? (mode as ComputerAwakeMode)
: null
if (!explicitMode) {
return legacyAutoEnabled === true ? 'auto' : 'off'
}
if (typeof legacyAutoEnabled === 'boolean' && legacyAutoEnabled !== (explicitMode !== 'off')) {
// Older builds can only change the legacy boolean, so disagreement means it was written later.
return legacyAutoEnabled ? 'auto' : 'off'
}
return explicitMode
}
export function computerAwakeSettingsForMode(mode: ComputerAwakeMode): {
computerAwakeMode: ComputerAwakeMode
keepComputerAwakeWhileAgentsRun: boolean
} {
return {
computerAwakeMode: mode,
// Older Orca versions approximate On with their supported Auto behavior.
keepComputerAwakeWhileAgentsRun: mode !== 'off'
}
}