Tool Skill
Execute Code
execute_codeExecute JavaScript or Python code securely with comprehensive error handling and security measures
$0.01/call
Flat rate
Code Runner
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:
xpay_details— Get full input schema:xpay_details("code-runner/execute_code")xpay_run— Execute:xpay_run("code-runner/execute_code", { ...inputs })
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | No | Input data for the program (stdin) |
language | string | Yes | Programming language to execute |
memoryLimit | number | No | Memory limit in MB (max 512) |
code | string | Yes | Code to execute |
enableNetworking | boolean | No | Enable network access for this execution |
timeout | number | No | Execution timeout in milliseconds (max 60000) |
Pricing
- Cost: $0.01/call
- Balance check: Use
xpay_balanceto 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
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | No | Input data for the program (stdin) |
language | string | Yes | Programming language to execute |
memoryLimit | number | No | Memory limit in MB (max 512) |
code | string | Yes | Code to execute |
enableNetworking | boolean | No | Enable network access for this execution |
timeout | number | No | Execution timeout in milliseconds (max 60000) |
Related Tools from Code Runner
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

