Skip to content

SyntheticAutonomicMind/SAM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAM - Synthetic Autonomic Mind

The AI assistant that actually remembers, actually works, and actually stays private.

Built for macOS. Built for privacy. Built for you.

SAM is a native macOS AI assistant built with Swift and SwiftUI. Unlike cloud-only alternatives, SAM keeps your data on your Mac, supports multiple AI providers (including fully local models), and provides powerful tools for autonomous task execution.

License: GPL v3 Platform Swift

Website | Download | Part of Synthetic Autonomic Mind


🔗 Quick Links


Meet SAM - Your Intelligent, Hands‑Free Assistant

In July 2025, I set out to build the AI assistant my wife actually wanted: one that adapted to her workflow instead of forcing her to adapt. SAM was made for her - and dedicated to her. It has since grown into a native macOS assistant that anyone can use to get real work done.

A native macOS app designed for non‑developers who want powerful tools in their everyday life.
Review documents, create images, write content, plan projects, or just have a conversation.
Say "Hey SAM" to go hands‑free, or type naturally.
You're always in control.

Your data stays on your Mac. Always.
(Switch to cloud AI providers only if you want to.)


Why You'll Love SAM

Real Assistance, Not Just Answers

SAM helps you finish things.
Whether it's organizing files, helping you draft documents, creating images, or researching a topic - SAM acts on your ideas.

🧠 Smart Memory

SAM remembers what matters across conversations.
Create "Shared Topics" to connect chats around the same project, and find anything you've shared with semantic search.

Just Say "Hey SAM"

Full voice control lets you keep your hands free.
Ask questions, give commands, or have a conversation - all without touching the keyboard.

Create Images in Seconds

Generate beautiful images locally with Stable Diffusion.
No subscriptions, no cloud uploads - just your imagination and SAM's creativity.

Train Models on Your Own Knowledge

Teach SAM about your specific domain with custom training.
Create specialized AI models trained on your documents, conversations, or expertise - perfect for professional workflows.

Access from Anywhere

Use SAM from your iPad, iPhone, or any device with a browser.
SAM-Web lets you chat with SAM remotely when you're away from your Mac.

Privacy You Can Trust

All your conversations, documents, and memories stay on your Mac.
SAM works with local AI models by default, and only uses cloud AI when you choose to.

No Technical Skills Needed

Designed for everyday users - not just developers.
SAM's clean interface and natural interactions make powerful AI accessible to everyone.


What You Can Do with SAM

For Documents & Research

  • Upload and analyze PDFs, articles, and books
  • Ask questions about your documents
  • Summarize long texts in seconds
  • Research online with reliable sources and citations

For Creativity & Design

  • Generate custom images from text descriptions
  • Browse and apply different art styles
  • Edit and refine images with simple prompts
  • Get inspiration for projects or presentations

For Writing & Communication

  • Draft emails, essays, or reports
  • Improve your writing with gentle suggestions
  • Brainstorm ideas and organize your thoughts
  • Translate text between languages

For Organization & Productivity

  • Manage files and folders with voice commands
  • Create project plans and task lists
  • Organize your work in project folders
  • Automate repetitive computer tasks
  • Access SAM remotely from your iPad or phone

For Custom AI Models

  • Train models on your own documents and conversations
  • Create specialized assistants for your work domain
  • Fine-tune AI to understand your industry jargon
  • Build knowledge bases from your expertise

For Learning & Curiosity

  • Ask questions about any topic
  • Get step‑by‑step explanations
  • Explore new skills and hobbies
  • Have thoughtful, engaging conversations

Features at a Glance

  • Multi‑AI support: Choose from OpenAI, Anthropic (Claude), GitHub Copilot, DeepSeek, or run models locally (MLX, llama.cpp)
  • Voice in & out: "Hey SAM" wake word, speech recognition, and natural text‑to‑speech
  • Local image generation: Create images with Stable Diffusion - no internet needed
  • Train custom models: Fine-tune AI on your own data with LoRA training
  • Remote access: Chat with SAM from iPad, iPhone, or browser via SAM-Web
  • Document intelligence: Upload and chat with PDFs, Word docs, Excel files, text files, and more
  • Semantic memory: Find past conversations and documents by meaning, not just keywords
  • Project workspaces: Keep everything organized in ~/SAM/{project‑name}/ folders
  • Personality system: Choose from friendly, professional, creative, or custom tones
  • Dark/light mode: Beautiful SwiftUI interface that fits your style
  • 100% free & open source: No subscriptions, no ads, no hidden costs

