-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathinstall-local.sh
More file actions
executable file
·58 lines (48 loc) · 1.47 KB
/
install-local.sh
File metadata and controls
executable file
·58 lines (48 loc) · 1.47 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
echo "🚀 DeepSeek CLI Local Setup"
echo "=========================="
# Check if Node.js is installed
if ! command -v node &> /dev/null; then
echo "❌ Node.js not found. Please install Node.js 18+ first."
echo " Visit: https://nodejs.org"
exit 1
fi
echo "✅ Node.js found: $(node --version)"
# Check if Ollama is installed
if ! command -v ollama &> /dev/null; then
echo "❌ Ollama not found. Installing Ollama..."
if [[ "$OSTYPE" == "darwin"* ]]; then
# macOS
if command -v brew &> /dev/null; then
brew install ollama
else
echo "Please install Homebrew first or download Ollama from https://ollama.ai"
exit 1
fi
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
# Linux
curl -fsSL https://ollama.ai/install.sh | sh
else
echo "Please install Ollama manually from https://ollama.ai"
exit 1
fi
fi
echo "✅ Ollama found: $(ollama --version)"
# Install the CLI
echo "📦 Installing DeepSeek CLI..."
npm install -g run-deepseek-cli
# Start Ollama service
echo "🔧 Starting Ollama service..."
ollama serve &
sleep 3
# Install the model
echo "📥 Installing DeepSeek Coder model (this may take a while)..."
ollama pull deepseek-coder:6.7b
echo ""
echo "🎉 Setup complete!"
echo ""
echo "You can now use DeepSeek CLI locally:"
echo " deepseek"
echo ""
echo "Or test with a single prompt:"
echo " deepseek chat 'Write a hello world function in Python'"