Dockerfile,
Railway, EC2, ECS, Vercel, or another ASGI-capable host.
Runtime environment
Configure your model provider
Add
LLM_PROVIDER as an environment variable (for example anthropic,
openai, openrouter, or gemini).Add the matching provider API key
Use the API key that matches your provider:
ANTHROPIC_API_KEYforLLM_PROVIDER=anthropicOPENAI_API_KEYforLLM_PROVIDER=openaiOPENROUTER_API_KEYforLLM_PROVIDER=openrouterDEEPSEEK_API_KEYforLLM_PROVIDER=deepseekGEMINI_API_KEYforLLM_PROVIDER=gemini
.env.example.
Prebuilt Docker image
Public images are published to GitHub Container Registry for every release (linux/amd64 and linux/arm64), so you can skip building from source.
| Tag | What it is |
|---|---|
ghcr.io/tracer-cloud/opensre:latest | Most recent release |
ghcr.io/tracer-cloud/opensre:<version> | A specific release, e.g. 0.1.2026.7.8 (matches the GitHub release tag without the v) |
Run local gateway
Use the built-in gateway command when you want a local HTTP server for investigations.| Command | What it does |
|---|---|
uv run opensre gateway start | Starts the gateway daemon in the background (web app, Telegram chat, task scheduler). |
uv run opensre gateway start --foreground | Runs the gateway attached to this terminal. |
uv run opensre gateway stop | Stops the background daemon. |
uv run opensre gateway status | Shows daemon and component status. |
0.0.0.0 on the port from the PORT environment variable
(default 8000).
Quick local checks:
/investigate (like /alerts) accepts only loopback callers. Set
OPENSRE_ALERT_LISTENER_TOKEN to allow remote callers with a bearer token:
Railway deployment
Railway is still supported as a hosted runtime option. Before deploying on Railway, make sure your service has:DATABASE_URIpointing to your Railway Postgres instanceREDIS_URIpointing to your Railway Redis instance