Screenshots

Get a glimpse of SAM's native macOS interface in action:

Natural Conversation

User greeting SAM and asking it to describe what it can help with - SAM responds with a friendly, comprehensive overview

Flexible AI Provider Selection

Choose from local models (MLX, llama.cpp), cloud providers (OpenAI, Anthropic, DeepSeek), or image generation models

Local Image Generation

User asks SAM to generate an image of a cruise ship sailing in the ocean - created locally without any cloud services

Image Analysis

SAM provides a detailed description of the cruise ship image it just created

Travel Research

User asks about restaurants in a town they'll be visiting - SAM helps with travel planning and local recommendations

Shopping Assistance

User inquires about availability and pricing of two items on Amazon - SAM helps with product research

Model Training Settings

Configure custom model training with LoRA fine-tuning to specialize SAM for your domain

What Makes SAM Different

Privacy First

  • All data stays on your Mac - nothing sent to the cloud unless you choose
  • Run completely offline with local AI models
  • API credentials stored locally in UserDefaults
  • Zero telemetry, zero tracking

Intelligent Memory

  • Remember and search across all your conversations
  • Import documents (PDF, Word, Excel, text) and ask questions about them
  • Share context between conversations when you need it
  • Keep conversations private from each other when you don't

Gets Work Done

  • Multi-step task execution - describe what you want, SAM handles the details
  • Work with files, run commands, research the web
  • Generate documents and images
  • Handle complex projects autonomously

Powerful Tools

  • Read, edit, and search files
  • Run terminal commands
  • Research and browse the web
  • Work with Git repositories
  • Generate images with Stable Diffusion

Image Generation

  • Multiple Stable Diffusion models supported
  • Browse and download from HuggingFace and CivitAI
  • LoRA support for style customization
  • Optimized for Apple Silicon

Train Your Own Models

  • Fine-tune local AI models with LoRA (Low-Rank Adaptation)
  • Train on your conversations or documents
  • Custom adapters for specialized knowledge domains
  • Real-time training progress with loss visualization

Access Anywhere

  • Use SAM from your iPad, iPhone, or any device with a browser
  • Web interface (SAM-Web) provides chat and basic features remotely
  • Connect over your local network (requires SAM running on Mac)
  • Secure API authentication

Flexible AI Provider Support

  • Cloud AI: OpenAI, Anthropic (Claude), GitHub Copilot, DeepSeek
  • Local Models: Run AI completely on your Mac with MLX or llama.cpp
  • Switch models mid-conversation
  • Use custom OpenAI-compatible endpoints

Quick Start

Download & Install

  1. Download the latest release from GitHub Releases
  2. Extract the downloaded zip file
  3. Move SAM.app to your Applications folder
  4. First Launch: Right-click SAM.app -> Open (macOS Gatekeeper requirement, only needed once)

Set Up Your AI Provider

  1. Launch SAM
  2. Open Settings (,)
  3. Go to AI Providers tab
  4. Click Add Provider
  5. Choose your provider:
  • Cloud AI: OpenAI, Claude, GitHub Copilot, or DeepSeek
  • Local Model: Choose a model to download and run on your Mac
  1. For cloud providers: Enter your API key
  2. Save and start chatting!

Start Your First Conversation

Press N to create a new conversation, type your message, and press Enter. SAM will respond and can help you with questions, writing, coding, research, file management, and much more.

Access SAM from Other Devices

Want to use SAM from your iPad or phone? Check out SAM-Web - a web interface that provides chat functionality and basic features when you're away from your Mac.

What you need:

  1. SAM running on your Mac with API Server enabled (Preferences -> API Server)
  2. Get your API token from the same preferences pane
  3. Visit the SAM-Web repository for setup instructions
  4. Connect from your browser at http://your-mac-ip:8080

Note: SAM-Web provides chat, mini-prompts, and conversation basics. Advanced features require the native macOS app.


Get Started in Minutes

Download SAM for macOS 14.0+
Read the guides
View the code
Share feedback


