Is sandbox enabled by default? #1874
Replies: 6 comments 3 replies
-
|
I believe not. I asked pi to check other users of this computer and it succesfully executed Also check https://mariozechner.at/posts/2025-11-30-pi-coding-agent/#toc_13
|
Beta Was this translation helpful? Give feedback.
-
|
Ok thanks for your reply, I read that blog post and I understand things better. However, then there's this thing called mom that seems to be able to run sandboxed easily? But I'm not sure I understand what it is, because it says something about Slack and I don't use Slack. |
Beta Was this translation helpful? Give feedback.
-
|
Interesting idea I just saw in HN that can easily help running pi under an easy sandbox: https://news.ycombinator.com/item?id=47301085 ( https://agent-safehouse.dev/ ( https://github.com/eugene1g/agent-safehouse ) ) |
Beta Was this translation helpful? Give feedback.
-
|
I ran into the same problem. Here is my solution so far -- using a Docker shim to prevent access to files outside of the working directory. |
Beta Was this translation helpful? Give feedback.
-
|
The pragmatic approach is to use Unix permissions type of isolation. For that, skynot might help, see #3176 |
Beta Was this translation helpful? Give feedback.
-
|
A possible approach could be to use dev containers for your projects. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm a bit scared about running this on my computer (and right now I can't be bothered to setup a VPS), so my question is very simple: if I run "git clone $someRepoUrl && cd someRepo" and then execute pi from that folder, am I absolutely sure that the AI won't read or write any files outside that folder?
Documentation on this subject seems to be a bit confusing, sorry if I'm asking a dumb question.
PS: Saw some stuff like leash which seems to hint that sandbox is indeed not default. But I was looking for something more robust (at the OS level), not just a blacklist of commands.
Cheers
Beta Was this translation helpful? Give feedback.
All reactions