---
title: 'Development Guide'
description: 'Complete development environment setup and workflow'
---

## Development Environment

### Project Structure

```
/home/klas/mem0/
├── venv/                    # Python virtual environment
├── config.py               # Configuration management
├── test_basic.py           # Basic functionality tests
├── test_openai.py          # OpenAI integration test
├── test_all_connections.py # Comprehensive connection tests
├── docker-compose.yml      # Neo4j container (Supabase is external)
├── .env                    # Environment variables
└── docs/                   # Documentation (Mintlify)
```

### Current Status: Phase 1 Complete ✅

| Component | Status | Port | Description |
|-----------|--------|------|-------------|
| Neo4j | ✅ READY | 7474/7687 | Graph memory storage |
| Supabase | ✅ READY | 8000/5435 | Vector & database storage (self-hosted) |
| Ollama | ✅ READY | 11434 | Local LLM processing |
| Mem0 Core | ✅ READY | - | Memory management system v0.1.115 |

### Development Workflow

1. **Environment Setup**
   ```bash
   source venv/bin/activate
   ```

2. **Start Services**
   ```bash
   docker compose up -d
   ```

3. **Run Tests**
   ```bash
   python test_all_connections.py
   ```

4. **Development**
   - Edit code and configurations
   - Test changes with provided test scripts
   - Document changes in this documentation

### Next Development Phases

<CardGroup cols={2}>
  <Card title="Phase 2: Core Memory System">
    - Ollama integration
    - Basic memory operations
    - Neo4j graph memory
  </Card>
  <Card title="Phase 3: API Development">
    - REST API endpoints
    - Authentication layer
    - Performance optimization
  </Card>
  <Card title="Phase 4: MCP Server">
    - HTTP transport protocol
    - Claude Code integration
    - Standardized operations
  </Card>
  <Card title="Phase 5: Documentation">
    - Complete API reference
    - Deployment guides
    - Integration examples
  </Card>
</CardGroup>