Code runtime
Pricing
Pay per usage
Code runtime
This Actor executes TypeScript/JavaScript that an AI agent submits through the Apify MCP Server's Code Mode, then returns whatever the script printed.
Code runtime
Pricing
Pay per usage
This Actor executes TypeScript/JavaScript that an AI agent submits through the Apify MCP Server's Code Mode, then returns whatever the script printed.
You can access the Code runtime programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
$echo '{}' |<apify call apify/code-runtime --silent --output-datasetThe Apify CLI is the official tool that allows you to use Code runtime locally, providing convenience functions and automatic retries on errors.
Using installation script (macOS/Linux):
$curl -fsSL https://apify.com/install-cli.sh | bashUsing installation script (Windows):
$irm https://apify.com/install-cli.ps1 | iexUsing Homebrew:
$brew install apify-cliUsing npm:
$npm install -g apify-cliOther API clients include: