Skip to content

Integrations

Strands Agents integration

A Strands agent handed a Promigence sandbox runs its shell and file-editor tools there. Output streams back while a command is still running, so a line a long test run prints early reaches the agent well before the run ends.

The package is strands-promigence on PyPI, for Python.

Install

Install it and set your key.

Terminal
pip install strands-promigence
export PROMIGENCE_API_KEY=prom_api_...
export PROMIGENCE_SPEND_CAP=5
Language: bash

Example

From the guide Run Strands agents in a Promigence sandbox, which goes on to the spend cap, cleaning up, and what the package does not support.

Python
import asyncio
from strands import Agent
from strands_promigence import PromigenceSandbox

async def main() -> None:
    async with PromigenceSandbox(image="python:3.12-slim", spend_cap=1) as sandbox:
        agent = Agent(sandbox=sandbox)
        await agent.invoke_async("Install httpx and print its version.")

asyncio.run(main())
Language: python

Next

Get started

Leave your work email and we will get you started.

See our Privacy Policy for how we use your email.