diff --git a/scripts/provider-bootstrap.ts b/scripts/provider-bootstrap.ts index 82ebbbb6..ad3f9bd3 100644 --- a/scripts/provider-bootstrap.ts +++ b/scripts/provider-bootstrap.ts @@ -148,7 +148,7 @@ async function main(): Promise { const profile = createProfileFile(selected, env) const outputPath = resolve(process.cwd(), '.openclaude-profile.json') - writeFileSync(outputPath, JSON.stringify(profile, null, 2), 'utf8') + writeFileSync(outputPath, JSON.stringify(profile, null, 2), { encoding: 'utf8', mode: 0o600 }) console.log(`Saved profile: ${selected}`) console.log(`Goal: ${goal}`)