back to home

osaurus-ai / osaurus

Own your AI. The native macOS harness for AI agents -- any model, persistent memory, autonomous execution, cryptographic identity. Built in Swift. Fully offline. Open source.

View on GitHub
4,411 stars
195 forks
38 issues

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing osaurus-ai/osaurus in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/osaurus-ai/osaurus)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

Osaurus Own your AI. Agents, memory, tools, and identity that live on your Mac. Built purely in Swift. Fully offline. Open source. Download for Mac · Docs · Discord · Twitter · Plugin Registry --- Inference is all you need. Everything else can be owned by you. Models are getting cheaper and more interchangeable by the day. What's irreplaceable is the layer around them -- your context, your memory, your tools, your identity. Others keep that layer on their servers. Osaurus keeps it on your machine. Osaurus is the AI harness for macOS. It sits between you and any model -- local or cloud -- and provides the continuity that makes AI personal: agents that remember, execute autonomously, run real code, and stay reachable from anywhere. The models are interchangeable. The harness is what compounds. Works fully offline with local models. Connect to any cloud provider when you want more power. Nothing leaves your Mac unless you choose. Native Swift on Apple Silicon. No Electron. No compromises. MIT licensed. Install Or download the latest from Releases. After installing, launch from Spotlight ( → "Osaurus") or the CLI: > Requires macOS 15.5+ and Apple Silicon. Agents Agents are the core of Osaurus. Each one gets its own prompts, tools, memory, and visual theme -- a research assistant, a coding partner, a file organizer, whatever you need. Everything else in the harness exists to make agents smarter, faster, and more capable over time. Work Mode Give an agent an objective. It breaks the work into trackable issues, executes step by step -- parallel tasks, file operations, background processing. Describe what you want done, not how to do it. Sandbox Agents execute code in an isolated Linux VM powered by Apple's Containerization framework. Full dev environment -- shell, Python, Node.js, compilers, package managers -- with zero risk to your Mac. Each agent gets its own Linux user and home directory. The VM connects back to Osaurus (inference, memory, secrets) via a vsock bridge -- sandboxed but not disconnected. Extend with simple JSON plugin recipes, no Xcode or code signing required. > Requires macOS 26+ (Tahoe). See the Sandbox Guide for configuration, built-in tools, and plugin authoring. Memory 4-layer system: user profile, working memory, conversation summaries, and a knowledge graph. Extracts facts, detects contradictions, recalls relevant context -- all automatically. Agents get smarter over time, and that knowledge stays with you, not a provider. Identity Every participant -- human, agent, device -- gets a secp256k1 cryptographic address. Authority flows from your master key (iCloud Keychain) down to each agent in a verifiable chain of trust. Create portable access keys ( ), scope per-agent, revoke anytime. See Identity docs. Relay Expose agents to the internet via secure WebSocket tunnels through . Unique URL per agent based on its crypto address. No port forwarding, no ngrok, no configuration. Models The harness is model-agnostic. Swap freely -- your agents, memory, and tools stay intact. Local Run Llama, Qwen, Gemma, Mistral, DeepSeek, and more on Apple Silicon with optimized MLX inference. Models stored at (override with ). Fully private, fully offline. Liquid Foundation Models Osaurus supports Liquid AI's LFM family -- on-device models built on a non-transformer architecture optimized for edge deployment. Fast decode, low memory footprint, and strong tool calling out of the box. Apple Foundation Models On macOS 26+, use Apple's on-device model as a first-class provider. Pass in API requests. Tool calling maps through Apple's native interface automatically. Zero inference cost, fully private. Cloud Connect to OpenAI, Anthropic, Gemini, xAI/Grok, Venice AI, OpenRouter, Ollama, or LM Studio. Venice provides uncensored, privacy-focused inference with no data retention. Context and memory persist across all providers. MCP Osaurus is a full MCP (Model Context Protocol) server. Give Cursor, Claude Desktop, or any MCP client access to your tools: Also an MCP client -- aggregate tools from remote MCP servers into Osaurus. See the Remote MCP Providers Guide for details. Tools & Plugins 20+ native plugins: Mail, Calendar, Vision, macOS Use, XLSX, PPTX, Browser, Music, Git, Filesystem, Search, Fetch, and more. Plugins support v1 (tools only) and v2 (full host API) ABIs -- register HTTP routes, serve web apps, persist data in SQLite, dispatch agent tasks, and call inference through any model. See the Plugin Authoring Guide. More **Skills** -- Import reusable AI capabilities from GitHub repos or files. Compatible with Agent Skills. See Skills Guide. **Automation** -- Schedules run recurring tasks in the background. Watchers monitor folders and trigger agents on file changes. **Voice** -- On-device transcription via FluidAudio on Apple's Neural Engine. Voice input in chat, VAD mode with wake-word activation, and a global hotkey to transcribe into any app. No audio leaves your Mac. See Voice Input Guide. **Developer Tools** -- Server explorer, MCP tool inspector, inference monitoring, plugin debugging. See Developer Tools Guide. Compatible APIs Drop-in endpoints for existing tools: | API | Endpoint | |-----|----------| | OpenAI | | | Anthropic | | | Ollama | | All prefixes supported ( , , ). Full function calling with streaming tool call deltas. See OpenAI API Guide for tool calling, streaming, and SDK examples. Building a macOS app that connects to Osaurus? See the Shared Configuration Guide. CLI Homebrew auto-links the CLI, or symlink manually: Architecture Most features are accessible through the Management window ( ). Build from Source Build and run the target. Requires Xcode 16+ and macOS 15.5+. Project Structure See CONTRIBUTING.md for the architecture guide and layer definitions. Contributing Osaurus is actively developed and we welcome contributions: bug fixes, new plugins, documentation, UI/UX improvements, and testing. Check ou…