Server Configuration
Set the IP address to bind to. Short form:
-iExample:Use
0.0.0.0 to listen on all interfaces, or 127.0.0.1 to only accept local connections.Set the port to listen on. Short form:
-pExample:Authentication
Set the access token for the
/translate endpoints. When configured, all API requests must include this token for authentication.Example:The token can be provided by clients via query parameter
?token=xxx or Authorization header. See Authentication for details.Set the dl-session cookie for the
/v1/translate Pro endpoint. This flag has no long form.Example:Network Configuration
Set the proxy URL for HTTP requests to DeepL.Example:
Complete Examples
Flag Precedence
Command-line flags take precedence over environment variables. If both are set, the flag value will be used.
Available Short Forms
| Long Form | Short Form | Purpose |
|---|---|---|
-ip | -i | IP address to bind |
-port | -p | Port to listen on |
| N/A | -s | DL session cookie |
The
-token and -proxy flags do not have short forms.