forked from 1rgs/claude-code-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
33 lines (29 loc) · 955 Bytes
/
install.sh
File metadata and controls
33 lines (29 loc) · 955 Bytes
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
#!/bin/bash
# anthropic-proxy Installation Script for Linux/macOS
set -e
echo "🔍 Checking for uv..."
if ! command -v uv &> /dev/null; then
echo "❌ uv not found. Installing uv..."
curl -LsSf https://astral.sh/uv/install.sh | sh
# Refresh PATH for current session
export PATH="$HOME/.cargo/bin:$PATH"
else
echo "✅ uv is already installed."
fi
echo "⚙️ Configuring environment..."
if [ ! -f .env ]; then
if [ -f .env.example ]; then
cp .env.example .env
echo "✅ Created .env from .env.example"
echo "⚠️ Please edit .env and add your API keys."
else
echo "❌ .env.example not found. Please create .env manually."
fi
else
echo "ℹ️ .env already exists, skipping."
fi
echo "🚀 Setup complete!"
echo "--------------------------------------------------"
echo "To start the server, run:"
echo " ./start.sh"
echo "--------------------------------------------------"