OpenSRE runs as a set of Docker Compose services. You can have a fully functional AI SRE platform running locally in under 5 minutes.
ANTHROPIC_API_KEY.git clone https://github.com/swapnildahiphale/OpenSRE.git
cd OpenSRE
Copy the example env file and set your key:
cp .env.example .env
# .env
ANTHROPIC_API_KEY=sk-ant-your-api-key
That's the only required variable to get started. See Configuration for the full list of optional settings.
Want to route through OpenRouter or another provider instead? OpenSRE ships an optional LiteLLM proxy for that — see Use a different LLM provider below. It's off by default; direct Anthropic is the supported path for
make dev.
make dev
This starts the core stack:
| Service | Port | Description |
|---|---|---|
| PostgreSQL | 5433 | Config data + investigation run traces |
| config-service | 8081 | Configuration API |
| Neo4j | 7475 (HTTP), 7688 (Bolt) | Episodic memory + knowledge graph |
| sre-agent | 8001 | Investigation agent (Claude Agent SDK) |
| web-ui | 3002 | Admin console |
make dev boots config-service in local mode, which auto-seeds one organization (local) and one team (default) from config_service/config/local.yaml — there's no separate "create an org" step for local development. Mint a team token for that org/team:
make e2e-token
This calls config-service's admin API (using the default admin token, local-admin-token) and prints a team token. Now open http://localhost:3002 — the console opens on a sign-in screen. Paste the team token there to log in.
Want admin access instead? Paste
local-admin-token(the defaultADMIN_TOKEN) at the same sign-in screen. That unlocks Admin — org tree, token management, and SSO config — where you can mint and revoke tokens visually instead of re-runningmake e2e-token. See Configuration for token scopes and the SSO setup.
In the web console, you can trigger a test investigation:
⌘I)High error rate on payments-service: 5xx errors spiked to 15% in the last 10 minutesThe first investigation may take a few minutes depending on which skills are invoked and how deep the agent decides to go.
To receive alerts and investigations via Slack:
# Add to your .env
SLACK_BOT_TOKEN=xoxb-your-bot-token
SLACK_APP_TOKEN=xapp-your-app-token
# Start with Slack bot
make dev-slack
By default make dev calls Anthropic directly. If you'd rather route through OpenRouter or another provider, start the optional LiteLLM proxy alongside the core stack and point the agent at it:
# Add to your .env
OPENROUTER_API_KEY=your-openrouter-api-key-here
ANTHROPIC_BASE_URL=http://litellm:4000
# Start the core stack plus the LiteLLM profile
docker compose --profile litellm up
See Configuration for the full litellm_config.yaml setup.