Crazyrouter Translate
by @xujfcn
AI-powered translation via Crazyrouter. Translate text between any languages using GPT-5, Claude, DeepSeek, or Qwen. Supports file translation and multi-mode...
clawhub install crazyrouter-translateπ About This Skill
name: crazyrouter-translate description: AI-powered translation via Crazyrouter. Translate text between any languages using GPT-5, Claude, DeepSeek, or Qwen. Supports file translation and multi-model comparison. Use when user asks to translate text, documents, or compare translations. Requires environment variable CRAZYROUTER_API_KEY (get at https://crazyrouter.com).
AI Translation via Crazyrouter
Translate text between any languages using the best AI models through Crazyrouter.
Script Directory
Agent Execution:
1. SKILL_DIR = this SKILL.md file's directory
2. Script path = ${SKILL_DIR}/scripts/main.mjs
Step 0: Check API Key β BLOCKING
[ -n "${CRAZYROUTER_API_KEY}" ] && echo "key_present" || echo "not_set"
| Result | Action |
|--------|--------|
| key_present | Continue |
| not_set | Ask user to set CRAZYROUTER_API_KEY. Get key at https://crazyrouter.com |
Usage
# Basic translation
node ${SKILL_DIR}/scripts/main.mjs --text "Hello world" --to zhTranslate file
node ${SKILL_DIR}/scripts/main.mjs --input article.md --to ja --output article_ja.mdUse specific model
node ${SKILL_DIR}/scripts/main.mjs --text "Bonjour le monde" --to en --model deepseek-r1Specify source language
node ${SKILL_DIR}/scripts/main.mjs --text "δ½ ε₯½δΈη" --from zh --to koKeep formatting (Markdown)
node ${SKILL_DIR}/scripts/main.mjs --input README.md --to ja --output README_ja.md --format markdown
Options
| Option | Description | Default |
|--------|-------------|---------|
| --text | Text to translate | β |
| --input | Read from file | β |
| --output | Save to file | stdout |
| --from | Source language | auto-detect |
| --to | Target language (required) | β |
| --model | AI model | gpt-4o-mini |
| --format | plain or markdown | plain |
Language Codes
en, zh, ja, ko, es, fr, de, pt, ru, ar, vi, th, id, tr, it, pl, nl, sv, hi, ...
π‘ Examples
# Basic translation
node ${SKILL_DIR}/scripts/main.mjs --text "Hello world" --to zhTranslate file
node ${SKILL_DIR}/scripts/main.mjs --input article.md --to ja --output article_ja.mdUse specific model
node ${SKILL_DIR}/scripts/main.mjs --text "Bonjour le monde" --to en --model deepseek-r1Specify source language
node ${SKILL_DIR}/scripts/main.mjs --text "δ½ ε₯½δΈη" --from zh --to koKeep formatting (Markdown)
node ${SKILL_DIR}/scripts/main.mjs --input README.md --to ja --output README_ja.md --format markdown
Options
| Option | Description | Default |
|--------|-------------|---------|
| --text | Text to translate | β |
| --input | Read from file | β |
| --output | Save to file | stdout |
| --from | Source language | auto-detect |
| --to | Target language (required) | β |
| --model | AI model | gpt-4o-mini |
| --format | plain or markdown | plain |
Language Codes
en, zh, ja, ko, es, fr, de, pt, ru, ar, vi, th, id, tr, it, pl, nl, sv, hi, ...
βοΈ Configuration
| Option | Description | Default |
|--------|-------------|---------|
| --text | Text to translate | β |
| --input | Read from file | β |
| --output | Save to file | stdout |
| --from | Source language | auto-detect |
| --to | Target language (required) | β |
| --model | AI model | gpt-4o-mini |
| --format | plain or markdown | plain |
Language Codes
en, zh, ja, ko, es, fr, de, pt, ru, ar, vi, th, id, tr, it, pl, nl, sv, hi, ...