xpay tools logo
  • Tools
  • Collections
  • Skills
  • Docs
  • xpay.sh
Tool Skill
Code Runner logo

Execute Code

execute_code

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

$0.01/call
Flat rate
Code Runner
Raw SKILL.mdTool Page

When to Use

Use this tool when you need to execute javascript or python code securely with comprehensive error handling and security measures. This is part of the Code Runner provider on xpay✦.

MCP Connection

Connect to xpay✦ to access this tool (and 3+ others):

{
  "mcpServers": {
    "xpay": {
      "url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
    }
  }
}

For Claude Code:

claude mcp add --transport http xpay "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"

How to Execute

Use the xpay✦ meta-tools to run this tool:

  1. xpay_details — Get full input schema: xpay_details("code-runner/execute_code")
  2. xpay_run — Execute: xpay_run("code-runner/execute_code", { ...inputs })

Input Parameters

ParameterTypeRequiredDescription
inputstringNoInput data for the program (stdin)
languagestringYesProgramming language to execute
memoryLimitnumberNoMemory limit in MB (max 512)
codestringYesCode to execute
enableNetworkingbooleanNoEnable network access for this execution
timeoutnumberNoExecution timeout in milliseconds (max 60000)

Pricing

  • Cost: $0.01/call
  • Balance check: Use xpay_balance to check remaining credits
  • Get your API key at xpay.tools — $5 free credits included

Related Skills

  • Code Runner (all tools) — 4 tools
  • Execute Code With Variables — $0.01/call
  • Get Capabilities — $0.01/call
  • Validate Code — $0.01/call

Links

  • Tool page: https://xpay.tools/code-runner/execute-code/
  • Provider: https://xpay.tools/code-runner/
  • All tools: https://xpay.tools/explore
How to Execute
// 1. Get full schema
xpay_details("code-runner/execute_code")
// 2. Execute
xpay_run("code-runner/execute_code", { ...inputs })
Input Parameters
ParameterTypeRequiredDescription

input

stringNo

Input data for the program (stdin)

language

string
Yes

Programming language to execute

memoryLimit

numberNo

Memory limit in MB (max 512)

code

string
Yes

Code to execute

enableNetworking

booleanNo

Enable network access for this execution

timeout

numberNo

Execution timeout in milliseconds (max 60000)

Related Tools from Code Runner
Execute Code With Variables — $0.01Get Capabilities — $0.01Validate Code — $0.01
Install Skill
Claude Code
claude /install-skill https://xpay.tools/skills/code-runner/execute-code/SKILL.md
CLI
npx @xpaysh/cli install code-runner/execute-code
Manual
curl -o SKILL.md https://xpay.tools/skills/code-runner/execute-code/SKILL.md
Pricing

Cost

$0.01/call

Model

Flat rate

Provider

Code Runner

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