Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MOONDREAM_DEVICE | No | Force specific device (cpu, cuda, mps, or auto) | auto |
| MOONDREAM_MODEL_NAME | No | Model name | vikhyatk/moondream2 |
| MOONDREAM_USER_AGENT | No | HTTP User-Agent header | |
| MOONDREAM_MAX_REDIRECTS | No | Maximum HTTP redirects | 5 |
| MOONDREAM_MAX_BATCH_SIZE | No | Maximum batch size for batch operations | 10 |
| MOONDREAM_MAX_IMAGE_SIZE | No | Maximum image dimensions | 2048x2048 |
| MOONDREAM_MODEL_REVISION | No | Model revision | 2025-01-09 |
| MOONDREAM_TIMEOUT_SECONDS | No | Processing timeout | 120 |
| MOONDREAM_ENABLE_STREAMING | No | Enable streaming for captions | true |
| MOONDREAM_MAX_FILE_SIZE_MB | No | Maximum file size in MB | 50 |
| MOONDREAM_BATCH_CONCURRENCY | No | Concurrent batch processing limit | 3 |
| MOONDREAM_TRUST_REMOTE_CODE | No | Trust remote code | true |
| MOONDREAM_ENABLE_BATCH_PROGRESS | No | Enable progress reporting for batch operations | true |
| MOONDREAM_MAX_CONCURRENT_REQUESTS | No | Max concurrent requests | 5 |
| MOONDREAM_REQUEST_TIMEOUT_SECONDS | No | HTTP request timeout | 30 |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |