DEV Community

jarzebowsky_dev
jarzebowsky_dev

Posted on

I built an open-source AI agent for macOS in Rust - here's how it works

I spent weeks building openMOON AI — an agent that executes multi-step tasks on your Mac, not just answers questions.

"Find the invoice email and reply I'll pay Friday"

→ searches Mail → reads email → drafts reply → asks approval → sends

GitHub: https://github.com/niceappspl/openmoon-ai

How it works

Tauri 2 + Rust backend, React frontend, Node.js MCP servers.

prompt → agent loop → McpManager → MCP server → result → back to LLM → repeat
Enter fullscreen mode Exit fullscreen mode
  • Agent loop — multi-step, streams every action to UI in real time
  • MCP host — 77 tools across 5 servers (Mail, Calendar, Finder, Spotify, Safari...)
  • Security model — every risky action needs your approval, everything logged to SQLite
  • Local-first — Ollama works out of the box, zero cloud required

Looking for contributors

10+ good first issue tickets open — new MCP servers, dark mode, voice input, token counter.

Happy to answer questions about the Rust architecture in the comments.

Top comments (0)