Repository navigation
Description
Area
CLI
What are you trying to accomplish?
When launching Claude Code via ocx claude, I want all tool permissions to be auto-approved without interactive prompts — the same behaviour you get with claude --permission-mode=bypassPermissions. I currently have to type ocx claude --permission-mode=bypassPermissions every time, which is tedious and error-prone.
What prevents this today?
There is no field in config.claudeCode that tells ocx claude to append --permission-mode=bypassPermissions automatically. The ocx binary directly spawn("claude", args) and does not read any bypass-related config. A shell wrapper (bash function) around ocx is possible but fragile — it clashes with other ocx subcommands and does not survive across shell profiles.
What should OpenCodex do?
Add an optional boolean field bypassPermissions under config.claudeCode. When set to true, ocx claude should inject --permission-mode=bypassPermissions into the argument list passed to the spawned claude child process.
// ~/.opencodex/config.json
{
"claudeCode": {
"enabled": true,
"bypassPermissions": true // new field
}
}A default of false (or absent) preserves the current behaviour — prompting the user for every tool call.
Example usage or interface
# Before (manual, every time)
ocx claude --permission-mode=bypassPermissions "fix the auth bug"
# After (set once in config, then just)
ocx claude "fix the auth bug"Alternatively, a dedicated CLI subcommand flag could work:
ocx claude --bypass # sugar flag for a single launchAlternatives or workarounds
- Bash function wrapper: wrap
ocxin a shell function that detectsclaudesubcommand and appends the flag. Works but fragile — must be sourced in every new shell profile. - Manually pass the flag:
ocx claude --permission-mode=bypassPermissionsworks today. This request is purely for convenience and automation.
Additional context
- This mirrors how the existing
claude()bash wrapper in many users'.bashrcalready appends--permission-mode=bypassPermissionsfor directclaudeinvocations. - The implementation surface is minimal:
cmdClaude()insrc/cli/claude.tsalready has access to the full config. It just needs to read one extra boolean and splice one extra argument.
Checks
- I searched existing issues and documentation.
- This request describes a concrete OpenCodex workflow rather than merely naming a desired technology.
- I removed secrets and personal data.
Activity
github-actions commentedon Jul 29, 2026
Automated translation bookkeeping — detected language: unknown.
jhste102lab commentedon Jul 29, 2026
Additionally, it would be useful to have an ON/OFF toggle for this in the web dashboard (GUI) under the Claude integration settings, not just the JSON config / CLI path. That way users can flip it without editing config files manually.
Ingwannu commentedon Aug 1, 2026
Declining the persistent configuration option.
bypassPermissions disables Claude Code's interactive tool authorization boundary. Storing it in OpenCodex config would silently apply that unsafe mode to every later ocx claude launch, including launches where the user no longer remembers the setting. The existing explicit per-launch argument already works and preserves visible consent at the point of use:
ocx claude --permission-mode=bypassPermissions
A shell alias is also under the user's direct control. We will not add a dashboard toggle or persistent auto-injection for this flag.