Overview
LM Studio is a desktop application for running LLMs locally on Mac, Windows, and Linux. It exposes a local OpenAI-compatible server, making it a natural fit for development and testing workflows where you want Cognisafe’s safety scoring and observability without sending data to cloud providers.Start the LM Studio server
In LM Studio, go to Local Server → load a model → click Start Server. By default it listens onhttp://localhost:1234/v1.
Proxy configuration
If running the Cognisafe proxy in Docker, use
host.docker.internal (Mac/Windows) or your machine’s LAN IP (Linux) to reach the LM Studio server on the host.SDK setup
Docker Compose for local development
Add Cognisafe alongside LM Studio in a localdocker-compose.yml:
http://localhost:8080/v1 and LM Studio continues to run as normal on port 1234.
Typical dev workflow
- Load your model in LM Studio and start the local server
- Start the Cognisafe proxy pointing at
localhost:1234 - Run your agent or app — all calls are logged and scored
- Open the Cognisafe dashboard to inspect prompts, responses, and safety scores
- When ready for production, change
UPSTREAM_URLto your cloud LLM provider — no app code changes needed

