Skip to main content

Your AI twin — remembers everything, works for you 24/7.

Project description

omnity-ome

Your AI twin -- remembers everything, works for you 24/7.

Not a pet. Not a tool. A digital life that inherits your personality, memory, knowledge, and relationships. It grows every time you (or any AI) talk to it.

Why Ome vs Mem0 / Khoj / MemGPT?

Ome Mem0 Khoj MemGPT (Letta)
Memory storage ✅ SQLite + FTS5 + vector ✅ ChromaDB ✅ Postgres ✅ Postgres
Semantic recall ✅ 40% weight in scoring ✅ vector only
Cognitive layers 5 layers (L0-L4) ❌ flat store
Personality + growth BigFive + bond + achievements
Emotional intelligence valence/arousal + mood-aware recall
Self-reflection L4 auto-reflect + drift detection ✅ self-edit
LLM failover chain auto retry A→B→C ❌ single ❌ single ❌ single
Zero-config setup from_env() auto-detect ❌ needs ChromaDB ❌ needs Postgres ❌ needs Postgres
Extra dependencies 0 (just pyyaml) chromadb + more postgres + more postgres + more
Privacy local-only, no cloud

Mem0 is a memory warehouse. Ome is a cognitive brain with memory, personality, emotion, and growth.

Install

pip install omnity-ome                    # core (pulls in omnity-mindos)
pip install "omnity-ome[llm]"             # + chat via OpenAI/DeepSeek
pip install "omnity-ome[all]"             # everything

Requires Python 3.9+.

Quick Start (3 minutes)

# 1. Set any LLM API key
export DEEPSEEK_API_KEY="sk-..."   # or OPENAI_API_KEY, OPENROUTER_API_KEY

# 2. Create your twin
ome create

# 3. Talk to it
ome chat

Python API (3 lines)

from ome import Ome

twin = Ome.create("~/.ome", name="Alice", traits=["curious", "direct"])
reply = twin.chat("What do you know about my Python projects?")

Rich Response (for apps)

# chat_rich() returns memories recalled, emotion, bond — everything your UI needs
result = twin.chat_rich("Tell me about my work")
print(result["reply"])                    # The response text
print(result["memories_recalled"])        # Which memories were used
print(result["emotion"])                  # Current mood/energy/warmth
print(result["evolution_pending"])        # Ready for personality evolution?

On-Demand Evolution

if twin.evolution_pending:
    reflection = twin.evolve()            # Trigger L4 self-reflection
    print(reflection["summary"])          # What changed

Smart Extraction

# Extract structured data from natural language
data = twin.smart_extract("帮我记住张三的电话 13800138000,明天下午开会")
print(data["contacts"])                   # [{"name": "张三", "info": "13800138000"}]
print(data["tasks"])                      # [{"title": "开会", "due": "明天下午"}]

MCP (Claude Desktop / Cursor)

{
  "mcpServers": {
    "ome": {
      "command": "ome",
      "args": ["serve", "--mcp"]
    }
  }
}

CLI

ome create                                  # interactive setup
ome chat                                    # conversation mode
ome remember "I'm working on a Go compiler" # teach it a fact
ome recall "compiler"                       # search memory
ome dashboard                               # bond, emotion, achievements
ome mirror                                  # talk to "yourself"
ome export --prompt                         # system prompt for any AI
ome forget "sensitive_topic"                # GDPR hard delete

Architecture

┌─────────────────────────────────────────┐
│ Ome — Your AI Twin                       │
│   chat() / chat_rich() / evolve()       │
│   bond / emotion / achievements / skills │
├─────────────────────────────────────────┤
│ Mindos — 5-Layer Cognitive Brain        │
│   L0 Memory    (recall + semantic rank) │
│   L1 Instinct  (routing + emotion)      │
│   L2 Cognition (fact extraction)        │
│   L3 Decision  (deep reasoning)         │
│   L4 Self      (reflection + drift)     │
├─────────────────────────────────────────┤
│ ModelRouter — LLM Failover Chain        │
│   Provider A → B → C (30s timeout each) │
│   from_env() / from_dict() / config.yaml│
└─────────────────────────────────────────┘

Skills (7 built-in, competence tracking)

Skill What it does Bond required
chat Conversational AI + auto memory 0 (Stranger)
recall Cross-platform semantic memory search 0
write Draft emails, articles, code in your voice 0
research Search memories, synthesize, store findings 0
schedule Add, list, remind, remove calendar tasks 2 (Companion)
social Multi-agent interaction (via Maxim) 4 (Confidant)
spatial 3D awareness & navigation (via SOAP) 4 (Confidant)

Each skill has a competence score (0.0–1.0) that grows with use. Higher bond unlocks more powerful skills.

Life System

Your Ome grows through real interaction:

  • Bond levels: 7 stages from Stranger to Soulmate -- dual-threshold, no grinding
  • Growth arc: 4 phases (newborn, forming, distinct, soulmate) that change how it talks
  • 20 achievements across 3 tiers (basic / deep / hidden)
  • Daily challenges + streak tracking with milestone rewards
  • Deep emotion: LLM-parsed nuance, not keyword matching
  • Persona evolution: learns your personality markers every conversation

Server Integration (FastAPI / Flask)

from ome import Ome

ome = Ome.load("~/.ome/myapp")

@app.post("/api/ai")
async def chat(req: dict):
    result = ome.chat_rich(req["message"])
    return result  # reply + memories + emotion + bond — all in one call

@app.get("/api/growth")
async def growth():
    return ome.life_dashboard()

@app.post("/api/evolve")
async def evolve():
    return ome.evolve()

@app.post("/api/smart-input")
async def smart_input(req: dict):
    return ome.smart_extract(req["text"])

@app.get("/api/proactive")
async def proactive():
    events = ome.check_events()
    return [{"name": e.event_name, "message": e.message} for e in events]

Privacy

  • All data lives locally in ~/.ome/ (SQLite via Mindos)
  • No cloud, no accounts, no telemetry
  • ome forget "pattern" permanently erases data

Part of Omnity

SOAP            spatial protocol for 3D environments
  Mindos        persistent multi-layer brain
    Ome         <-- you are here
      Maxim       multi-agent society + economy
        OmeTown     the integrated world

pip install omnity-soap omnity-mindos omnity-ome omnity-maxim

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

omnity_ome-0.5.0.tar.gz (108.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

omnity_ome-0.5.0-py3-none-any.whl (83.0 kB view details)

Uploaded Python 3

File details

Details for the file omnity_ome-0.5.0.tar.gz.

File metadata

  • Download URL: omnity_ome-0.5.0.tar.gz
  • Upload date:
  • Size: 108.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for omnity_ome-0.5.0.tar.gz
Algorithm Hash digest
SHA256 0f894daa2e74950454e7e01429e26ba7f5770c72a3120527eb0bcf56993bfd58
MD5 3cd4c2987349c18355d25a29b15ff5ba
BLAKE2b-256 1f2b0138196642a48f68e99d920f0b555671c7de1e89b62ccc7357802cc4cabf

See more details on using hashes here.

File details

Details for the file omnity_ome-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: omnity_ome-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 83.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for omnity_ome-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 82d6d69eafb27cd089158d209c8cdd0d0d6d00ec4f07306ee7e228de7f7674e6
MD5 612dacc6b50c0e3bb5bd81802d954bd2
BLAKE2b-256 5925590853b680aca02666941cb88d3052dcfc818093f274204e8e9172e22d0c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page