Online Code Runner

Run Python, JavaScript, TypeScript, and Bash code instantly. No setup, no signup — just write code and hit Run.

Python 3.12

Ctrl+Enter to run · Tab inserts spaces

Output

    

Quick Examples

Python Fibonacci Sequence

Generate the first 20 Fibonacci numbers using a generator function.

JS Parse JSON Data

Parse and transform a JSON dataset with map, filter, and reduce.

Python HTTP Request

Make an HTTP request and parse the JSON response using urllib.

TS Type Safety

Demonstrate TypeScript interfaces, generics, and type guards.

JS Sorting Algorithms

Compare quicksort, mergesort, and built-in sort performance.

Bash System Info

Print system information: OS, kernel, uptime, memory, and disk usage.

Execute Code via API

Run code programmatically. 4 languages, persistent sessions, file support. 200 free credits.

curl -X POST https://agent-gateway-kappa.vercel.app/v1/agent-coderunner/api/execute -H "Content-Type: application/json" -d '{"language":"python","code":"print(42 ** 10)"}'
{"id":"...","language":"python","exitCode":0,"stdout":"17490122876983048192","stderr":"","duration":8,"timedOut":false}
Get Free API Key API Playground

API Quick Start


    

How This Compares

FeatureThis ToolRepl.itCodePen / JSFiddle
No signup requiredYesRequiredOptional
Server-side executionYesYesBrowser only
API accessYes (free)PaidNo
Python support3.12YesNo
Persistent sessionsYes (via API)YesNo
SandboxedYes (10s limit)YesPartially

Frequently Asked Questions

How do I run Python code online?

Paste your Python code in the editor above, make sure "Python 3.12" is selected in the dropdown, and click the green Run button (or press Ctrl+Enter). Your code runs on a real server and the output appears below instantly.

Is this code runner free?

Yes, completely free with no signup. For programmatic access via the API, create a free API key with 200 credits. Each execution costs 1 credit.

What languages are supported?

Python 3.12, JavaScript (Node.js 20), TypeScript (via tsx), and Bash. Each runs in a sandboxed environment with a 10-second timeout and memory limits.

Is my code stored or shared?

No. Code is executed and immediately discarded. We do not store, log, or share your code. For persistent sessions, use the Sessions API endpoint.

What are the execution limits?

Code runs in a sandboxed environment with a 10-second timeout and 128MB memory limit. This is suitable for scripts, algorithms, data processing, and API calls. Long-running processes will be terminated.

Can I use this as an API?

Yes. Send a POST to /v1/agent-coderunner/api/execute with {"language":"python","code":"print('hi')"}. The response includes stdout, stderr, exit code, and execution duration. See the API guide for details.

Can I install packages?

Python standard library and Node.js built-in modules are available. Custom package installation is not currently supported in the free tier. Use the Sessions API for file uploads and multi-step execution.