Development Program

SAM offers a development channel for users who want early access to new features and are willing to help test pre-release builds.

What are Development Builds?

Development builds are released frequently (sometimes daily) and contain:

  • New features before they reach stable release
  • Bug fixes and improvements being tested
  • Potentially incomplete features or breaking changes

Development builds are intended for testing and feedback only. They may contain bugs or unstable behavior. Do not use development builds for critical production work.

How to Enable Development Updates

  1. Open SAM Preferences (,)
  2. Go to the General tab
  3. Enable "Receive development updates"
  4. Confirm the warning about potential instability
  5. SAM will now check for both development and stable releases

You can disable development updates at any time to return to stable releases only.

Development vs Stable Releases

Feature Stable Releases Development Releases
Version Format YYYYMMDD.RELEASE (e.g., 20260110.1) YYYYMMDD.RELEASE-dev.BUILD (e.g., 20260110.1-dev.1)
Release Frequency Weekly or bi-weekly Daily or multiple per day
Testing Fully tested and documented Pre-release testing
Stability Production-ready May contain bugs
Who Gets Them All users by default Only users who opt-in

Providing Feedback

If you're using development builds and encounter issues:

  1. Check GitHub Issues to see if it's already reported
  2. Create a new issue with:
  • Your SAM version (shown in About SAM or Preferences)
  • Steps to reproduce the problem
  • Expected vs actual behavior
  • Relevant logs (Help -> Show Logs)

Your feedback helps make SAM better for everyone!


Key Features

Conversations

  • Unlimited conversations with automatic saving
  • Export to JSON or Markdown
  • Rename, duplicate, and organize conversations
  • Switch AI models mid-conversation

Memory & Documents

  • Search across all your conversations semantically
  • Import documents (PDF, Word, Excel, text files) and ask questions about them
  • Search by filename and content with enhanced metadata
  • Share context between conversations when needed
  • Keep conversations private from each other by default

AI Provider Support

Provider What You Get
OpenAI GPT-4, GPT-4o, GPT-3.5, o1/o3 models
Anthropic Claude 3.5 Sonnet, Claude 4 (long context)
GitHub Copilot GPT-4o, Claude 3.5, o1 (requires subscription)
DeepSeek Cost-effective AI models
Local MLX Run models on Apple Silicon Macs
Local llama.cpp Run models on any Mac (Intel or Apple Silicon)
Custom Use any OpenAI-compatible API

️What SAM Can Do

Work with Files

  • Read, write, search, and edit files
  • Find files by name or content
  • Get file information

Execute Commands

  • Run terminal commands
  • Manage persistent terminal sessions
  • Execute shell scripts

Research & Web

  • Search the web (Google, Bing, and more)
  • Scrape and analyze web pages
  • Gather and synthesize information from multiple sources

Development Tools

  • Git operations (commit, diff, status)
  • Build and run tasks
  • Search code and check for errors

Documents & Images

  • Import and analyze PDF, Word, Excel, and text files
  • Create formatted documents (PDF, Word, PowerPoint)
  • Generate images with Stable Diffusion

Image Generation

  • Multiple Stable Diffusion models (SD 1.5, SDXL, and more)
  • Browse and download models from HuggingFace and CivitAI
  • LoRA support for custom styles
  • Optimized for Apple Silicon Macs

LoRA Training

Train custom AI models on your own data:

  • Fine-Tune Local Models: Specialize MLX models on specific knowledge domains
  • Training Data Export: Export conversations or documents as training data
  • Flexible Configuration: Customize rank, learning rate, epochs, and more
  • Real-Time Progress: Watch training progress with loss visualization
  • Automatic Integration: Trained adapters appear immediately in model picker
  • Document Chunking: Multiple strategies for processing long documents
  • PII Protection: Optional detection and redaction of sensitive information

SAM-Web: Remote Access

Access SAM chat from other devices on your network:

  • Web Interface: Chat with SAM from your browser (requires SAM running on Mac)
  • Multi-Device Support: Use from iPad, iPhone, tablets, or other computers
  • Core Features: Conversations, mini-prompts, model selection, and chat
  • Responsive Design: Optimized for desktop, tablet, and mobile screens
  • Secure Access: Token-based authentication
  • Easy Setup: No installation on remote device, just open browser
  • All Features Available: Chat, tools, settings, prompts, and more

