Seldon
A tool for interacting with Apple's Foundation model LLM's on Apple Intelligence supported Macs.
Install / Use
/learn @singe/SeldonREADME
seldon
<img width="889" height="343" alt="image" src="./assets/logo.png" />seldon lets you interact with Apple's on-device LLM Foundation models on macOS. It's a minimal native macOS chat app built with SwiftUI as a Swift Package. It has a UI, terminal REPL and single shot command mode as well as supporting tool calling.
Save money and privacy by using a local model, and save resources by using a built-in LLM without requiring third party applications.
By @singe
Build
swift build -c release
Packaging
Build artifacts with make:
make binary # dist/seldon-macos-<arch>
make bundle # dist/seldon-macos-<arch>-with-tools.tar.gz
make app # dist/Seldon-macos-<arch>.app.zip
make release-assets
GUI Mode
Run the .app or run the binary.
seldon
This launches a native window (Seldon Chat).
<img width="940" height="962" alt="image" src="./assets/screenshot.png" />
CLI Mode
Interactive terminal mode:
seldon --cli
--cli streams the model output as it is generated.
Single-shot headless mode (for scripts):
seldon --prompt "What is psychohistory?"
--prompt prints a single final response (no streaming), then exits.
Optional sampling temperature for CLI modes (0.0 to 2.0):
seldon --cli --temperature 0.2
seldon --prompt "Tell me where to find the second foundation" --temperature=0.7
The same --temperature value is also applied to GUI mode if you launch seldon with that flag.
Tool Calling
Pass a tools YAML file to enable Foundation Models tool calling:
seldon --tools tools.example.yaml
seldon --cli --tools tools.example.yaml
seldon --prompt "search the web for hari seldon and describe the top result" --tools tools.example.yaml
Example config is included at tools.example.yaml with three basic tools:
web_searchimplemented bytools/web_search.pyfetch_urlimplemented bytools/fetch_url.pycalculatorimplemented bytools/calculator.py
System Prompt
Change the system prompt passed to the LLM with --system:
seldon --system "you are Hari Seldon"
This will work for the GUI, cli or prompt mode.
Foundation Models support
- The app uses Apple's on-device Foundation Models API when available.
- In this environment,
LanguageModelSessionis available onmacOS 26.0+. - On older macOS versions (or SDKs without
FoundationModels), the UI still runs and shows a clear unsupported message when you send a prompt.
Related Skills
openhue
339.3kControl Philips Hue lights and scenes via the OpenHue CLI.
sag
339.3kElevenLabs text-to-speech with mac-style say UX.
weather
339.3kGet current weather and forecasts via wttr.in or Open-Meteo
tweakcc
1.5kCustomize Claude Code's system prompts, create custom toolsets, input pattern highlighters, themes/thinking verbs/spinners, customize input box & user message styling, support AGENTS.md, unlock private/unreleased features, and much more. Supports both native/npm installs on all platforms.
