-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
76 lines (39 loc) · 1.7 KB
/
install.sh
File metadata and controls
76 lines (39 loc) · 1.7 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/usr/bin/env bash
set -e
command -v curl >/dev/null 2>&1 || {
echo "✗ curl is required but not installed."
exit 1
}
PLUGIN_DIR="$HOME/.openclaw/workspace/plugins/wraithvector"
BASE_URL="https://raw.githubusercontent.com/wraithvector0/wraithvector-openclaw/main"
echo ""
echo "╔══════════════════════════════════════════╗"
echo "║ WraithVector Governance Plugin ║"
echo "║ for OpenClaw ║"
echo "╚══════════════════════════════════════════╝"
echo ""
echo "→ Creating plugin directory..."
mkdir -p "$PLUGIN_DIR"
echo "→ Downloading plugin files..."
curl -fsSL "$BASE_URL/index.mjs" -o "$PLUGIN_DIR/index.mjs"
curl -fsSL "$BASE_URL/openclaw.plugin.json" -o "$PLUGIN_DIR/openclaw.plugin.json"
if [ ! -f "$PLUGIN_DIR/index.mjs" ] || [ ! -f "$PLUGIN_DIR/openclaw.plugin.json" ]; then
echo "✗ Download failed. Check your connection and try again."
exit 1
fi
echo ""
echo "✓ Plugin installed at $PLUGIN_DIR"
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo " Next step: set your API key"
echo ""
echo " Get your free key at:"
echo " https://app.wraithvector.com/onboarding"
echo ""
echo " Then set it:"
echo " export WRAITHVECTOR_API_KEY=wv_your_key_here"
echo ""
echo " Then restart OpenClaw:"
echo " openclaw gateway restart"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""