{"uid":"cap_jHXIhXK0cy6EnkeYyTaJ9","slug":"hubvibe-code-execution-google-sandbox-b5ae63e1","name":"HubVibe Code Execution (Google Sandbox)","description":"Run Python code in a sandbox: execute Python in Google's hosted sandbox (not on this service's machines) and get the code, its printed output and the outcome back. Use it for calculations, data transforms and checks an agent should not do in its head. Input: code. Questions over BigQuery data: data.query.","url":"https://hubvibe-io.com/work/code/execute?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"code":{"type":"string"},"language":{"type":"string","pattern":"^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$","maxLength":35}}},"responseSchema":{"type":"json","example":{"result":{"code":"print(sum(range(10)))","model":"gemini-2.5-flash","output":"45\n","outcome":"OUTCOME_OK","summary":"Printed the sum 45."},"status":"ok","worker":"code.execute","price_usd":0.25,"provenance":{"steps":[{"ms":640,"ok":true,"step":"execute","provider":"code_exec"}],"attempts":1,"elapsed_ms":660,"providers_used":["code_exec"]},"receipt_id":"rcpt_9f1c2b3a4d5e6f70","receipt_url":"/work/receipts/rcpt_9f1c2b3a4d5e6f70"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.25","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.25/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_oNCW-keV4sPevvDn9wUCd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.25","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes arbitrary Python code in Google's hosted sandbox and returns the code, its stdout/output, and the execution outcome.","exampleAgentPrompt":"Can you run this Python code for me and show me the output: `import math; print(math.factorial(20))`?","exampleUseCases":[{"title":"On-the-fly data calculation","prompt":"Run this Python snippet for me and tell me what it prints: `data = [3, 7, 2, 9, 1]; print(sorted(data), sum(data)/len(data))`"},{"title":"Agent-driven algorithm testing","prompt":"Execute this Python function and give me back the result: `def fib(n): return n if n <= 1 else fib(n-1)+fib(n-2); print(fib(30))`"},{"title":"String processing automation","prompt":"I need you to run this Python code that parses and reformats some text — here's the script: `s = 'hello world foo bar'; print(' '.join(w.capitalize() for w in s.split()))`"}],"resultDescription":"Returns the submitted Python code, any standard output (stdout) produced during execution, and the execution outcome status (e.g. success or error), all from Google's hosted sandbox environment.","failureModes":["Syntax errors in submitted Python code cause execution failure with error output","Disallowed operations or imports blocked by the sandbox return an error outcome","Timeout if the code runs too long or enters an infinite loop","Network or sandbox unavailability returns a service error","Non-Python code or empty code string may be rejected"],"whenToPreferThis":"Choose this endpoint when you need to execute Python code in a secure, Google-hosted sandbox without managing your own infrastructure. It is ideal for agents that need to perform dynamic computations, data transformations, or algorithmic tasks at runtime. Prefer it over local execution when isolation and safety are required, or when the agent runtime does not have a Python environment available.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:30:15.553Z","isFirstParty":false,"canonicalSlug":"hubvibe-code-execution-google-sandbox-b5ae63e1"}