Own your AI. The open-source agent harness for macOS. Run local or cloud models with persistent memory, skills, tools, and autonomous execution. Built in Swift.
Own your AI.
Agents, memory, tools, and identity that live on your Mac. Built purely in Swift. Fully offline. Open source.
Download for Mac · Download with Raptor 0.7 bundled (~4 GB) · Docs · Models · Discord · Twitter · Plugin Registry
Models are getting cheaper, better, and more interchangeable every month. The model you use today will not be the one you use next year.
What doesn't get replaced is everything around the model: what your assistant knows about you, the tools it can use, the work it has learned to do, and the identity it acts under. That layer is what makes AI useful to you personally, and it compounds over time. Most AI products keep it on their servers, tied to their model.
Osaurus keeps it on your Mac. Your agents, memory, tools, and keys live locally, work fully offline with local models, and stay intact when you switch to a different local or cloud model. Nothing leaves your Mac unless you choose a cloud model or turn on a feature that connects out. Native Swift on Apple Silicon, no Electron, MIT licensed.
You talk to one assistant, the Orchestrator. Ask in your own words and it decides how to handle the request:
When you first launch Osaurus, you choose how it runs: a private model on this Mac, Osaurus Cloud (nothing to download), or an AI account you already have. You can change that at any time, and your agents and memory carry over.
good first issue 또는 help wanted 이슈가 없습니다.
Thanks for your interest in contributing! We welcome bug reports, feature ideas, documentation improvements, and code contributions.
Please take a moment to read this guide to help streamline the process for everyone.
Requirements:
brew install git-lfs && git lfs install) — the OsaurusSync FFI libraries and the sandbox init image are stored in LFSBuild and run:
git clone https://github.com/osaurus-ai/osaurus.git, or git lfs pull in an existing checkout)osaurus.xcworkspace in Xcodeosaurus scheme and press RunThe fast unit loop is make test; see the Makefile for the CI-equivalent and eval lanes. For a complete feature inventory, see FEATURES.md.
osaurus/
├── App/ # macOS app target (SwiftUI entry point, assets, entitlements)
├── Packages/
│ ├── OsaurusCore/ # Core library — all app logic
│ │ ├── Models/ # Data types, DTOs, configuration stores
│ │ ├── Services/ # Business logic (actors and stateless types)
│ │ ├── Managers/ # UI-facing state holders (@MainActor, observable)
│ │ ├── Views/ # SwiftUI views, organized by feature
│ │ ├── Networking/ # HTTP server, routing, relay
│ │ ├── Storage/ # SQLite databases
│ │ ├── Identity/ # Cryptographic identity and access keys
│ │ ├── Tools/ # MCP tools, plugin ABI, tool registry
│ │ ├── Folder/ # Working-folder context, file ops, batch tool
│ │ ├── Resources/Guide/ # In-app guides the Orchestrator reads
│ │ ├── Utils/ # Cross-cutting utilities
│ │ └── Tests/ # Unit and integration tests
│ ├── OsaurusCLI/ # CLI (osaurus command)
│ ├── OsaurusEvals/ # Eval suites (make evals)
│ ├── OsaurusRepository/ # Plugin registry and installation
│ └── Vendor/ # Vendored binary dependencies (LFS)
├── docs/ # Feature guides and documentation
├── scripts/ # Build, release, and benchmark scripts
├── sandbox/ # Sandbox VM Dockerfile
└── assets/ # DMG packaging assets
Install lefthook to set up the hooks that verify code quality:
brew install lefthook
lefthook install
This installs a pre-push hook that runs swift-format over the Packages/ directory before each push.
Usage analytics (Aptabase) and crash reporting (Sentry) are off by default in source builds: with no key, the SDK is never initialized and every event is a silent no-op, so you can build and contribute without any of this. See TELEMETRY.md for what is collected. To enable it locally:
Create App/osaurus/Secrets.xcconfig (gitignored — never commit it) with the keys you want:
APTABASE_APP_KEY = A-XX-... — your Aptabase app key (analytics).
SENTRY_DSN — your Sentry project DSN (crash reporting). Optional; omit it to leave crash reporting off. Escape the scheme slashes: an .xcconfig treats // as a comment, so a raw https://… DSN gets silently truncated to https:. Add a slash variable and reference it:
SENTRY_SLASH = /
SENTRY_DSN = https:$(SENTRY_SLASH)$(SENTRY_SLASH)yourPublicKey@o123.ingest.sentry.io/456
In Xcode, add Secrets.xcconfig to the project (no target membership), then under Project → Info → Configurations → Debug → osaurus set "Based on Configuration File" to Secrets.
Clean build (⇧⌘K) and relaunch.
The keys flow Secrets.xcconfig → $(APTABASE_APP_KEY) / $(SENTRY_DSN) build settings → AptabaseAppKey / SentryDSN in Info.plist. Debug builds report to Aptabase's Debug bucket (enable the Debug view on the dashboard to see them) and to Sentry's debug environment, so local testing never pollutes production data.
The core library (Packages/OsaurusCore/) follows a layered architecture. Each layer has a specific role and set of rules.
Models — Pure data. No logic, no side effects, no singletons.
API/, Agent/, AgentDelegation/, Channels/, Chat/, Configuration/, Memory/, Method/, Plugin/, Project/, Task/, Theme/ (System/Light/Dark design tokens), Tool/, Voice/, Workflow/@Published or static let shared, it does not belong hereServices — Business logic. Not observable. Not UI-aware.
actor for concurrent work (ChatEngine, MemoryService)struct for pure functions (Router, PromptBuilder)Chat/, Context/, Guide/, Inference/, Keychain/, MCP/, Memory/, ModelRuntime/, Plugin/, Provider/, Sandbox/, Skill/, Sync/, Tool/, Voice/, Workflow/ObservableObject or @ObservableService or EngineManagers — UI state. Observable. Main actor.
@MainActor classes with @Observable (p