emotion_ai
The Aura Emotion AI system has chroma with a local embedding model, memvid qr code mp4 infinite memory, brainwave and neurochemical simulations, sociobiological reasoning, autonomous subsystem processing with a Gemini flash model so the main model is less taxed, is a MCP client with adaptive tool learning and MCP server.
Documentation
Aura Backend - Advanced AI Companion
> Sophisticated AI Companion with Vector Database, Emotional Intelligence, and Model Context Protocol Integration
Two WARNINGS and a disclaimer
- AI generated code
- Aura could be dangerous despite my attempted safeguards in a number of ways including but not limited to
PC damage
User mental health and attachment
Emotional agentic activity
User assumes all liability.


π Features
π§ Advanced Cognitive Architecture
- ASEKE Framework: Adaptive Socio-Emotional Knowledge Ecosystem
- Real-time Emotional State Detection with neurological correlations
- Cognitive Focus Tracking across different mental frameworks
- Adaptive Self-Reflection for continuous improvement
- π Thinking Extraction: Transparent AI reasoning with thought analysis and cognitive transparency
ποΈ Intelligent Memory System
- Vector Database Integration with ChromaDB for semantic search
- Persistent Conversation Memory with embedding-based retrieval
- Emotional Pattern Analysis over time
- Cognitive State Tracking and trend analysis
- MemVid AI QR code mp4 memory Infinite MP4 based memory
- Internal AI guided Memory Organization tools Move information from short to long term memory systems to avoid bottlenecks and categorize chats
π MCP Integration
- Model Context Client Utilizes the same MCP config JSON format as Claude Desktop- Use ANY tools!
- Model Context Protocol Server for external tool integration
- Standardized AI Agent Communication following MCP specifications
- Tool Ecosystem Compatibility with other MCP-enabled systems
- Bidirectional Data Exchange with external AI agents
π Advanced Analytics
- Emotional Trend Analysis with stability metrics
- Cognitive Pattern Recognition and optimization
- Personalized Recommendations based on interaction history
- Data Export in multiple formats (JSON, CSV, etc.)
Data Flow
1. User Input β Frontend β FastAPI
2. Processing β Vector DB Search β Context Retrieval
3. AI Processing β Explicitly Selected Provider β Response Generation
4. State Updates β Emotional/Cognitive Analysis β Pattern Storage
5. Memory Storage β Vector DB β Persistent Learning
6. External Access β MCP Server β Tool Integration
π§ AI Thinking & Reasoning Transparency
Thinking Extraction Capabilities
- Real-time Reasoning Capture: Extract and analyze AI thought processes during conversations
- Thought Summarization: Automatic generation of reasoning summaries for quick understanding
- Cognitive Transparency: Full visibility into how Aura approaches problems and makes decisions
- Reasoning Metrics: Detailed analytics on thinking patterns, processing time, and cognitive load
Thinking Configuration
- Thinking Budget: Configurable reasoning depth (1024-32768 tokens)
- Response Integration: Optional inclusion of reasoning in user responses
- Pattern Analysis: Long-term analysis of reasoning patterns and cognitive development
- Performance Optimization: Thinking efficiency metrics and optimization recommendations
π Emotional Intelligence System
Supported Emotions
- Basic: Normal, Happy, Sad, Angry, Excited, Fear, Disgust, Surprise
- Complex: Joy, Love, Peace, Creativity, DeepMeditation
- Combined: Hope (Anticipation + Joy), Optimism, Awe, Remorse
- Social: RomanticLove, PlatonicLove, ParentalLove, Friendliness
Neurological Correlations
- Brainwave Patterns: Alpha, Beta, Gamma, Theta, Delta
- Neurotransmitters: Dopamine, Serotonin, Oxytocin, GABA, Norepinephrine
- NTK Layers: Neural Tensor Kernel mapping for emotional states
π§ ASEKE Cognitive Framework
Components
- KS (Knowledge Substrate): Shared conversational context
- CE (Cognitive Energy): Mental effort and focus allocation
- IS (Information Structures): Ideas and concept patterns
- KI (Knowledge Integration): Learning and connection processes
- KP (Knowledge Propagation): Information sharing mechanisms
- ESA (Emotional State Algorithms): Emotional influence on processing
- SDA (Sociobiological Drives): Social dynamics and trust factors
π Analytics & Insights
Emotional Analysis
- Stability Metrics: Emotional consistency over time
- Dominant Patterns: Most frequent emotional states
- Transition Analysis: Emotional state changes and triggers
- Intensity Tracking: Emotional intensity distribution
- Brainwave Correlation: Neural activity pattern analysis
Cognitive Tracking
- Focus Patterns: ASEKE component utilization
- Learning Efficiency: Knowledge integration rates
- Context Switching: Cognitive flexibility metrics
- Attention Allocation: Cognitive energy distribution
π¦ Performance-
Responses take some time to process depending on tasks, any coder wants to see if they can speed up the processes I would be grateful.
Optimization
- Vector database indexing for fast searches
- Async processing for concurrent requests
- Cost-Free Local Embeddings: Support for `Ollama` and `fastembed` (BGE/Gemma) to avoid API costs
- Autonomous sub-model background Focus gating and task processing for state updates and tool use
- Tool learning adapter
- MemVid Infinite memory with modern `.mv2` single-file archival!
Monitoring
- Health check endpoint
- Performance metrics collection
- Error tracking and reporting
- Resource usage monitoring
MCP Client now fully functional!!! Memvid integration attempted- still testing.
I am not a coder so hopefully it sets up right if anyone tries it.
Supported local startup
Aura is a private, single-user local application. It has no sign-in layer and
binds to `127.0.0.1` by default. Run these commands from the repository root.
One-time dependency setup
Setup is an explicit operator action. The startup command and wrapper scripts do
not install, synchronize, or download software or models.
uv sync --lockednpm ciCopy `.env.example` to `.env` only if you want to customize the local defaults.
The example selects Ollama and contains no credential. Gemini and OpenRouter are
optional cloud providers and require an explicit provider selection plus the
corresponding credential in your private environment.
Preflight, then serve
uv run --locked --no-sync python -m aura_backend.runtime preflightPreflight is report-only. It checks Python, uv, Node, npm, both lock contracts,
provider configuration, the selected port and storage paths, the selected
provider service and selected model, and application readiness. The provider
rows are a bounded live provider check; they are not part of the offline test
suite. Preflight never installs dependencies, downloads a model, creates storage,
changes permissions, kills another process, or starts Aura.
The JSON status is one of `pass` (exit 0), `missing` (2), `failed` (3),
`blocked` (4), `not_run` (5), or `not_applicable` (6). Only a complete `pass`
licenses startup. Other results name a safe remediation code; perform any repair
explicitly and rerun preflight rather than treating a blocked check as readiness.
uv run --locked --no-sync python -m aura_backend.runtime serve`serve` runs preflight first, starts only the requested local child processes,
waits for the backend `/ready` response, and returns a nonzero status if startup
or a child fails. Ctrl+C/SIGTERM cleans up only processes and local provider
sessions owned by this invocation. Cancellation cannot guarantee stopped remote
compute or billing at a cloud provider.
The cross-platform launchers are thin delegates to these same commands:
`./start_full_system.sh` and `start_full_system.bat` run full serve;
`./aura_backend/start_api.sh` and `./aura_backend/start_frontend.sh` select one
side. `./aura_backend/start_mcp.sh` is a separate optional MCP delegate and is
not part of normal Aura readiness.
For normal private use, keep the loopback default. Passing a non-loopback
`--host` is explicit LAN exposure; the runtime warns that Aura has no sign-in.
Do not expose Aura directly to the internet.
Once serve reports readiness, the local UI is at , the
API at , and API documentation at
. Environment-blocked and live-provider results are
evidence about that machine only, not proof that every provider or model works.

