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.

What it solves

Osaurus is a local AI harness for macOS that allows users to own their AI identity, memory, and tools. It prevents the lock-in of personal context and data on cloud servers by keeping the "layer around the model"—including agents, memory, and identity—entirely on the user's machine, while still allowing flexible connection to either local or cloud-based LLMs.

How it works

Built natively in Swift for Apple Silicon, Osaurus acts as an intermediary between the user and various AI models. It manages a system of specialized agents, each with its own prompts and memory. These agents can execute code in an isolated Linux VM sandbox (or a macOS Seatbelt sandbox on older versions) to ensure system safety. It uses a three-layer memory system (identity, pinned facts, and session episodes) to maintain continuity without bloating context windows. For privacy, it includes an on-device classifier to scrub sensitive PII before data is sent to cloud providers.

Who it’s for

Mac users who want a private, offline-capable AI assistant system that can execute code, browse the web, and integrate with their local files and apps without sacrificing privacy or relying on a cloud-only ecosystem.

Highlights

  • Local-First Architecture: Fully offline operation with local models (via MLX) or optional cloud connectivity.
  • Secure Sandboxing: Code execution in an isolated Linux VM powered by Apple's Containerization framework.
  • Agentic Capabilities: Support for subagents, autonomous loops with todo lists, and a built-in Orchestrator for delegation.
  • Privacy Filter: On-device PII detection and redaction for cloud-model requests.
  • MCP Integration: Acts as both an MCP server and client, aggregating tools from remote providers.
  • Cryptographic Identity: End-to-end encrypted communication between agents using secp256k1 addresses.
  • Native Performance: Written in Swift for Apple Silicon, avoiding Electron for better efficiency.

Related

  • Project
  • Project
  • Project
  • Project
  • Project