Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/subprocess/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,14 @@ export class ClaudeSubprocess extends EventEmitter {
prompt, // Pass prompt as argument (more reliable than stdin)
];

// Allow skipping permission prompts via environment variable.
// This delegates security controls to the calling application (e.g., an
// orchestration layer that already handles permissions), making the proxy
// behave consistently with direct API access.
if (process.env.CLAUDE_DANGEROUSLY_SKIP_PERMISSIONS === "true") {
args.push("--dangerously-skip-permissions");
}

if (options.sessionId) {
args.push("--session-id", options.sessionId);
}
Expand Down