Quick Start¶
Install¶
Quick Start¶
Install¶
Run a Scenario¶
You can run any scenario from the provided examples. For instance:
Replace hormuz.yaml with any other scenario file from the scenarios/ folder as needed.
Start the API Server¶
Security Configuration (optional)¶
The server runs in open mode by default. To restrict access, set environment variables before starting:
# Require an API key for every endpoint and the WebSocket
export DOXA_API_KEY="your-secret-key"
# Restrict CORS to specific deployed origins (comma-separated)
export DOXA_CORS_ORIGINS="https://my-app.example.com"
uvicorn api:app --host 0.0.0.0 --port 5000
Then pass the key in every request:
Or via the WebSocket query param:
Without DOXA_API_KEY set, the server behaves as before with no access control — suitable for local research use.