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.4.1.tar.gz (102.5 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.4.1-py3-none-any.whl (80.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: omnity_ome-0.4.1.tar.gz
  • Upload date:
  • Size: 102.5 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.4.1.tar.gz
Algorithm Hash digest
SHA256 f58031ea3631135648afefc407078a79bea1bc44b4b3864fc310f28ce43e2cbc
MD5 872b6a6b3730b56ceadaae8c237a9913
BLAKE2b-256 e6dc727bc1ce155b09f7b5dddd382f1b4a6ba7eccfebd4d8ee184679188b300c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: omnity_ome-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 80.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.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a414308cb055cd3a5626b743f0b290ea440ec9671e25e0398e8c63f8afb22712
MD5 8b2bb1582ca9839b477aa9d54f530664
BLAKE2b-256 fc60bc80af5f8d9dc9d074700f2c66d98d88dad09e8a63221710e12ad03c8ba8

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