Skip to content

feat: add CLAUDE_DANGEROUSLY_SKIP_PERMISSIONS env var support#13

Open
kevinfealey wants to merge 1 commit intoatalovesyou:mainfrom
kevinfealey:feat/skip-permissions-env
Open

feat: add CLAUDE_DANGEROUSLY_SKIP_PERMISSIONS env var support#13
kevinfealey wants to merge 1 commit intoatalovesyou:mainfrom
kevinfealey:feat/skip-permissions-env

Conversation

@kevinfealey
Copy link

Purpose

Allows skipping CLI permission prompts via environment variable, enabling seamless integration with orchestration systems.

Use Case

When integrating with orchestration layers (like OpenClaw, custom agents, or automation pipelines) that already implement their own security controls and permission handling, the interactive CLI prompts become a barrier.

By setting CLAUDE_DANGEROUSLY_SKIP_PERMISSIONS=true, the proxy delegates security responsibility to the calling application, making it behave consistently with direct API access where no interactive prompts occur.

Security Considerations

  • The flag name intentionally includes "DANGEROUSLY" to signal this is a conscious security decision
  • Should only be used when the calling application implements appropriate security controls
  • Not enabled by default - requires explicit opt-in via environment variable

Usage

export CLAUDE_DANGEROUSLY_SKIP_PERMISSIONS=true
node dist/server/standalone.js

Allows skipping CLI permission prompts via environment variable.

This is useful when integrating with orchestration layers (like OpenClaw)
that already handle their own security controls and permissions. By
delegating security to the calling application, the proxy behaves
consistently with direct API access where no interactive prompts occur.

Set CLAUDE_DANGEROUSLY_SKIP_PERMISSIONS=true to enable.
@kevinfealey kevinfealey force-pushed the feat/skip-permissions-env branch from 2c18ed5 to e5025b8 Compare February 9, 2026 06:18
bwiedmann added a commit to bwiedmann/claude-max-api-proxy that referenced this pull request Feb 15, 2026
…ERMISSIONS env var support

# Conflicts:
#	src/subprocess/manager.ts
Grivn added a commit to mnemon-dev/claude-max-api-proxy that referenced this pull request Feb 20, 2026
Fixes applied (from upstream PRs atalovesyou#7, atalovesyou#11, atalovesyou#12, atalovesyou#13, atalovesyou#17, atalovesyou#20):

- fix: normalizeModelName crash on undefined model (issue atalovesyou#21)
- fix: [object Object] serialization for array content parts
- fix: E2BIG error by passing prompt via stdin instead of CLI arg
- fix: ensureString on result.result to prevent non-string output
- feat: CLAUDE_DANGEROUSLY_SKIP_PERMISSIONS env var for headless mode
- feat: OPENCLAW_PROXY=1 env injection for hook isolation
- feat: model aliases for claude-*-4-5, claude-*-4-6 generations
- feat: claude-proxy/ provider prefix support
- feat: developer role support in message conversion
- perf: increase subprocess timeout from 5min to 15min

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant