Skip to main content

crewai-plimsoll

A CrewAI agent that writes and runs code needs a sandbox, and CrewAI no longer brings one. Its Code Interpreter tool was removed after CVE-2026-2275: in CERT/CC's words, "The CrewAI CodeInterpreter tool falls back to SandboxPython when it cannot reach Docker", which let an attacker who could steer the agent through a prompt injection run code outside the intended Docker isolation (CERT/CC VU#221883 (EXTERNAL · advisory ↗)). CrewAI's documentation now says "Use a dedicated sandbox service" (CrewAI docs (EXTERNAL · official docs ↗)).

This package is a CrewAI tool that runs an agent's code in plimsoll, a sandbox service you run yourself, and it has no fallback: if the sandbox is weaker than you asked for, nothing runs.

Install

pip install crewai-plimsoll

It needs a running plimsolld, the plimsoll daemon, reachable from the crew (getting started (EXTERNAL · source repo ↗)). The tool's default language is Python, which on docker needs a project image with python3 in it (SANDBOX_DOCKER_PROJECT_IMAGE=plimsoll/sandbox-python:latest): on the default image every Python call comes back refused. CrewAI itself supports Python 3.10 to 3.13.

Use

from crewai import Agent
from crewai_plimsoll import Client, CodeExecutor, PlimsollCodeTool

executor = CodeExecutor(Client("https://plimsoll.internal:8746", token=TOKEN))
agent = Agent(
    role="Analyst",
    goal="Answer with numbers you computed",
    backstory="You check your arithmetic by running it.",
    tools=[PlimsollCodeTool(executor)],
)

The tool is named plimsoll_run_code. The agent passes it code (Python or JavaScript) and optional input files, and gets back whether the code ran (yes, no with the reason, or unknown), the output, the exit code, whether anything was cut short or timed out, the isolation tier the code ran behind, and the SHA-256 of the run's record.

What it does, and what it refuses to do

  • Every call runs in a fresh sandbox. Nothing a call writes or starts is there for the next one.
  • One web API, if you grant one. CodeExecutor(client, grant_profile="lights", api_description=...), with a profile the operator configured on the daemon and the description plimsoll-specgen wrote for it, lets the tool's code call that profile's routes, and nothing else, through plimsoll's broker, which adds the API's key outside the sandbox. JavaScript works on every provider that gives a project run a grant; Python too on docker and openshell, through import plimsoll_host. The tool reads the daemon's answer when it is built, offers only the languages that can call the API there, and tells the model the routes; the model never names a profile. The code can do whatever an allowed route permits and read whatever it returns (capability grants (EXTERNAL · source repo ↗)).
  • No fallback. CodeExecutor requires the kernel isolation tier by default (gVisor, a user-space kernel, or a virtual machine). Against a daemon that states less, it refuses before any code is sent, and the refusal says nothing ran. Lowering the floor is a choice you make in code: CodeExecutor(client, minimum_isolation="container").
  • A checked record of every run. Each answer carries a run record, the daemon's statement of what was sent, what came back and where it ran, and the client recomputes its digests before handing the result to the crew.
  • CrewAI's tool cache never answers for it. A cached answer would carry no checked record, so the tool makes the cache miss for its name. A cache handler of your own that overrides read is not covered: keep cache=False for such a crew.

What it is not

  • Not a hosted service. You run plimsolld on your own machine or cluster, with a provider you pick: docker under gVisor, an E2B or Docker Cloud microVM, a Kubernetes agent-sandbox pod, and others (isolation tiers (EXTERNAL · source repo ↗)).
  • Not attestation. A reported tier is the daemon's configuration and provider evidence plus a startup check, not hardware proof.

Versions

This package's version moves with plimsoll's releases, and each version requires the plimsoll-client release of the same number, which holds the tool's code (plimsoll_client.crewai). Client, CodeExecutor and PlimsollCodeTool here are plimsoll-client's own classes, gathered so a crew imports from one place. It is tested with, and installs with, exactly crewai 1.15.23: pip installs that version beside it and refuses another, and each new CrewAI release is tested before the pin moves.

Licensed under the Apache License 2.0. Source: plimsoll on GitHub (EXTERNAL · source repo ↗).

Metadata

Release files for crewai-plimsoll 0.28.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crewai-plimsoll 0.28.0
File Size Uploaded Provenance Actions
crewai_plimsoll-0.28.0.tar.gz 8.2 kB With provenance Details for crewai_plimsoll-0.28.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crewai-plimsoll 0.28.0
File Interpreter ABI Platform Actions
crewai_plimsoll-0.28.0-py3-none-any.whl Python 3 none any Details for crewai_plimsoll-0.28.0-py3-none-any.whl

Total release size: 16.7 kB

Release files / crewai_plimsoll-0.28.0.tar.gz

Download URL crewai_plimsoll-0.28.0.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b8ff46e1254c85be54a986c933b8e0b05618250d4e66c5094a0f5015b612cfb1
BLAKE2b-256 checksum
How to use checksums
58df560ab29c4a7fb068656d2d455076b4a5d0f960d5a19f8f04dc874907513a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / crewai_plimsoll-0.28.0-py3-none-any.whl

Download URL crewai_plimsoll-0.28.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4e668bba0511eac5d1ac996075bbf865e79b9c02f38ff5db68b748380f87ef2b
BLAKE2b-256 checksum
How to use checksums
9d8a9fb63ef94575eb9c7a216c5db58a8ad090c2ee5c82a28e2ce49864de87d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for crewai-plimsoll 0.28.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for crewai_plimsoll-0.28.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page