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 { homedir } from 'node:os'
import { join } from 'node:path'
/** OpenCode's Global.config follows XDG_CONFIG_HOME on every supported host. */
export function resolveOpenCodeConfigDirectory(
environment: NodeJS.ProcessEnv | Record<string, string> = process.env,
homeDirectory = homedir()
): string {
const executionHome = process.platform === 'win32' ? environment.USERPROFILE : environment.HOME
return join(
environment.XDG_CONFIG_HOME?.trim() || join(executionHome || homeDirectory, '.config'),
'opencode'
)
}