diff --git a/src/auth-cli.ts b/src/auth-cli.ts index cb2cb9c..979e35d 100644 --- a/src/auth-cli.ts +++ b/src/auth-cli.ts @@ -18,8 +18,9 @@ import { spawnSync } from 'child_process'; import * as path from 'path'; import * as os from 'os'; +const home = process.env.HOME || os.homedir(); const AUTH_RT_BIN = process.env.AUTH_RT_BIN - || path.join(os.homedir(), '.openclaw', 'bin', 'auth-rt'); + || path.join(home, '.openclaw', 'bin', 'auth-rt'); export interface ApiResponse { status: number;