Run DeepLX
Start with Docker
The fastest way to run DeepLX is using Docker:This starts DeepLX on port 1188 (default) listening on all interfaces.
Configuration Options
Configuration Options
DeepLX supports several environment variables and flags (service/config.go:21-75):
Example with authentication:Example with custom port:
| Option | Environment Variable | Flag | Default | Description |
|---|---|---|---|---|
| IP Address | IP | -ip, -i | 0.0.0.0 | Bind address |
| Port | PORT | -port, -p | 1188 | Listen port |
| Access Token | TOKEN | -token | "" | Authentication token |
| DL Session | DL_SESSION | -s | "" | Pro account session |
| Proxy | PROXY | -proxy | "" | HTTP proxy URL |
Verify the service is running
Check that DeepLX is responding:Expected response (service/service.go:101-106):
Review the response
A successful translation returns (service/service.go:134-142):Response fields:
code: HTTP status codeid: Unique request identifierdata: Primary translated textalternatives: Alternative translation optionssource_lang: Detected or specified source languagetarget_lang: Target language codemethod: Translation method used (FreeorPro)
Request Parameters
The/translate endpoint accepts (service/service.go:63-68):
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Text to translate |
source_lang | string | No | Source language code (auto-detected if omitted) |
target_lang | string | Yes | Target language code |
tag_handling | string | No | Handle HTML/XML tags: "html" or "xml" |
When
source_lang is empty or "auto", DeepLX automatically detects the source language (translate/translate.go:120-122).Authentication (Optional)
If you configured DeepLX with aTOKEN, include it in requests:
Query parameter:
DeepLX supports both
Bearer and DeepL-Auth-Key authorization formats for compatibility.Error Handling
Common error responses: Invalid token:Next Steps
API Reference
Explore all available endpoints and parameters
Configuration
Learn about advanced configuration options
Deployment
Deploy DeepLX to production environments
GitHub
View source code and contribute
