Skip to main content
Glama
bon5co

anydoc-serve

by bon5co

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoPort to listen on. Railway and most platforms set it.8080
API_KEYNoWhen set, every endpoint except /health requires Authorization: Bearer <API_KEY>. Empty means open, and the server logs a warning at startup.
OCR_DPINoResolution scanned PDF pages are rendered at for OCR.200
OCR_LANGSNoOCR languages, comma-separated: eng, jpn, tha (en, ja, th also accepted). Every page is read with all of them in one pass, always in the order jpn, tha, eng (the order was measured: eng first loses most Thai).eng,jpn,tha
OCR_ENABLEDNofalse never OCRs: scanned input fails with 422, as in plain anydoc.true
MAX_UPLOAD_MBNoLargest document accepted, uploaded or fetched.50
OCR_MAX_PAGESNoA document needing OCR on more pages than this is refused with 413.200
FETCH_TIMEOUT_SNoLimit for downloading a {"url": ...} source, redirects included.30
CONVERT_TIMEOUT_SNoWall-clock limit per conversion, OCR included; over it answers 504.120
ALLOW_PRIVATE_URLSNoAllow URL sources that resolve to private, loopback or link-local addresses. Off by default so the server cannot be used to reach its own network.false
MAX_CONCURRENT_CONVERSIONSNoConversions that run at once (the rest wait). Each slot holds its own loaded OCR models.2

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources