the universal sandbox runtime for agents and humans. pocketenv.io
sandbox openclaw agent claude-code vercel-sandbox deno-sandbox cloudflare-sandbox atproto sprites daytona
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use $HOME for code-server settings path

Read HOME from the environment (trim stdout) and fall back to /root
when empty to avoid hardcoding the /root path for the settings file

+5 -2
+5 -2
apps/cf-sandbox/src/providers/cloudflare/index.ts
··· 82 82 } 83 83 84 84 async setupSshKeys(privateKey: string, publicKey: string): Promise<void> { 85 - const HOME = "/root"; 85 + const homeResult = await this.sh`echo $HOME`; 86 + const HOME = homeResult.stdout.trim() || "/root"; 86 87 await this.sh`mkdir -p $HOME/.ssh`; 87 88 await this.writeFile(`${HOME}/.ssh/id_ed25519`, privateKey); 88 89 await this.writeFile(`${HOME}/.ssh/id_ed25519.pub`, publicKey); ··· 149 150 150 151 async exposeVscode(hostname: string): Promise<string | null> { 151 152 try { 153 + const homeResult = await this.sh`echo $HOME`; 154 + const HOME = homeResult.stdout.trim() || "/root"; 152 155 await this.writeFile( 153 - "/root/.local/share/code-server/User/settings.json", 156 + `${HOME}/.local/share/code-server/User/settings.json`, 154 157 JSON.stringify( 155 158 { 156 159 "workbench.colorTheme": "6. KIROㅤㅤ(Lynx Theme)",