macOS · Apple Silicon · v1.0.3

Design a form.
Run it native.

FreeDelphi brings a Delphi 7-style visual workflow to Apple Silicon. Design Cocoa forms, write Object Pascal event handlers, and run a native application.

↓   Download for macOSDownload 58 example projects (ZIP)Install guide →
The calculator form in the FreeDelphi designer
Form designer · captured on macOS

From form to executable

Visual form design

Place LCL controls on a form, edit their properties in the Object Inspector, and bind events to Pascal methods.

An Object Pascal editor

Get member suggestions as you type, or press ⌘I for completion. FPC compiles the project into a native application.

Project-aware AI

Use ZenMux to explain a selection, generate code or forms, and edit across files. Debugger repairs are test-compiled in a temporary directory.

Inside FreeDelphi

AI toolbar · component palette, attachments and project edits
AI toolbar · component palette, attachments and project edits

AI, media and database components

Twelve FreeDelphi controls handle attachments, requests, streaming Markdown, image generation and short video playback. Browse projects and source for all 249 registered components. The SQLite library example creates its tables and loads sample records on launch.

AI, media and database components
Explore the example projects →

AI in the editor and form designer

Prompts and attachments

Type below the component palette. The input grows with your prompt. Attach or paste up to five files, including code, PDFs and screenshots. Remove a thumbnail with its corner button. Press ⌘↵ to send.

Explain or generate code

Select code to stream an explanation in a separate Markdown window. Insert generated Pascal at the caret or replace a selection. Follow progress in the status bar and stop generation from the IDE.

Generate editable forms

Describe the form and preview controls as they arrive. Adjust the finished layout in the designer, then open its Pascal unit to inspect the generated event handlers and their bindings.

Edit a file or a project

Work from current editor contents. Choose one file, select several, or apply a request across the project. Review the results in the editor, undo changes or save them.

Repair from a debugger exception

Start a project repair from an exception. The assistant uses the failure location to look for related defects, checks form resources against Pascal declarations and test-compiles with the project settings. Changed forms refresh in the designer.

Use the local component index

Generation uses the properties, events and public methods of installed controls. The IDE ships a starter index, watches registered components and source changes, and offers manual refresh in AI settings.

Add AI to your own applications

Independent connection settings

Give your application its own API key, base URL and model. Bind attachment and request components to this configuration. Requests and streaming responses follow system routing, including direct and VPN connections, with HTTP and SOCKS5 proxy and bypass support. Open configuration example →

Receive, parse and render

Parse a full response or render Markdown as SSE fragments arrive. The multimodal example routes text, an image and a short video from one response to their respective controls. The native player supports pause, resume and seeking. Open multimodal preview → · Open streaming chat →

Three image generators

Choose a model, generate an image in the background and preview it in the form. All three models were tested against ZenMux.

  • openai/gpt-image-2.6-flare
  • google/gemini-nano-banana-2.1
  • bytedance/doubao-seedream-5.0-flash
Open image generation project →

Projects, data and local settings

Start with a runnable project

The DMG includes 25 editable component projects, a calculator and 29 Lazarus projects. Open ComponentKit/catalog.html to find source and package dependencies for each of the 249 registered components. Browse projects → · Download 58 example projects (ZIP)

Database and editor examples

The SQLite library creates two tables and loads categories, books and cover art for browsing and editing. Other examples cover CSV, JSON and in-memory datasets, plus a code editor with 22 highlighting configurations. Open SQLite library →

Startup file and IDE preferences

Set the main program in Project Inspector; the active entry appears in bold. Switch between English and Chinese in General settings. Add models in AI settings and store the masked IDE key in macOS Keychain. First launch configures the toolchain. Routine builds keep project warnings and errors visible.

Draw a kitten, explain the sky, and ask about an image

Generate a kitten with GPT Image 2.5 Flare, then use GPT 6.1 Sol to describe the picture or stream a Markdown answer about the blue sky. Includes a generated kitten image.

Download the three projects (ZIP)

Installation & first launch

Verified with Apple Silicon and the Apple macOS 26.5 SDK. The DMG contains the IDE, FPC 3.2.2, Lazarus 4.4 / LCL, linker, component index and example. Homebrew is not required.

  1. Install Apple Command Line Tools for the SDK, assembler and LLDB. xcode-select --install
  2. Open the DMG, drag FreeDelphi to Applications, and launch it. First launch unpacks sources and builds components and the sample locally. Allow a few minutes.
  3. For AI features, enter your own key under IDE Options → Environment → AI · ZenMux. The key is stored in macOS Keychain. Editing and compilation work offline.
  4. The IDE assistant includes these text models. Select one or add another in settings.
    • google/gemini-4-neon
    • openai/gpt-6.2-sol
    • anthropic/claude-fable-5.2
  5. For an application using the AI controls, enter its own key and base URL. ZenMux uses https://zenmux.ai/api/v1. Get a ZenMux account ↗