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.
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 | Starts the local gateway on 127.0.0.1:2024. |
uv run opensre gateway --host 0.0.0.0 --port 8080 | Binds the gateway to a custom host/port. |
uv run opensre gateway --api-key local-dev-key | Enables API key auth for non-exempt routes. |
uv run opensre gateway --investigations-dir ./investigations | Writes investigation reports to a custom directory. |
--api-key is set, include it for protected endpoints:
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
Tracer