Real-time video call with your OpenClaw agent — full personality, memory, and vision.
New users run once after installing the skill:
bash skills/videochat-withme/scripts/setup.sh
This handles everything: dependencies, Groq API key, SSL certs, launchd service.
```bash
mkdir -p ~/.openclaw/secrets
echo "your-key-here" > ~/.openclaw/secrets/groq_api_key.txt
```
Or set env var: export GROQ_API_KEY="your-key-here"
Add to ~/.openclaw/openclaw.json:
{
"gateway": {
"http": {
"endpoints": {
"chatCompletions": { "enabled": true }
}
}
}
}
Then restart OpenClaw.
When the user requests a video/voice call:
Step 1: Check if service is running:
curl -sk https://localhost:8766/api/config 2>/dev/null || curl -s http://localhost:8766/api/config 2>/dev/null
Step 2: If no response, setup needed:
cat ~/.openclaw/secrets/groq_api_key.txt 2>/dev/nullecho "key" > ~/.openclaw/secrets/groq_api_key.txt```bash
bash skills/videochat-withme/scripts/setup.sh --auto --agent-name "YourName" --user-name "TheirName"
```
Step 3: Initiate the call based on context:
Determine how the user is connecting and pick the best method:
```bash
bash skills/videochat-withme/scripts/call.sh
```
This pops up a macOS incoming call notification → user clicks Accept → browser opens.
Pick the right URL automatically:
```bash
# Prefer Tailscale IP (works from any network)
TS_IP=$(tailscale ip -4 2>/dev/null)
# Fallback to local IP (same WiFi only)
LOCAL_IP=$(python3 -c "import socket; s=socket.socket(socket.AF_INET,socket.SOCK_DGRAM); s.connect(('8.8.8.8',80)); print(s.getsockname()[0]); s.close()" 2>/dev/null)
```
https://:8766 (works everywhere)https://:8766 (same WiFi only)🎤 Voice → Groq Whisper (STT)
📷 Camera → base64 frame
↓
OpenClaw /v1/chat/completions → Your Agent
↓
edge-tts (TTS) → 🔊 Audio playback
Agent runs these automatically:
| Script | When |
|---|---|
| -------- | ------ |
setup.sh --auto | First use (service not running) |
call.sh | Every call request |
User can run manually if needed:
| Script | Purpose |
|---|---|
| -------- | --------- |
setup.sh | Interactive setup (without --auto) |
start.sh | Start service |
stop.sh | Stop service |
| Variable | Default | Description |
|---|---|---|
| ---------- | --------- | ------------- |
GROQ_API_KEY | (secrets file) | Groq API key for Whisper STT |
PORT | 8766 | Server port |
AGENT_NAME | AI Assistant | Display name for the agent |
USER_NAME | User | Display name for the user |
SSL_CERT | (auto-detect) | Path to SSL certificate |
SSL_KEY | (auto-detect) | Path to SSL private key |
共 1 个版本