Directory / smolagents
smolagents
CodeAgent runs generated Python in a custom AST interpreter that blocks imports unless you allow them. For real isolation, the docs point to remote sandboxes like E2B, Modal or Docker.
Lock this down first
Use executor_type="e2b", "modal" or "docker" for any agent that touches untrusted input.
Scorecard
| Criterion | Rating | Notes |
|---|---|---|
| Permission granularity | 2/3 | Imports and submodules are blocked unless added to an authorized list. |
| Human approval gates | Unverified | Not confirmed in the docs we checked. |
| Sandboxing | 2/3 | Off by default: the local interpreter is not a full security boundary. Remote sandboxes (E2B, Modal, Docker, Blaxel) are opt-in. |
| Secrets handling | 1/3 | In code-only remote mode, secrets are not transferred to the sandbox. |
| Audit logs | 2/3 | OpenTelemetry instrumentation logs agent runs to a backend you choose. |
| Kill switch / interrupt | Unverified | Not confirmed in the docs we checked. |
| Network egress control | Unverified | Not confirmed in the docs we checked. |
Sources
Vendor? Request a correction. We review corrections within 7 days.
