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.
pip install strands-promigence
export PROMIGENCE_API_KEY=prom_api_...
export PROMIGENCE_SPEND_CAP=5
Language: bashExample
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.
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