✦ AI-Native Language

The Modern Pascal
for AI-Powered Apps

PascalAI combines the clarity and performance of Pascal with native AI integration, a rich package ecosystem, and first-class MCP tool support.

⬇ Download Compiler 📦 Browse Packages ✏ Try Editor
hello_ai.pai
program HelloAI;

uses
  pai.http, pai.json, pai.ai;

var
  Client   : THttpClient;
  Response : TJsonObject;
  Summary  : string;

begin
  // Fetch data from an API
  Client   := THttpClient.Create;
  Response := TJson.Parse(Client.Get('https://api.example.com/news'));

  // Summarize with AI in one line
  Summary  := AI.Summarize(Response['content'].AsString);

  WriteLn('Summary: ', Summary);
end.

Everything you need

A complete toolchain for building AI-powered applications with PascalAI.

Built for the AI era

PascalAI keeps Pascal's legendary readability while adding the tools modern developers need.

Native Performance

Compiles to native machine code. No VM, no JIT — just fast, lean binaries on every platform.

🤖

AI-Native

First-class AI primitives built into the standard library. Call LLMs, run embeddings, and use MCP tools natively.

📦

Rich Package Ecosystem

Hundreds of packages covering HTTP, databases, cryptography, graphics, machine learning and more.

🔌

MCP Tool Support

Install and use Model Context Protocol tools directly via PPM. Plug AI capabilities into any app.

🧠

Readable by Design

Pascal's explicit, verbose syntax means code reads like prose — easy to maintain and review.

🌍

Cross-Platform

One codebase for Windows, Linux x64, Linux ARM64 and macOS — desktop, server and embedded.

Up and running in minutes

Install the compiler and PPM, then start building.

1

Install PPM

Windows (PowerShell):

irm https://raw.githubusercontent.com/gustavoeenriquez/ppm/main/install.ps1 | iex

Linux / macOS:

curl -fsSL https://raw.githubusercontent.com/gustavoeenriquez/ppm/main/install.sh | bash
2

Install the Compiler

ppm install pascalai-compiler
3

Create your first project

mkdir myapp && cd myapp ppm init pai build && pai run
⬇ Download Compiler Read the Docs

Growing every day

200+
Packages available
40+
MCP tools
3
Platforms supported
v1.1
Current PPM release