feat: Add Kimi configuration script for OpenClaw

This commit is contained in:
devmatrix 2026-02-16 16:58:04 +00:00
parent 341ea9bd98
commit 884bf3301d
1 changed files with 44 additions and 0 deletions

44
configure_kimi.sh Normal file
View File

@ -0,0 +1,44 @@
#!/bin/bash
# Configure Kimi for OpenClaw properly
echo "🔐 Configuring Kimi for OpenClaw"
echo "================================"
echo ""
echo -n "Enter your Kimi API Key: "
read -s KIMI_KEY
echo ""
if [ -z "$KIMI_KEY" ]; then
echo "❌ No key provided. Exiting."
exit 1
fi
# OpenClaw uses auth profiles, not yaml files
mkdir -p ~/.openclaw/agent/auth-profiles
# Create auth profile for Kimi
cat > ~/.openclaw/agent/auth-profiles/kimi.json << EOF
{
"provider": "kimi",
"type": "api_key",
"key": "$KIMI_KEY",
"defaultModel": "kimi/k2p5"
}
EOF
chmod 600 ~/.openclaw/agent/auth-profiles/kimi.json
echo ""
echo "✅ Kimi auth profile created"
echo ""
echo "Setting Kimi as default model..."
# Set default model
openclaw models set kimi/k2p5 2>/dev/null || echo "Note: Run 'openclaw models set kimi/k2p5' manually"
echo ""
echo "🎉 Kimi configured!"
echo ""
echo "Verify with: openclaw models list"
echo ""