Use the DeepL CLI from KosmoKrator to call DeepL tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.
DeepL can be configured headlessly with `kosmokrator integrations:configure deepl`.
# Install KosmoKrator first if it is not available on PATH.curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash# Configure and verify this integration.kosmokrator integrations:configure deepl --set api_key="$DEEPL_API_KEY" --enable --read allow --write ask --jsonkosmokrator integrations:doctor deepl --jsonkosmokrator integrations:status --json
Credentials
Authentication type: API keyapi_key. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Key
Env var
Type
Required
Label
api_key
DEEPL_API_KEY
Secret secret
yes
API Key
base_url
DEEPL_BASE_URL
URL url
no
API Base URL
Call DeepL Headlessly
Use the generic call form when another coding CLI or script needs a stable universal interface.
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to DeepL.
deepl.deepl_translate_text
Write write
Translate text using DeepL. Supports automatic source language detection or explicit source language specification. Returns translated text with detected source language.
Use these parameter tables when building CLI payloads without calling integrations:schema first.
deepl.deepl_translate_text
Translate text using DeepL. Supports automatic source language detection or explicit source language specification. Returns translated text with detected source language.
The text to translate. For multiple texts, pass an array.
target_lang
string
yes
The target language code (e.g., "EN", "DE", "FR", "ES", "JA", "ZH"). Use "EN-US" for American English, "EN-GB" for British English, "PT-BR" for Brazilian Portuguese.
source_lang
string
no
The source language code (e.g., "EN", "DE"). If omitted, DeepL auto-detects the source language.
deepl.deepl_list_languages
List languages supported by DeepL. Returns language codes and names. Filter by type to get only source or target languages.
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.