# Recommendations and/or best practices on sandbox software to use when running Agents and/or Coding LLMs

**URL:** <https://community.deeplearning.ai/t/recommendations-and-or-best-practices-on-sandbox-software-to-use-when-running-agents-and-or-coding-llms/891786>\
**Category:** Agentic AI\
**Tags:** week-module-3, dl-ai-learning-platform\
**Created:** [April 25, 2026, 6:26pm UTC](https://community.deeplearning.ai/t/recommendations-and-or-best-practices-on-sandbox-software-to-use-when-running-agents-and-or-coding-llms/891786 "2026-04-25T18:26:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![J\_GA](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/j_ga/32/127522_2.png) [@J\_GA](https://community.deeplearning.ai/u/J_GA)\
**Post date:** [April 25, 2026, 6:26pm UTC](https://community.deeplearning.ai/t/recommendations-and-or-best-practices-on-sandbox-software-to-use-when-running-agents-and-or-coding-llms/891786/1 "2026-04-25T18:26:34Z")

</div>

In the Agentic AI course Andrew recommends using Docker or another sandbox type software when running Agentic code. I am curious to know the following:

- Are there other applications that have been developed recently
- What type of security guardrails these applications use to prevent an AI Agent from running prohibited code or connecting to malicious websites even if accidentally. Is that something that needs to be explicitly provided to the Agent
- When running Claude code should similar guardrails be given to it if let’s say you want Claude code itself to execute the code locally on your computer, does Claude Code know how to defend itself from AI Attacks planted on github as it is trying to solution something.

Thanks in advance for your time and attention to these questions.

JG

---

<div class="post-metadata">

**Author:** ![omarWael](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/omarwael/32/136263_2.png) [@omarWael](https://community.deeplearning.ai/u/omarWael)\
**Post date:** [April 27, 2026, 2:21pm UTC](https://community.deeplearning.ai/t/recommendations-and-or-best-practices-on-sandbox-software-to-use-when-running-agents-and-or-coding-llms/891786/2 "2026-04-27T14:21:16Z")

</div>

hi @J_GA

these are excellent questions that address the most critical part of moving agents into production security is now a requirement not just a recommendation

regarding your first question while docker is still a standard we have seen the rise of specialized environments designed specifically for ai code execution like microvms which provide much stronger isolation than traditional containers because they isolate the hardware at the kernel level

on the topic of guardrails you are right that agents need explicit boundaries modern systems now use a security model that includes

1 network whitelisting to prevent the agent from connecting to any malicious or unknown websites

2 resource limits to ensure the agent does not consume all your system memory or cpu

3 human in the loop gates where the agent must pause and ask for permission before executing any system level command

as for claude code or any similar tool the risk of prompt injection from github is real malicious code or instructions hidden in repositories can try to trick the agent into doing something unauthorized

the golden rule is to never run agentic code directly on your local machine without a sandbox layer even if the model has built in safety features it is always best to let it operate within an isolated environment to ensure your primary system stays safe

thank you for these thoughtful questions they are key to building safe ai applications

---

<div class="post-metadata">

**Author:** ![J\_GA](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/j_ga/32/127522_2.png) [@J\_GA](https://community.deeplearning.ai/u/J_GA)\
**Post date:** [April 28, 2026, 8:29pm UTC](https://community.deeplearning.ai/t/recommendations-and-or-best-practices-on-sandbox-software-to-use-when-running-agents-and-or-coding-llms/891786/3 "2026-04-28T20:29:14Z")

</div>

Thank you @omarWael - it was interesting as recently as these weekend I started getting some info from docker about their SBX sandboxes to run agents [Docker Sandboxes | Docker Docs](https://docs.docker.com/ai/sandboxes/). May be worth a look. I appreciate your feedback on my question. Regards, JG

---

<div class="post-metadata">

**Author:** ![omarWael](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/omarwael/32/136263_2.png) [@omarWael](https://community.deeplearning.ai/u/omarWael)\
**Post date:** [April 28, 2026, 9:32pm UTC](https://community.deeplearning.ai/t/recommendations-and-or-best-practices-on-sandbox-software-to-use-when-running-agents-and-or-coding-llms/891786/4 "2026-04-28T21:32:38Z")

</div>

thanks for the link @J_GA

docker sandboxes look very promising for agent security as they bridge the gap between ease of use and strong isolation

i will check the docs to see how they handle resource overhead compared to other methods

appreciate the share and the great discussion

---

<div class="post-metadata">

**Author:** ![Yura\_Dubinin](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/yura_dubinin/32/175332_2.png) [@Yura\_Dubinin](https://community.deeplearning.ai/u/Yura_Dubinin)\
**Post date:** [October 28, 2026, 8:37pm UTC](https://community.deeplearning.ai/t/recommendations-and-or-best-practices-on-sandbox-software-to-use-when-running-agents-and-or-coding-llms/891786/5 "2026-10-28T20:37:58Z")

</div>

This post was flagged by the community and is temporarily hidden.
