Documentation Index
Fetch the complete documentation index at: https://cognisafeltd.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Create an account
Sign up at cognisafe.uk. The free tier includes 10,000 requests per month — no credit card required.
Get your API key
In the dashboard: API Keys → Create key. Keys look like:Store it as an environment variable — never hard-code it in source:
Configure and patch
Call For TypeScript / Node.js:
cognisafe.configure() once at startup, then patch your provider:Make an LLM call
Your existing code is unchanged — Cognisafe captures everything automatically:Every call is logged, priced, and queued for safety scoring.
View in the dashboard
Open cognisafe.uk/dashboard → Overview. Your request appears within a second, including model, token counts, cost, and latency. Safety scores appear within a few seconds once the async worker processes the job.
Proxy mode (OpenAI, Mistral) adds zero latency overhead — the proxy forwards the response to your app at the same time as it logs the payload. Direct mode (Anthropic, Cohere) wraps the provider client’s
create method, which adds one lightweight HTTP call to the Cognisafe API in the background after the response is returned to you.
