Hivra
Free tool. No signup.

Is --dangerously-skip-permissions safe on your machine?

Running Claude Code with --dangerously-skip-permissions or Codex with --dangerously-bypass-approvals-and-sandbox removes the approval prompt before shell commands. That saves clicks during long runs, and also hands the agent whatever credentials live on that machine.

Choose your agent, permission mode, host boundary, repository trust level and reachable credentials. The check lists what is exposed, how to narrow it and prints a starter .claude/settings.json or Codex sandbox command you can copy straight into your project.

Credentials reachable on that machine
Risk levelHigh blast radius
Exposed items4
Host boundaryDaily laptop

Do not leave this setup running unattended. One bad command or prompt injection can reach real credentials or your daily machine.

Share this permissions check

Full bypass runs directly on your daily machine

High risk

No approval prompt stands between a bad command and your home directory. Every file your user account can read or delete is in reach.

Fix: Drop the bypass flag on your laptop and use an explicit allow/deny ruleset or move unattended runs to a separate VM.

Third-party code and PRs run with no confirmation step

Moderate

External PRs, test scripts and package hooks can execute with the same shell rights as the agent.

Fix: Run inside a separate VM or container with repo-scoped tokens instead of your full personal environment.

SSH keys or broad git tokens can push and read other repos

High risk

A personal ~/.ssh key or wide gh token gives the agent access to every repository your account touches, not just the current project.

Fix: Use a fine-grained token scoped to one repository instead of mounting ~/.ssh or a broad personal token.

.env files expose API keys and database URLs

Moderate

Any tool that reads files or prints environment variables can leak local .env secrets into logs or outbound requests.

Fix: Block .env reads in settings.json and use disposable local or staging secrets during agent runs.

Starter .claude/settings.json (narrower than full bypass)
{
  "permissions": {
    "allow": [
      "Read",
      "Glob",
      "Grep",
      "Bash(git status)",
      "Bash(git diff*)",
      "Bash(npm test*)"
    ],
    "deny": [
      "Read(.env)",
      "Read(.env.*)",
      "Read(~/.ssh/**)",
      "Read(~/.aws/**)",
      "Bash(rm -rf *)",
      "Bash(git push --force*)",
      "Bash(curl * | sh*)"
    ]
  }
}

Checked in your browser only. Nothing you select is sent to a server. Flag names and permission modes as of October 2026, from Anthropic and OpenAI documentation.

If you want unattended runs off your daily laptop, Hivra gives each agent its own VM from $9.99 a month for 2 vCPU and 4 GB of RAM. By default Hivra Chat runs Claude Code with --dangerously-skip-permissions and Codex with --dangerously-bypass-approvals-and-sandbox, and the Manage tab lets you narrow both to Limited or Read-only. Anything you sign in to on that computer stays reachable, so use scoped tokens and keep production keys off it.

Run Claude Code on Hivra

How this permissions check was built

The CLI flag names, permission modes, dev container caveats and Codex sandbox options come from Anthropic's Claude Code docs and OpenAI's Codex CLI reference. Sources: Anthropic Claude Code permission modes, Anthropic Claude Code headless docs, Anthropic Claude Code dev containers, OpenAI Codex CLI reference.

Risk tiers count concrete exposure combinations: full bypass on a daily laptop, untrusted repositories without prompts, mounted cloud profiles, broad SSH or git tokens, local .env secrets and personal browser profiles.

The Hivra permissions details match Hivra's own code: Full access uses the skip or bypass flag inside an isolated VM, Limited adds --disallowedTools Bash for Claude Code or --sandbox workspace-write for Codex, and Read-only drops the skip flag or sets --sandbox read-only.

Nothing on this page is a formal security audit or penetration test. Everything runs locally in your browser and no selections are sent to a server.

Last checked October 2026.

Worked examples

Full bypass on a daily laptop with SSH and .env secrets

Inputs: Claude Code, full bypass, daily laptop, mixed OSS repos, SSH + gh + .env.

High blast radius (4 exposed items). Starter .claude/settings.json denies .env*, ~/.ssh/**, ~/.aws/** and git push --force.

One stray command or malicious PR hook can read personal keys or mutate other repos. Drop full bypass on the laptop or move unattended runs to a separate VM.

Codex in a separate VM with workspace-write sandbox

Inputs: Codex CLI, limited mode, separate VM, own private repos, no personal creds.

codex exec --sandbox workspace-write "Review the diff and run the test suite"

Lower exposure. The VM keeps mistakes off your daily laptop, and workspace-write keeps Codex inside the repository boundary.

Dev container running bypass on an untrusted repository

Inputs: Claude Code, full bypass, Docker container, untrusted repos, cloud CLI mounted.

High blast radius (3 exposed items): untrusted prompt injection, cloud CLI credentials, dev container exfiltration.

Containers do not protect credentials mounted inside them. Unmount cloud configs and switch to read-only or interactive approvals on untrusted code.

Cite this page

Hivra, "Claude Code & Codex Permissions Check", https://hivra.cloud/tools/claude-code-permissions-check, facts last checked October 2026.

Source: <a href="https://hivra.cloud/tools/claude-code-permissions-check">Hivra</a>, Claude Code &amp; Codex Permissions Check, facts last checked October 2026.

Common questions

What does --dangerously-skip-permissions do in Claude Code?

It skips interactive permission prompts so Claude Code can edit files and run shell commands without asking. Anthropic documents it for isolated environments where you want unattended execution, not for a daily laptop holding personal keys.

What is the Codex equivalent of --dangerously-skip-permissions?

Codex CLI uses --dangerously-bypass-approvals-and-sandbox to turn off both approval prompts and the sandbox. For safer unattended runs, use codex exec --sandbox workspace-write or codex exec --sandbox read-only instead.

Is a Docker dev container enough to make skip-permissions safe?

It limits damage to the host filesystem, but Anthropic's dev container docs warn that a malicious project with skip-permissions active can still exfiltrate anything reachable inside the container, including Claude credentials in ~/.claude and any mounted keys.

How do I narrow Claude Code permissions without approving every read?

Put explicit permissions.allow and permissions.deny rules in .claude/settings.json. Allowing Read, Glob, Grep and test commands while denying .env files, ~/.ssh, ~/.aws and force pushes removes most routine prompts without full bypass.

What permission flags does Hivra use for Claude Code and Codex?

By default, Hivra Chat runs Claude Code with --dangerously-skip-permissions and Codex with --dangerously-bypass-approvals-and-sandbox inside the agent's own VM. On the Manage tab you can narrow both to Limited or Read-only, and session tabs start the CLI with no bypass flags.

What should I keep off an agent computer even in a separate VM?

Keep production cloud credentials, personal SSH keys, password managers and broad personal tokens off the machine. Use short-lived, repository-scoped tokens and test on a non-critical repo first.

When you need a computer that stays on

If you want the computer to stay on after you leave your desk, Hivra offers a managed computer starting at $9.99 a month for 2 vCPU and 4 GB of RAM. A paid Hivra Cloud computer stays on and is not paused for inactivity. The plan does not include AI usage. Bring your own account or key where the agent supports it, or pay with Hivra credits. Claude Code can use your own Anthropic sign-in or Hivra credits. There is a 7-day money-back guarantee on card payments.

Hivra is independent and is not affiliated with Anthropic or OpenAI.