> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cognisafe.uk/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Cognisafe is the runtime security layer for LLMs and agentic AI systems.

Cognisafe sits between your application and any LLM API — intercepting every request and response, recording it to a time-series database, and asynchronously scoring it against the OWASP LLM Top 10. Your users see no added latency. You get a full audit trail, cost tracking, and automated threat detection.

There is no framework lock-in. Cognisafe works via a lightweight SDK that either rewrites your provider's base URL (proxy mode) or wraps the client's `create` method directly (direct mode). Your existing LLM code stays unchanged beyond a one-line patch call.

## Core components

<CardGroup cols={2}>
  <Card title="Proxy" icon="shield-halved">
    An OpenAI-compatible Go reverse proxy that logs every call to the backend without blocking the response path.
  </Card>

  <Card title="Safety Scoring" icon="magnifying-glass-chart">
    A Python worker pulls jobs from Redis and runs PyRIT scorers asynchronously — no latency on the hot path.
  </Card>

  <Card title="Dashboard" icon="chart-line">
    A Next.js dashboard showing request volume, cost, latency, and safety scores with per-request drill-down.
  </Card>

  <Card title="SDK" icon="code">
    A Python (and Node.js) SDK that patches OpenAI, Anthropic, Mistral, and Cohere clients in a single call.
  </Card>
</CardGroup>

## Get started

<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/quickstart">
    Up and running in under 5 minutes — install the SDK, patch your provider, and see your first request.
  </Card>

  <Card title="How it works" icon="diagram-project" href="/how-it-works">
    Detailed walkthrough of the proxy, scoring pipeline, and data model.
  </Card>
</CardGroup>

## Supported providers

| Provider     | Mode   |
| ------------ | ------ |
| OpenAI       | Proxy  |
| Anthropic    | Direct |
| Gemini       | Direct |
| Mistral      | Proxy  |
| Azure OpenAI | Proxy  |
| Cohere       | Direct |
| Ollama       | Proxy  |

## Supported agent frameworks

Cognisafe is framework-agnostic. Any framework that calls a supported LLM provider under the hood is automatically observed once you patch the provider client.

* **CrewAI**
* **LangGraph**
* **AutoGen**
* **Semantic Kernel**
* **MCP (Model Context Protocol)**
* **Pydantic AI**
* **LlamaIndex**
