xpay tools logo
  • Tools
  • Collections
  • Skills
  • Docs
  • xpay.sh
  1. Home
  2. ›
  3. Code Runner
  4. ›
  5. Execute Code

Code Runner
Code Runner
Tool

Execute Code

execute_code

Execute JavaScript or Python code securely with comprehensive error handling and security measures

How it works ↓

Pricing

Per call

$0.01

Model

flat


Pay only for what you use. No subscriptions.
Inputs

input

string

language *

string

memoryLimit

number

code *

string

enableNetworking

boolean

timeout

number
Try It
API
MCP Config
Input Parameters
input
Input data for the program (stdin)
​
language *
Programming language to execute
memoryLimit
Memory limit in MB (max 512)
code *
Code to execute
timeout
Execution timeout in milliseconds (max 60000)
Cost per run
Execution cost
$0.01
Deducted from your xPay allowance
About Execute Code

Execute JavaScript or Python code securely with comprehensive error handling and security measures

Frequently Asked Questions

Execute JavaScript or Python code securely with comprehensive error handling and security measures

Execute Code 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 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.)

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 immediately. Billing flows through your xpay balance.

Execute Code accepts 6 input parameters: input, language, memoryLimit, code, enableNetworking, timeout. See the input schema and runnable form on this page for details and to test live.

xpay tools logo

Marketplace for AI Capabilities. Run agents, tools & prompts with pay-per-use micropayments.

or ask your AI app
Popular Tools
FirecrawlTavilyExaHunterPerplexityRecraftIdeogramFlux
Collections
AI Image & MediaContent & ResearchDev ToolsFinanceLead GenWeb ScrapingCompetitive Intel
Developers
DocumentationAPI ReferenceQuickstartSDKsSkillsskill.mdllms.txt
Resources
The Agentic EconomyAgentic CommerceAgent Frameworksx402 ProtocolBlog
Company
About xpayxpay.shGitHubDiscordTwitter / X

© 2026 Agentically Inc. All rights reserved.
Privacy PolicyTerms of Service
✦
xpay Assistant
Execute Code by Code Runner

Ask me about tools, pricing, or how to connect

How does this tool work?
What parameters does it accept?
Show me a usage example
DocsCollectionsExplore