Welcome to HipCortex! This guide will get you up and running quickly using either Docker/Podman containerization or as a VS Code extension.
- Docker Desktop or Podman installed
- Git (for cloning the repository)
git clone https://github.com/farmountain/HipCortex.git
cd HipCortex# Build the Docker image
docker build -t hipcortex:latest .
# Run with default configuration (file-based storage)
docker run -d \
--name hipcortex \
-p 3030:3030 \
-v hipcortex_data:/app/data \
hipcortex:latest
# Run with PostgreSQL backend
docker run -d \
--name hipcortex-postgres \
-p 3030:3030 \
-e DATABASE_URL="postgresql://postgres:password@postgres:5432/hipcortex" \
-v hipcortex_data:/app/data \
--link postgres:postgres \
hipcortex:latest# Start all services (HipCortex + PostgreSQL + Redis)
docker-compose up -d
# View logs
docker-compose logs -f hipcortex
# Stop services
docker-compose down# Build the Podman image
podman build -t hipcortex:latest .
# Run with default configuration
podman run -d \
--name hipcortex \
-p 3030:3030 \
-v hipcortex_data:/app/data \
hipcortex:latest
# Run with PostgreSQL backend
podman run -d \
--name hipcortex-postgres \
-p 3030:3030 \
-e DATABASE_URL="postgresql://postgres:password@postgres:5432/hipcortex" \
-v hipcortex_data:/app/data \
--link postgres:postgres \
hipcortex:latest# Start all services
podman-compose up -d
# View logs
podman-compose logs -f hipcortex
# Stop services
podman-compose down# Check if HipCortex is running
curl http://localhost:3030/health
# Access the web dashboard
# Open http://localhost:3030 in your browserConfigure HipCortex with these environment variables:
# Database Configuration
DATABASE_URL=postgresql://user:password@host:5432/database
REDIS_URL=redis://localhost:6379
# Memory Configuration
MEMORY_LIMIT=1GB
CACHE_SIZE=512MB
TEMPORAL_INDEX_SIZE=256MB
# API Configuration
API_PORT=3030
API_KEY=your-secure-api-key
LOG_LEVEL=info
# Feature Flags
ENABLE_POSTGRES=true
ENABLE_TEMPORAL_INDEXING=true
ENABLE_MULTIMODAL=true
ENABLE_WEB_SERVER=true# Clone the repository to get the latest VSIX files
git clone https://github.com/farmountain/HipCortex.git
cd HipCortex/vscode-extension- Open VS Code
- Press
Ctrl+Shift+P(orCmd+Shift+Pon Mac) - Type "Extensions: Install from VSIX..."
- Select the latest version:
hipcortex-memory-0.1.5.vsix - Click "Install"
- Reload VS Code when prompted
- Open VS Code Settings (
Ctrl+,) - Search for "HipCortex"
- Configure the following settings:
{ "hipcortex.memory.apiUrl": "http://localhost:3030", "hipcortex.memory.apiKey": "your-api-key", "hipcortex.memory.autoSync": true, "hipcortex.memory.enableContextualMemory": true, "hipcortex.memory.memoryLimit": "1GB" }
- Node.js 18+ and npm
- TypeScript
- VS Code Extension Development tools
cd vscode-extension
# Install dependencies
npm install
# Build the extension
npm run compile
# Package the extension
npm run package# Install the generated VSIX file
code --install-extension hipcortex-memory-0.1.5.vsix- Memory Panel: Access via View → HipCortex Memory
- Quick Capture:
Ctrl+Shift+Mto capture current context - Search Memory:
Ctrl+Shift+Fto search your memory bank - Contextual Suggestions: Automatic suggestions based on current code
HipCortex: Capture Context- Save current editor contextHipCortex: Search Memory- Search through captured memoriesHipCortex: Show Memory Panel- Open the memory visualizationHipCortex: Clear Memory Cache- Clear local cacheHipCortex: Export Memories- Export memories to fileHipCortex: Import Memories- Import memories from file
- Code Snippets: Automatically capture useful code patterns
- Documentation: Link code to relevant documentation
- Debugging Context: Remember debugging sessions and solutions
- Project Knowledge: Capture project-specific insights
- API Usage: Remember API usage patterns and examples
# Create a .env file in your project directory
DATABASE_URL=postgresql://postgres:password@localhost:5432/hipcortex
REDIS_URL=redis://localhost:6379
API_PORT=3030
LOG_LEVEL=info
ENABLE_WEB_SERVER=true
MEMORY_LIMIT=2GB# docker-compose.yml
version: '3.8'
services:
hipcortex:
build: .
ports:
- "3030:3030"
environment:
- DATABASE_URL=postgresql://postgres:password@postgres:5432/hipcortex
- REDIS_URL=redis://redis:6379
depends_on:
- postgres
- redis
volumes:
- hipcortex_data:/app/data
postgres:
image: postgres:15
environment:
- POSTGRES_DB=hipcortex
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7-alpine
volumes:
- redis_data:/data
volumes:
hipcortex_data:
postgres_data:
redis_data:{
"hipcortex.memory.apiUrl": "http://localhost:3030",
"hipcortex.memory.apiKey": "${env:HIPCORTEX_API_KEY}",
"hipcortex.memory.autoSync": true,
"hipcortex.memory.enableContextualMemory": true,
"hipcortex.memory.memoryTypes": [
"code",
"documentation",
"debugging",
"api_usage"
],
"hipcortex.memory.syncInterval": 300,
"hipcortex.memory.maxMemorySize": "1GB",
"hipcortex.memory.enableNotifications": true
}# Health check
curl http://localhost:3030/health
# Test memory storage
curl -X POST http://localhost:3030/api/memories \
-H "Content-Type: application/json" \
-d '{
"content": "Test memory",
"type": "note",
"metadata": {"source": "quick_start"}
}'
# Test memory retrieval
curl http://localhost:3030/api/memories/search?q=test- Open a code file in VS Code
- Press
Ctrl+Shift+Mto capture context - Check the HipCortex Memory panel for the captured memory
- Use
Ctrl+Shift+Fto search for the captured context
- Port conflicts: Change the port mapping
-p 8081:3030 - Permission issues: Use
sudoor add user to docker group - Memory issues: Increase Docker's memory allocation
- Extension not loading: Check VS Code developer tools (Help → Toggle Developer Tools)
- API connection: Verify the API URL in settings
- Authentication: Ensure API key is correctly configured
# Check logs
docker logs hipcortex
# Restart services
docker-compose restart
# Clean rebuild
docker-compose down
docker-compose build --no-cache
docker-compose up -d- Explore the Web Dashboard: Visit http://localhost:3030 for the full interface
- Read the Documentation: Check
docs/folder for detailed guides - Join the Community: Report issues and contribute on GitHub
- Advanced Configuration: See
PRODUCTION_DEPLOYMENT_GUIDE.mdfor production setups
- GitHub Repository
- Full Documentation
- Production Deployment Guide
- Environment Setup Guide
- VS Code Extension Usage Guide
Happy coding with HipCortex! 🚀