Status: [UNTESTED] Endpoints found: http://localhost:8000/v1/chat/completions Source: https://github.com/AlexanderBell-gh/strata-gateway # Strata Gateway A high-performance, security-focused API gateway and governance proxy designed to safely manage, sandbox, and monitor autonomous AI agents. Strata sits between AI agent frameworks (LangChain, AutoGen, CrewAI) and frontier LLM providers, acting as a semantic firewall that traditional network firewalls cannot provide. It prevents data leaks, halts rogue recursive behaviours, and enforces programmatic compliance with UK-specific legislation. ## Quick Start ```bash # Clone and install git clone git@github.com:AlexanderBell-gh/strata-gateway.git cd strata-gateway uv sync # Configure cp .env.example .env # Edit .env and set STRATA_UPSTREAM_API_KEY # Run uv run uvicorn strata.main:app --reload ``` The proxy starts on `http://localhost:8000`. ## API Endpoints | Method | Path | Description | |--------|------|-------------| | `POST` | `/v1/chat/completions` | Proxy chat completion request to upstream LLM | | `GET` | `/v1/models` | List available models from upstream | | `GET` | `/health` | Health check — returns `200 OK` | All endpoints are versioned under `/v1/` to match the OpenAI SDK convention. Point your agent's `base_url` at Strata with zero code changes: ```python from openai import OpenAI client = OpenAI( base_url="http://localhost:8000/v1", api_key="your-key", # Strata ignores this, injects real key server-side ) response = client.chat.completions.create( model="gpt-4", messages=[{"role": "user", "content": "Hello"}], ) ``` ## Streaming Strata supports Server-Sent Events streaming. Set `"stream": true` in your request to receive SSE chunks forwarded from the upstream LLM: ```bash curl -X POST http://localhost:8000/v1/chat/completions \ -H "Content-Type: application/json" \ -d '{"model":"gpt-4","messages":[{"role":"user","content":"Hi"}],"stream":true}' ``` ## Configuration All configuration is via environment variables (validated at startup with pydantic-settings): | Variable | Default | Description | |------