{"uid":"cap_HqBCVVZV2wxfrMsqp9mXk","slug":"statemind-python-sandbox-executor-4540c974","name":"StateMind Python Sandbox Executor","description":"Run Python in a throwaway container with no network and a read-only filesystem, and report what it did against the caller's examples.","url":"https://api.statemind.ai/v1/x402/execute","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BAILpmhucLW_52-7qElIB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs Python code in an isolated, networkless, read-only container and reports execution results against provided test examples","exampleAgentPrompt":"Run this Python function in a secure sandbox and check whether it produces the right outputs for my test examples — the function takes a list of integers and returns their sum, and my examples are: input [1,2,3] should give 6 and input [10,20] should give 30.","exampleUseCases":[{"title":"Validate student coding assignment","prompt":"Run this student's Python solution for the fizzbuzz problem in a safe sandbox and tell me whether it passes all 5 of my test cases — I need to know which ones fail and what the actual output was."},{"title":"Test data transformation function","prompt":"Execute this Python function that parses CSV rows into dicts and check it against my example inputs and expected outputs so I know if it handles edge cases like empty fields correctly."},{"title":"Safely run untrusted Python snippet","prompt":"I have some Python code from a third party that I don't fully trust — can you run it in an isolated container with no internet access and tell me exactly what it prints and whether it exits cleanly?"}],"resultDescription":"Returns execution results including stdout, stderr, exit code, and a pass/fail report comparing actual outputs against the caller's provided test examples, all captured from a throwaway container with no network and a read-only filesystem.","failureModes":["Code with syntax errors fails immediately with error details","Infinite loops or excessive compute may be killed by resource limits","Code requiring network access will fail since the container has no network","Code attempting filesystem writes will fail due to read-only filesystem","Malformed request payload returns a 4xx error","Timeout if execution exceeds allowed duration"],"whenToPreferThis":"Use this endpoint when you need to safely execute Python code in a completely isolated environment — no network, no filesystem writes — and want to automatically validate the output against known test examples. It is ideal for grading code, verifying untrusted snippets, or running automated tests without risking side effects on the host system. Pair it with the sibling lint/check endpoint first for code that hasn't been validated yet.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:31:34.435Z","isFirstParty":false}