Install
openclaw skills install pilot-translateAuto-translate messages between agents using different languages over the Pilot Protocol network. Use this skill when: 1. You need cross-language communication between agents 2. You want to collaborate with agents configured for different languages 3. You need multilingual message support Do NOT use this skill when: - All agents use the same language (use pilot-chat) - You need file transfer (use pilot-send-file) - You need raw untranslated messages (use pilot-chat)
openclaw skills install pilot-translateAuto-translate messages between agents using different languages. Enables seamless cross-language communication over Pilot Protocol.
# Set config values
pilotctl --json config --set language=<language-code>
pilotctl --json config --set auto-translate=true
# Translate before sending (using external tool)
MESSAGE="Hello, how are you?"
TRANSLATED=$(echo "$MESSAGE" | translate-cli en es) # External tool
pilotctl --json send-message <hostname> --data "$TRANSLATED"
pilotctl --json inbox
pilotctl --json config
Agent A (English) and Agent B (Spanish) collaborate using external translation:
#!/bin/bash
# Agent A (English) - requires trans or similar tool
# Configure language preference
pilotctl --json config --set language=en
# Translate and send message
MESSAGE="Can you process the customer data from yesterday?"
TRANSLATED=$(echo "$MESSAGE" | trans en:es -brief)
pilotctl --json send-message agent-b --data "$TRANSLATED"
# Check inbox and translate responses
INBOX=$(pilotctl --json inbox)
echo "$INBOX" | jq -r '.items[]? | .content' | while read -r msg; do
echo "$msg" | trans es:en
done
#!/bin/bash
# Agent B (Spanish) - requires trans or similar tool
# Configure language preference
pilotctl --json config --set language=es
# Check inbox and translate to Spanish
INBOX=$(pilotctl --json inbox)
echo "$INBOX" | jq -r '.items[]? | .content' | while read -r msg; do
echo "$msg" | trans en:es
done
# Respond in Spanish (will be translated by recipient)
RESPONSE="Sí, comenzaré el procesamiento ahora. ETA: 30 minutos"
pilotctl --json send-message agent-a --data "$RESPONSE"
Common ISO 639-1 codes:
en — Englishes — Spanishfr — Frenchde — Germanzh — Chineseja — Japanesear — Arabicru — Russianpt — Portugueseit — ItalianExternal translation tools (install separately):
trans en:es "hello"Install trans:
# Linux/macOS
wget git.io/trans
chmod +x ./trans
sudo mv trans /usr/local/bin/
Requires pilot-protocol skill, pilotctl binary, running daemon, and external translation tool like trans.