Execute Code With Variables
execute_code_with_variablesExecute JavaScript or Python code with dynamic input variables that can be defined and passed as key-value pairs
How it works ↓Pricing
Per call
$0.01
Model
flat
Pay only for what you use. No subscriptions.
Inputs
input
stringvariables
stringcode *
stringenableNetworking
booleanlanguage *
stringmemoryLimit
numbertimeout
numberInput Parameters
Cost per run
Execution cost$0.01
About Execute Code With Variables
Execute JavaScript or Python code with dynamic input variables that can be defined and passed as key-value pairs
Frequently Asked Questions
Execute JavaScript or Python code with dynamic input variables that can be defined and passed as key-value pairs
Execute Code With Variables costs $0.01 per call on xpay. No subscription, no minimums. Pay only for the calls you make. New accounts get $5 in free credits.
Connect the Code Runner MCP endpoint to your client — Claude Code: claude mcp add --transport http code-runner "https://code-runner.mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY"; Cursor/Windsurf/Cline/VS Code: same URL in mcp.json. The agent will see execute_code_with_variables as a callable tool with the input schema and run it directly. (Unified across all providers: https://mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY, then xpay_run with toolPath code-runner/execute_code_with_variables.)
Yes — that's exactly what xpay is for. You don't need a Code Runner account or API key. Sign up at xpay.tools (Google or email), get $5 free credit, and run Execute Code With Variables immediately. Billing flows through your xpay balance.
Execute Code With Variables accepts 7 input parameters: input, variables, code, enableNetworking, language, memoryLimit…. See the input schema and runnable form on this page for details and to test live.