Visit the SAM-Web repository for setup instructions.

Personalities

Choose from built-in personalities to customize how SAM communicates:

  • General Purpose: SAM (default), Generic, Concise
  • Tech & Development: Developer, Architect, Code Reviewer, Tech Buddy
  • Domain Experts: Doctor, Counsel, Finance Coach, Scientist, Philosopher
  • Creative Writing: Creative Catalyst, DocuGenie, Prose Pal
  • Productivity: Fitness Fanatic, Motivator
  • Fun Characters: Comedian, Pirate, Time Traveler, Jester

And many more! You can also create custom personalities.


System Requirements

To Use SAM:

  • macOS 14.0 (Sonoma) or later
  • 4GB RAM minimum (8GB+ recommended)
  • 3GB free disk space for the app

For Local AI Models:

  • 16GB+ RAM recommended
  • 20GB+ free disk space (models can be large)
  • Apple Silicon (M1/M2/M3/M4) recommended for best performance with MLX
  • Intel Macs can use llama.cpp models

Privacy & Security

Your Data Stays on Your Mac

  • Conversations: Stored locally in ~/Library/Application Support/SAM/
  • Memory: Per-conversation databases, never shared between conversations
  • API Keys: Stored in UserDefaults for provider credentials
  • No Telemetry: Zero usage tracking, zero data collection

When you use cloud AI providers (OpenAI, Claude, etc.), only the messages you send go to those providers. SAM never sends telemetry or analytics anywhere.

Security Features

  • Authorization system for file and terminal operations
  • Per-conversation memory isolation prevents data leakage
  • Optional auto-approve for operations you trust
  • Full audit trail of all actions

Where SAM Stores Your Data

Your Conversations and Settings

~/Library/Application Support/SAM/
├── conversations/              # Your conversation files
├── config.json                 # App settings
└── conversations/{id}/
    └── memory.db              # Memories for each conversation

Downloaded AI Models

~/Library/Caches/sam/models/
├── mlx/                       # MLX models (Apple Silicon)
├── gguf/                      # llama.cpp models
└── stable-diffusion/          # Stable Diffusion models and LoRAs

Working Files

~/SAM/
├── conversation-{number}/     # Working files for each conversation
└── {topic-name}/              # Shared workspace for topics

Generated Images

~/Library/Caches/sam/images/   # Images created by Stable Diffusion

Contributing

We welcome contributions! To contribute:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/your-feature
  3. Make your changes
  4. Test your changes
  5. Commit with clear messages
  6. Push and create a pull request

See CONTRIBUTING.md for detailed guidelines.


Getting Help

Having Trouble?

SAM won't open after downloading?

# Remove macOS quarantine attribute
xattr -d com.apple.quarantine /Applications/SAM.app

Model not showing up in the model list?

  • Check that models are in ~/Library/Caches/sam/models/mlx/ or ~/Library/Caches/sam/models/gguf/
  • Restart SAM after adding new models

API key issues?

  • Verify your API key in Settings -> AI Providers
  • Check that your API key is active on the provider's website
  • Review any error messages in the conversation

Need More Help?


Technical Details

SAM is built with:

  • Swift 6 with strict concurrency
  • SwiftUI for native macOS interface
  • Vapor for embedded HTTP/SSE server
  • SQLite for conversation and memory storage
  • MLX for Apple Silicon AI models
  • llama.cpp for cross-platform AI models
  • Stable Diffusion (CoreML + Python) for image generation

For developers interested in the technical architecture, see project-docs/.


Building from Source

For developers who want to build SAM from source, see BUILDING.md for complete instructions.


Documentation

Complete documentation is available:


License & Credits

License: GPLv3 - See LICENSE for details

Created by: Andrew Wyatt (Fewtarius)
Website: https://syntheticautonomicmind.org
Repository: https://github.com/SyntheticAutonomicMind/SAM

Part of the Synthetic Autonomic Mind organization, which also maintains:

  • SAM-Web - Remote access for iPad/iPhone
  • ALICE - Image generation backend
  • CLIO - Terminal AI assistant

Built with open source:

Special thanks to contributors and the Swift/AI communities.