π‘ API Endpoints
Core API
- Health Check: `GET /health`
- Process Conversation: `POST /conversation`
- Search Memories: `POST /search`
- Emotional Analysis: `GET /emotional-analysis/{user_id}`
- Export Data: `POST /export/{user_id}`
API Documentation
Visit `http://localhost:8000/docs` for interactive API documentation.
π MCP Integration
Available MCP Tools- Working on emotional state records, hopefully fixed tomorrow
1. search_aura_memories: Semantic search through conversation history
2. analyze_aura_emotional_patterns: Deep emotional trend analysis
3. store_aura_conversation: Add memories to Aura's knowledge base
4. get_aura_user_profile: Retrieve user personalization data
5. export_aura_user_data: Data export functionality
6. query_aura_emotional_states: Information about emotional intelligence system
7. query_aura_aseke_framework: ASEKE cognitive architecture details
Connecting External Tools
To connect external MCP clients to Aura:
Example MCP client configuration- for Claude or other clients to talk to Aura or use as a system.
Edit your directory path and place in claude desktop config json.
{
"mcpServers": {
"aura-companion": {
"command": "uv",
"args": [
"--directory",
"/home/ty/Repositories/ai_workspace/emotion_ai/aura_backend",
"run",
"aura_server.py"
]
}
}
}ποΈ Architecture
System Components
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β Frontend β
β (React/TypeScript) β
βββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ
β HTTP/WebSocket
βββββββββββββββββββΌββββββββββββββββββββββββββββββββ
β FastAPI β
β (REST API Layer) β
βββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ€
β β β
β ββββββββββββββββΌββββββββββββββ β
β β Vector Database β β
β β (ChromaDB) β β
β β β β
β β β’ Conversation Memory β β
β β β’ Emotional Patterns β β
β β β’ Cognitive States β β
β β β’ Knowledge Substrate β β
β ββββββββββββββββββββββββββββββ β
β β
β ββββββββββββββββββββββββββββββ β
β β State Manager β β
β β β β
β β β’ Emotional Transitions β β
β β β’ Cognitive Focus Changes β β
β β β’ Automated DB Operations β β
β β β’ Pattern Recognition β β
β ββββββββββββββββββββββββββββββ β
β β
β ββββββββββββββββββββββββββββββ β
β β File System β β
β β β β
β β β’ User Profiles β β
β β β’ Data Exports β β
β β β’ Session Storage β β
β β β’ Backup Management β β
β ββββββββββββββββββββββββββββββ β
βββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ
β MCP Protocol
βββββββββββββββββββΌββββββββββββββββββββββββββββββββ
β MCP Server β
β (External Tool Access) β
β β
β β’ Memory Search Tools β
β β’ Emotional Analysis Tools β
β β’ Data Export Tools β
β β’ ASEKE Framework Access β
βββββββββββββββββββββββββββββββββββββββββββββββββββπ§ͺ Testing
Health Check (Working)
curl http://localhost:8000/healthThinking Functionality Tests (New!)
# Test thinking extraction capabilities
cd aura_backend
python test_thinking.py
# Interactive thinking demonstration
python thinking_demo.py
# Check thinking system status
curl http://localhost:8000/thinking-statusUnit Tests
pytest tests/Integration Tests
./test_setup.pyLoad Testing
# Example using wrk
wrk -t12 -c400 -d30s http://localhost:8000/healthLocal Development
I apologize for the mess, I do not know if any of this works below but feel free to try if you are brave or know what you are doing.
Production (Docker)
# Build image
docker build -t aura-backend .
# Run container
docker run -p 8000:8000 -v ./aura_data:/app/aura_data aura-backendSystemd Service
# Copy service file
sudo cp aura-backend.service /etc/systemd/system/
# Enable and start
sudo systemctl enable aura-backend
sudo systemctl start aura-backendπ€ Integration with Frontend
API Endpoints to Update
Update your frontend to use these endpoints:
const API_BASE = "http://localhost:8000";
// Replace localStorage with API calls
const response = await fetch(`${API_BASE}/conversation`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
user_id: userId,
message: userMessage,
session_id: sessionId,
}),
});WebSocket Support (Future)
Real-time updates and streaming responses will be available via WebSocket connections.
π Advanced Usage
Custom MCP Tools
Create custom MCP tools by extending the `mcp_server.py`:
@tool
async def custom_aura_tool(params: CustomParams) -> Dict[str, Any]:
"""Your custom tool implementation"""
# Implementation here
passVector Database Queries
Direct vector database access for advanced queries:
from main import vector_db
results = await vector_db.search_conversations(
query="emotional support",
user_id="user123",
n_results=10
)
π Troubleshooting
Use the safe remediation codes in the
Aura never kills an unknown process, deletes a database, prints a credential, or
rebuilds an environment as part of troubleshooting. Storage diagnosis and repair
remain preservation-gated work; make a verified backup before any manual change.
Logs
Check logs in:
- Console output during development
- System logs: `journalctl -u aura-backend` (if using systemd)
- Application logs: `./aura_data/logs/`
π Security- WARNING! AI Generated so I have 0 trust in these features
Data Protection
- All user data stored locally
- Local Ollama keeps model traffic local; explicitly selected cloud providers
transmit requests under their own terms
- Vector embeddings are anonymized
- Session data encrypted in transit
Access Control
- No sign-in or API authentication; keep the default loopback boundary
- Rate limiting enabled
- CORS configuration
- Input validation and sanitization
π£οΈ Roadmap
Upcoming Features
- [ ] Real-time WebSocket connections
- [ ] Advanced emotion prediction models
- [ ] Multi-user collaboration features
- [ ] Enhanced MCP tool ecosystem
- [ ] Mobile app backend support
- [ ] Advanced analytics dashboard
- [ ] Integration with external AI models
Long-term Vision
- Multi-modal interaction (voice, video, text)
- Federated learning across Aura instances
- Advanced personality adaptation
- Enterprise deployment options
- Open-source community ecosystem
π License
My stuff is MIT I suppose but there is other software like google-genai and memvid so it is a mixed bag I think
ie don't steal my ideas and try to make money, without me. lol but I am super poor.
π€ Contributing
Contributions welcome! Please read our contributing guidelines and submit pull requests for review.
π Support
For issues and support:
1. Check troubleshooting section
2. Review logs and error messages
3. Create detailed issue reports
4. Join community discussions
Aura Emotion AI - _Powering the future of AI companionship and assistance through advanced emotional intelligence and sophisticated memory systems._
Frequently asked questions
What is emotion_ai?
emotion_ai is The Aura Emotion AI system has chroma with a local embedding model, memvid qr code mp4 infinite memory, brainwave and neurochemical simulations, sociobiological reasoning, autonomous subsystem processing with a Gemini flash model so the main model is less taxed, is a MCP client with adaptive tool learning and MCP server.
How do I install emotion_ai?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is emotion_ai open source?
Yes β it is hosted on GitHub at https://github.com/angrysky56/emotion_ai and has 8 stars.
Related MCP tools
πͺ β¨ Model Context Protocol (MCP) Server for Jupyter. Python-based implementation. Trusted by 700+ developers. Trusted by 700+ developers.
A text-based user interface (TUI) client for interacting with MCP servers using Ollama. Features include multi-server, dynamic model switching, streaming res...
Universal memory layer for AI Agents; Announcing OpenMemory MCP - local and secure memory management. Python-based implementation.
An LLM agent that conducts deep research (local and web) on any given topic and generates a long report with citations. Built for the Model Context Protocol to
π₯ MaxKB is an open-source platform for building enterprise-grade agents. MaxKB ζ―εΌΊε€§ζη¨ηεΌζΊδΌδΈηΊ§ζΊθ½δ½εΉ³ε°γ for the Model Context Protocol. Enhance AI assistants with po
A powerful coding agent toolkit providing semantic retrieval and editing capabilities (MCP server & other integrations) Python-based implementation.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP