-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_memos.sh
More file actions
39 lines (34 loc) · 1.12 KB
/
setup_memos.sh
File metadata and controls
39 lines (34 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# Setup script for memOS REST API server
# This script will help you configure the memOS server with your API keys
echo "Setting up memOS REST API server..."
# Check if we're in the right directory
if [ ! -f "memos-server/docker-compose.yml" ]; then
echo "Error: Please run this script from the echo-mind-backend directory"
exit 1
fi
# Create .env file for memOS if it doesn't exist
if [ ! -f "memos-server/.env" ]; then
cp memos-server/.env.example memos-server/.env
echo "Created memos-server/.env from template"
fi
echo ""
echo "Please update the following API keys in memos-server/.env:"
echo ""
echo "1. OPENAI_API_KEY=your_actual_openai_api_key"
echo "2. BRAVE_API_KEY=your_actual_brave_api_key"
echo ""
echo "Current memos-server/.env configuration:"
echo "----------------------------------------"
cat memos-server/.env
echo ""
echo "----------------------------------------"
echo ""
echo "After updating the API keys, run:"
echo "cd memos-server && docker compose up -d"
echo ""
echo "To check if the services are running:"
echo "docker compose ps"
echo ""
echo "To view logs:"
echo "docker compose logs -f"