All-in-one native macOS AI chat application for virtually any AI provider
925
stars
385
commits
Swift
primary language
Aug 16, 2026
updated
macai (macOS AI) is a simple yet powerful native macOS AI chat client that supports most AI providers: ChatGPT, Claude, xAI (Grok), Google Gemini, Perplexity, Ollama, OpenRouter, and almost any OpenAI-compatible APIs.
Download latest universal binary, notarized by Apple.
Install macai cask with homebrew:
brew install --cask macai
Contributions are welcome. Take a look at Issues page to see already added features/bugs before creating new one. You can also support project by funding. This support is very important for me and allows to focus more on macai development.
To run macai with ChatGPT or Claude, you need to have an API token. API token is like password. You need to obtain the API token first to use any commercial LLM API. Most API services offer free credits on registering new account, so you can try most of them for free. Here is how to get API token for all supported services:
If you are new to LLM and don't want to pay for the tokens, take a look Ollama. It supports dozens of OpenSource LLM models that can run locally on Apple M1/M2/M3/M4 Macs.
Ollama is the open-source back-end for various LLM models. Run macai with Ollama is easy:
Install Ollama from the official website
Follow installation guides
After installation, select model (llama3.1 or llama3.2 are recommended) and pull model using command in terminal: ollama pull <model>
In macai settings, open API Service tab, add new API service (Expert mode) and select type Ollama":
Select model, and default AI Assistant and save
Test and enjoy!
macOS 14.0 and later (both Intel and Apple chips are supported)
Project is in the active development phase.
If you have an Apple Developer account and want to build with iCloud Sync support:
git clone https://github.com/Renset/macai.gitmacai.xcodeproj in XcodeDISABLE_ICLOUD from Build Settings → Swift Compiler → Active Compilation ConditionsNote: By default, Debug builds have iCloud Sync disabled via the
DISABLE_ICLOUDflag to simplify contributor setup. Release builds have iCloud Sync enabled.
If you don't have an Apple Developer account, you can still build and run the app without iCloud Sync:
Using Xcode:
git clone https://github.com/Renset/macai.gitmacai.xcodeproj in Xcodemacai target → Build Settings tabCODE_SIGN_ENTITLEMENTSmacai/macai.entitlements to macai/macai-no-icloud.entitlementsUsing Command Line:
git clone https://github.com/Renset/macai.git
cd macai
xcodebuild -scheme macai \
-configuration Debug \
CODE_SIGN_IDENTITY="-" \
CODE_SIGN_ENTITLEMENTS="macai/macai-no-icloud.entitlements" \
DEVELOPMENT_TEAM="" \
CODE_SIGNING_ALLOWED=NO \
build
Note: The app built without iCloud entitlements will work normally, but the iCloud Sync feature will not be available. All other features (chat, API services, personas, etc.) will work as expected.
iCloud Sync is disabled by default in Debug builds via the DISABLE_ICLOUD compiler flag. This simplifies the development setup and avoids CloudKit-related signing issues for contributors without an Apple Developer account.
To enable iCloud Sync in Debug builds:
macai target → Build Settings tabSWIFT_ACTIVE_COMPILATION_CONDITIONS (or "Active Compilation Conditions")DISABLE_ICLOUD from the value (leaving just DEBUG)If you want iCloud Sync to work in a fork or custom build, you must use your own CloudKit container:
CloudKitContainerIdentifier value in macai/Info.plist to your container IDDISABLE_ICLOUD from Active Compilation Conditions if presentIf CloudKitContainerIdentifier is missing, the app falls back to the default container.
Swift
99.7%
All-in-one native macOS AI chat application for virtually any AI provider
925
stars
385
commits
Swift
primary language
Aug 16, 2026
updated
macai (macOS AI) is a simple yet powerful native macOS AI chat client that supports most AI providers: ChatGPT, Claude, xAI (Grok), Google Gemini, Perplexity, Ollama, OpenRouter, and almost any OpenAI-compatible APIs.
Download latest universal binary, notarized by Apple.
Install macai cask with homebrew:
brew install --cask macai
Contributions are welcome. Take a look at Issues page to see already added features/bugs before creating new one. You can also support project by funding. This support is very important for me and allows to focus more on macai development.
To run macai with ChatGPT or Claude, you need to have an API token. API token is like password. You need to obtain the API token first to use any commercial LLM API. Most API services offer free credits on registering new account, so you can try most of them for free. Here is how to get API token for all supported services:
If you are new to LLM and don't want to pay for the tokens, take a look Ollama. It supports dozens of OpenSource LLM models that can run locally on Apple M1/M2/M3/M4 Macs.
Ollama is the open-source back-end for various LLM models. Run macai with Ollama is easy:
Install Ollama from the official website
Follow installation guides
After installation, select model (llama3.1 or llama3.2 are recommended) and pull model using command in terminal: ollama pull <model>
In macai settings, open API Service tab, add new API service (Expert mode) and select type Ollama":
Select model, and default AI Assistant and save
Test and enjoy!
macOS 14.0 and later (both Intel and Apple chips are supported)
Project is in the active development phase.
If you have an Apple Developer account and want to build with iCloud Sync support:
git clone https://github.com/Renset/macai.gitmacai.xcodeproj in XcodeDISABLE_ICLOUD from Build Settings → Swift Compiler → Active Compilation ConditionsNote: By default, Debug builds have iCloud Sync disabled via the
DISABLE_ICLOUDflag to simplify contributor setup. Release builds have iCloud Sync enabled.
If you don't have an Apple Developer account, you can still build and run the app without iCloud Sync:
Using Xcode:
git clone https://github.com/Renset/macai.gitmacai.xcodeproj in Xcodemacai target → Build Settings tabCODE_SIGN_ENTITLEMENTSmacai/macai.entitlements to macai/macai-no-icloud.entitlementsUsing Command Line:
git clone https://github.com/Renset/macai.git
cd macai
xcodebuild -scheme macai \
-configuration Debug \
CODE_SIGN_IDENTITY="-" \
CODE_SIGN_ENTITLEMENTS="macai/macai-no-icloud.entitlements" \
DEVELOPMENT_TEAM="" \
CODE_SIGNING_ALLOWED=NO \
build
Note: The app built without iCloud entitlements will work normally, but the iCloud Sync feature will not be available. All other features (chat, API services, personas, etc.) will work as expected.
iCloud Sync is disabled by default in Debug builds via the DISABLE_ICLOUD compiler flag. This simplifies the development setup and avoids CloudKit-related signing issues for contributors without an Apple Developer account.
To enable iCloud Sync in Debug builds:
macai target → Build Settings tabSWIFT_ACTIVE_COMPILATION_CONDITIONS (or "Active Compilation Conditions")DISABLE_ICLOUD from the value (leaving just DEBUG)If you want iCloud Sync to work in a fork or custom build, you must use your own CloudKit container:
CloudKitContainerIdentifier value in macai/Info.plist to your container IDDISABLE_ICLOUD from Active Compilation Conditions if presentIf CloudKitContainerIdentifier is missing, the app falls back to the default container.
Swift
99.7%