freshcrate
Skin:/
Home > MCP Servers > sofia

sofia

Autonomous local AI assistant in Go โ€” 40+ tools, 20+ LLM providers, multi-agent orchestration, self-improving

Why this rank:Release freshnessStrong adoptionHealthy release cadence

Description

Autonomous local AI assistant in Go โ€” 40+ tools, 20+ LLM providers, multi-agent orchestration, self-improving

README

๐Ÿค– Sofia

Your Local, Autonomous AI Colleague

GitHub starsGitHub forksLicense Go Version Last Commit Version PRs Welcome

A self-improving AI orchestrator that runs 100% locally.
Single Go binary. 40+ tools. 20+ LLM providers. Multi-agent coordination.
Persistent memory with a knowledge graph. Browser automation. Computer control.
And it gets better at its job over time.

๐Ÿš€ Quick Start ยท โœจ Features ยท ๐Ÿ“Š Scorecard ยท ๐Ÿ—๏ธ Architecture ยท ๐Ÿค Contributing


Why Sofia?

Most AI assistants are cloud-locked chatbots that wait for you to type something. Sofia is different.

  • ๐Ÿ  Local-first โ€” No cloud dependency. Your data stays on your machine.
  • โšก Single binary โ€” Written in Go. No Python, no Docker, no Node.js. Just make build.
  • ๐Ÿง  Self-improving โ€” Evolution engine analyzes past performance and optimizes itself.
  • ๐Ÿค– Multi-agent โ€” Spawn, coordinate, and retire agents dynamically. A2A protocol built-in.
  • ๐Ÿ” Security-first โ€” 35+ prompt injection defenses, PII detection, AES-256-GCM encryption.
  • ๐ŸŒ 20+ LLM providers โ€” OpenAI, Claude, Gemini, DeepSeek, Grok, and more. Automatic fallback.

๐Ÿš€ Quick Start

git clone https://github.com/grasberg/sofia.git
cd sofia
make deps && make build
./build/sofia onboard      # Initialize config & workspace
./build/sofia gateway      # Start the web UI
# Open http://127.0.0.1:18795 โ†’ Models tab โ†’ add your API key โ†’ start chatting

Prerequisites: Go 1.26+ (download)


โœจ Key Features

๐Ÿ› ๏ธ Autonomous Tool Use

Register domain names, publish web pages, read/edit files, run bash commands, manage Google Services (Gmail/Calendar) โ€” all without human intervention.

๐Ÿง  Advanced Memory

Tiered memory system โ€” short-term, long-term, episodic, and semantic (knowledge graph). Automatic consolidation and strategic forgetting keep memory efficient.

๐Ÿค– Multi-Agent Orchestration

Delegate tasks to parallel agents. AgentArchitect creates and optimizes new agents on the fly. A2A mailbox messaging with broadcast.

๐ŸŒ 20+ LLM Providers

OpenAI, Anthropic (Claude 4.5), Gemini, DeepSeek, Grok, MiniMax, Moonshot, Qwen, GitHub Copilot, and more. Automatic fallback chains with exponential backoff.

๐Ÿ“š Skill System with Self-Learning

126+ built-in skills with expert personas. Automatic skill creation, refinement, and knowledge distillation. ClawHub marketplace for community skills.

๐Ÿ”„ Evolution & Self-Improvement

5-phase EvolutionEngine: observe โ†’ diagnose โ†’ plan โ†’ act โ†’ verify. Post-task evaluation, prompt self-optimization, and code self-modification.

๐Ÿ–ฅ๏ธ Computer Use

Autonomous computer control via screenshots and vision-LLM. Control mouse and keyboard on macOS and Linux.

๐ŸŒ Browser Automation

Playwright-based web browsing. Click, fill forms, take screenshots, extract text โ€” all autonomously.

๐Ÿ›ก๏ธ Guardrails & Security

Input validation, budget management, prompt injection defense (35+ patterns in 6 languages), PII detection, and action confirmation for high-risk operations.

๐Ÿ“‹ More Features
  • Smart Tool Management โ€” Semantic tool matching via embeddings, performance tracking, dynamic tool composition
  • Lightning-Fast Execution โ€” Caching of tool definitions, prompts, and connection pooling for low latency
  • Autonomy & Proactivity โ€” Long-term goals, context-aware triggers, proactive suggestions, self-initiated research
  • MCP Client โ€” Model Context Protocol support for external MCP servers and tools
  • Gateway Mode โ€” Built-in support for Telegram, Discord, Email, Web, and CLI
  • Plan & Execute โ€” Structured task planning with step-by-step tracking and sub-plans
  • Shared Scratchpad โ€” Key-value storage for agent-to-agent communication
  • Cron Scheduling โ€” Independent task scheduling with at/every/cron patterns
  • Modern Web UI โ€” Brutalist design with CRT effects, real-time updates, and file uploads

๐Ÿ“Š Agentic AI Capability Scorecard

Evaluated by automated code analysis across 12 capability dimensions.

Category Score Highlights
Multi-Agent Orchestration 9/10 Dependency-aware scheduling, semantic delegation, dynamic agent spawning, A2A messaging
Tool Use & Execution 9/10 40+ tools, embeddings-based filtering, parallel execution, circuit breaker
Context & Memory 9/10 Knowledge graph, 4-layer memory, strategic forgetting, prompt cache
Planning & Reasoning 9/10 Hierarchical plans, doom loop detection, evaluation loop, auto-checkpoint
Safety & Guardrails 9/10 35+ injection patterns, PII detection, secret scrubbing, AES-256-GCM
Provider Abstraction 9/10 20+ providers, fallback chains, Bayesian quality ranking, retry with jitter
Channel Integration 8/10 Telegram, Discord, Email, Web, CLI with shared retry logic
Observability & Ops 9/10 SQLite audit logging, distributed tracing, health/metrics endpoints
Self-Improvement 8/10 7-phase evolution loop, SafeModifier, performance-driven agent retirement
Skills & Extensibility 8/10 126 skills, 40 agent templates, ClawHub marketplace, lazy loading
Evaluation & Testing 8/10 LLM-as-judge scoring, A/B comparison, 5 benchmark suites
Scheduling & Automation 8/10 3 schedule types, heartbeat, goal-driven autonomy, context triggers
Avg: 8.6

๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    Channels (Input)                      โ”‚
โ”‚   Telegram  ยท  Discord  ยท  Email  ยท  Web UI  ยท  CLI    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                           โ”‚
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚   Gateway    โ”‚  โ† HTTP/WebSocket/REST
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                           โ”‚
              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
              โ”‚         Orchestrator          โ”‚
              โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”      โ”‚
              โ”‚  โ”‚   Evolution Engine  โ”‚      โ”‚
              โ”‚  โ”‚  (Self-Improvement) โ”‚      โ”‚
              โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜      โ”‚
              โ”‚                               โ”‚
              โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
              โ”‚  โ”‚  Agent 1  โ”‚  โ”‚  Agent 2  โ”‚  โ”‚
              โ”‚  โ”‚  (A2A)    โ”‚  โ”‚  (A2A)    โ”‚  โ”‚
              โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜  โ”‚
              โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                       โ”‚             โ”‚
              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
              โ”‚         Tool Layer             โ”‚
              โ”‚  File ยท Shell ยท Web ยท Browser  โ”‚
              โ”‚  GitHub ยท Google ยท Bitcoin     โ”‚
              โ”‚  Cron ยท Memory ยท Plan ยท MCP    โ”‚
              โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                              โ”‚
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚   LLM Providers    โ”‚
                    โ”‚  20+ with fallback โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

โš”๏ธ Comparison

Sofia AutoGPT CrewAI LangChain OpenDevin
Runs 100% locally โœ… โŒ โŒ โŒ โŒ
Single binary โœ… โŒ โŒ โŒ โŒ
40+ built-in tools โœ… Limited Via plugins Via plugins Limited
Knowledge graph โœ… Basic โŒ โŒ โŒ
Self-improving โœ… โŒ โŒ โŒ โŒ
Multi-agent orchestration โœ… Basic โœ… Basic โŒ
Browser automation โœ… โŒ โŒ โŒ โŒ
Computer use โœ… โŒ โŒ โŒ โŒ
20+ LLM providers โœ… Limited Limited โœ… Limited
Security guardrails โœ… โŒ โŒ โŒ โŒ
Language Go Python Python Python Python

๐Ÿ“‚ Workspace Structure

~/.sofia/
โ”œโ”€โ”€ config.json          # LLM providers, model selection, preferences
โ”œโ”€โ”€ workspace/
โ”‚   โ”œโ”€โ”€ IDENTITY.md      # Who Sofia is
โ”‚   โ”œโ”€โ”€ SOUL.md          # Personality & behavior rules
โ”‚   โ”œโ”€โ”€ USER.md          # User preferences
โ”‚   โ”œโ”€โ”€ skills/          # 126+ skill definitions
โ”‚   โ””โ”€โ”€ agents/          # 40+ agent templates
โ”œโ”€โ”€ db/                  # SQLite databases (memory, audit, goals)
โ””โ”€โ”€ logs/                # Execution logs

๐Ÿ—บ๏ธ Roadmap

  • Plugin SDK โ€” Third-party tool development kit
  • Voice Interface โ€” Speech-to-text and text-to-speech
  • Mobile Companion โ€” iOS/Android control app
  • Team Mode โ€” Multi-user collaboration
  • Cloud Sync โ€” Optional encrypted cloud backup
  • Marketplace โ€” Community skills and agents marketplace

๐Ÿค Contributing

We love contributions! See CONTRIBUTING.md for guidelines.

Whether you are fixing a bug, adding a feature, improving docs, or sharing a skill โ€” every contribution matters.

๐Ÿ›ก๏ธ Security

Found a vulnerability? Please see SECURITY.md for responsible disclosure.

๐Ÿ“„ License

Sofia is released under the MIT License.


โญ Star us on GitHub ยท ๐Ÿ› Report a Bug ยท ๐Ÿ’ฌ Join the Discussion

Made with โค๏ธ by the Sofia community

Release History

VersionChangesUrgencyDate
main@2026-04-23Latest activity on main branchHigh4/23/2026
0.0.0No release found โ€” using repo HEADHigh4/11/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

ryvosOpen-source autonomous AI assistant with 5-tier security, 62 tools, 14 LLM providers. Written in Rust. Single binary.v0.9.0
mcp-anythingOne command to turn any codebase into an MCP serverv0.2.0
DaemoraOpen-source AI agent - any LLM, any MCP server, any channel. Self-hosted, autonomous, multi-tenant.2026.1.0-beta.0
Perplexity-Comet-MCPNo descriptionmain@2026-06-07
scagent๐Ÿ” Discover security flaws and improve code quality with ShenCha, an AI-powered autonomous code audit agent designed for developers.main@2026-06-07

More in MCP Servers

node9-proxyThe Execution Security Layer for the Agentic Era. Providing deterministic "Sudo" governance and audit logs for autonomous AI agents.
mcp-compressorAn MCP server wrapper for reducing tokens consumed by MCP tools.
claude-plugins-officialOfficial, Anthropic-managed directory of high quality Claude Code Plugins.
langchain4jLangChain4j is an open-source Java library that simplifies the integration of LLMs into Java applications through a unified API, providing access to popular LLMs and vector databases. It makes impleme