Skip to Content
LoremLLM

API keys

Project keys for private mocks, the CLI and the REST API.

Create keys under Settings → API keys. A key looks like lm_live_... and belongs to one project.

Using a key

Send it the way your client already sends a provider key:

EndpointHeader
OpenAI, AI SDK, MCP, eveAuthorization: Bearer lm_live_...
Anthropicx-api-key: lm_live_...
REST API, CLIAuthorization: Bearer lm_live_... or LOREMLLM_KEY

Public mocks accept any key, so you can leave your real provider key in place by accident without it ever being used. LoremLLM never stores keys it doesn't recognise.

Scopes

ScopeAllows
mocks:callCalling private mocks
mocks:writePushing and editing mocks
requests:readReading the request inspector

CI usually needs mocks:call only.

Rotating

Create a new key, update your secrets, then revoke the old key. Revoked keys stop working within a minute.

On this page