diff --git a/configure_api_keys.sh b/configure_api_keys.sh new file mode 100644 index 0000000..9f4bcbc --- /dev/null +++ b/configure_api_keys.sh @@ -0,0 +1,73 @@ +#!/bin/bash +# Configure API Keys for DevMatrix +# Run this to add your Kimi and Antigravity API keys + +echo "🔐 DevMatrix API Key Configuration" +echo "===================================" +echo "" +echo "You will need:" +echo " 1. Kimi API Key (from https://kimi.moonshot.cn/)" +echo " 2. Antigravity API Key (from your provider)" +echo "" + +# Read Kimi API Key +echo -n "Enter your Kimi API Key: " +read -s KIMI_KEY +echo "" + +# Read Antigravity API Key +echo -n "Enter your Antigravity API Key: " +read -s ANTIGRAVITY_KEY +echo "" + +# Create config directory +mkdir -p ~/.openclaw/config + +# Save Kimi config +cat > ~/.openclaw/config/kimi.yaml << EOF +provider: kimi +name: "Kimi K2.5" +auth: + type: api_key + key: "$KIMI_KEY" +models: + primary: + id: "k2p5" + max_tokens: 128000 + fallback: + id: "k1.5" + max_tokens: 64000 +routing: + priority: 1 +EOF + +# Save Antigravity config +cat > ~/.openclaw/config/antigravity.yaml << EOF +provider: antigravity +name: "Antigravity" +auth: + type: api_key + key: "$ANTIGRAVITY_KEY" +models: + primary: + id: "mixtral-8x7b" + max_tokens: 32000 + secondary: + id: "qwen2.5-coder" + max_tokens: 32000 +routing: + priority: 2 +EOF + +# Set permissions +chmod 600 ~/.openclaw/config/*.yaml + +echo "" +echo "✅ API Keys configured!" +echo "" +echo "Config files created:" +echo " ~/.openclaw/config/kimi.yaml" +echo " ~/.openclaw/config/antigravity.yaml" +echo "" +echo "Test with: openclaw models list" +echo ""