Guide

Skip Claude Code’s permission prompts on a computer where a mistake costs little.

The --dangerously-skip-permissions flag lets your agent work for hours without stopping to ask. Here is what it lets Claude Code do, and where it’s safe to use.

The short answer

With --dangerously-skip-permissions, Claude Code stops asking before it runs a command or changes a file. On your own computer, that means it can do whatever you can: delete files, read your keys, push code.

Anthropic’s advice is to use the flag only inside a container, a virtual machine or its sandbox runtime, so a mistake stays inside. That can be a dev container, Docker’s sandboxes, a server you rent, or a tile: a computer in the cloud with only your project on it.

Checked . Other companies’ tools change often, so look at their own pages too.

What the flag lets Claude Code do

Claude Code normally asks before it runs a command or changes a file, unless you’ve allowed it. The flag turns those questions off for the whole session. That is what lets an agent get through a long job while you’re away.

It also means nothing checks what it does. A wrong command, or instructions hidden in a web page or a file it reads, runs with everything your user can reach:

  • Your files, not just the project’s, including ones it could delete.
  • Your keys: .env files, ~/.ssh and the sign-ins of your other tools.
  • Your Git remotes, so it can push.
  • The internet, so what it reads can leave.

Codex has the same switch, --dangerously-bypass-approvals-and-sandbox, or --yolo for short. Everything here applies to it too.

Five places to run it

From the least setup to the most. Each one puts a wall somewhere different.

  1. Claude Code’s own sandbox

    Type /sandbox in Claude Code to turn it on. Its commands can then write only in your project, and reach only the sites you allow. It works on a Mac, Linux and WSL2.

    Good when
    You’re at your computer and want fewer prompts, not none.
    What it asks
    It covers commands only. File edits, web fetches and MCP servers run outside it, and commands can still read most of your computer unless you say otherwise. Anthropic says it isn’t enough on its own for a run nobody watches.
  2. A dev container

    Run Claude Code in a container set up from your repository. Anthropic publishes an example dev container with a firewall that blocks the sites you haven’t allowed.

    Good when
    You already use Docker or dev containers, and want the setup kept with your code.
    What it asks
    Docker on your computer, and a container and a list of allowed sites to look after. Your project folder is shared with the container, so its changes reach your computer, and a container shares your computer’s kernel: a thinner wall than a virtual machine.
  3. Docker Sandboxes

    Docker’s sbx tool runs Claude Code in a small virtual machine of its own, with the flag already on: sbx run claude.

    Good when
    You want a real wall around your agent, on your own computer, in one command.
    What it asks
    A Mac with Apple silicon, Windows 11 or Ubuntu 24.04 or later. Your project folder is shared by default, so changes reach your computer as they happen, and your computer has to stay on.
  4. A server you rent

    A Linux server in the cloud with only your project on it. Make an ordinary user, install Claude Code, and run it in tmux.

    Good when
    You want full control, and a computer you can throw away and make again.
    What it asks
    Every part is yours: the user, SSH, a firewall, updates, your tools, getting your project there and signing your agent in.
  5. A tile, from TilesOurs

    Your own Linux computer in the cloud, made for coding agents. Only your project and what you choose to bring are on it, and nothing reaches it from the internet: it has no open ports.

    Good when
    You want long runs with no prompts, away from your laptop’s files and keys, without building a server.
    What it asks
    Your project syncs both ways, so what Claude Code does in the project folder reaches your laptop too: push first. The tile can reach the internet, and it’s signed in to your Claude plan and to Tiles, so your agent can use those.

Which one to pick

  • At your computer, and you want fewer prompts: Claude Code’s own sandbox.
  • No prompts, on your own computer: Docker Sandboxes, or a dev container.
  • Long runs with your laptop shut, and nothing to set up: a tile.
  • You’d rather build it yourself: rent a server.

How to do it with a tile

A few minutes, then your agent works without asking, away from your laptop.

  1. Commit and push your work

    Your project syncs both ways between your laptop and your tile, so what Claude Code changes there reaches your laptop too. Push it first, so there is a copy to go back to.

  2. Make your tile

    In Terminal, in your project’s folder, paste this and press Enter. Sign in, approve this computer, and say what comes along. It asks before it copies secrets, like .env files: say no to any the job doesn’t need.

    curl -fsSL https://ai-tiles.com/computer.sh | sh
  3. Open a shell on your tile

    Open a new terminal and run tiles ssh. You’re on your tile, in tmux. If Claude Code is already running there, type /exit.

  4. Start Claude Code with the flag

    Run claude --dangerously-skip-permissions in your project’s folder and give it the job. The first time, it asks you to confirm. For Codex, run codex --yolo.

  5. Close your laptop, then read what changed

    Come back with tiles ssh, or open your tile at app.ai-tiles.com, your phone too. Before you keep the work, read what changed with git diff, as you would a colleague’s.

Need the steps in more detail? They’re in How to keep Claude Code running and on the Running agents page.

Whichever you pick

  • Push your work first, so there’s a copy to go back to.
  • Bring only the keys the job needs, and ones that can do little: a token for one repository, or a test key, not your main account.
  • Limit the sites it can reach where you can, as Claude Code’s sandbox and Anthropic’s dev container do.
  • Run it as an ordinary user. Claude Code won’t start with the flag as root on a Mac or Linux.
  • Read what changed before you keep it.

Let your agent work without asking, on a computer of its own.

Get your tileMore about Running agents