lcrsb_…) exercises registered direct catalog endpoints and
the compatibility chat endpoint with the live HTTP contract while simulating
everything financial. Requests authenticate and validate like live direct
calls, and billing headers use the live contract — but no credits are reserved
or captured, no provider is called, and no call history is written. Response
bodies are approximate fixtures for Perplexity, Anthropic, OpenAI, Groq,
DeepSeek, OpenRouter, and Firecrawl; every other registered provider returns a
generic sandbox envelope rather than its upstream schema.
Use it to wire up an integration before funding an account, to run CI against
the real request contract, and to avoid the cleanup work that live test
identities require.
Create one
Sandbox keys are an enterprise workspace feature. From the dashboard, open API Keys → Workspace keys, select Create key, and choose Sandbox, or issue one from the API:Personal accounts cannot issue sandbox keys. Connect a Personal account
through MCP OAuth and fund its prepaid balance before making live tool calls.
What a sandbox key can and cannot do
Per-key
tools.enable endpoint scoping is honored: a call outside the key’s
allow-list returns the live credential_endpoint_denied error, so you can test
scoped integrations faithfully.
What a simulated call looks like
x-locus-credits-chargedandx-locus-credits-balancecarry a simulated charge against a fixed simulated balance, denominated in your workspace’s real credits-per-dollar rate.x-locus-cost-usdandx-locus-api-call-idare present as on live calls.X-Locus-Sandbox: truemarks every sandbox response.
Idempotency-Key is
mandatory with the live parsing rules.
Retries and statelessness
The sandbox stores nothing. Identical retries under the sameIdempotency-Key
return the same x-locus-api-call-id and a byte-identical body, so retry
handling can be tested. Reusing an Idempotency-Key for a different request
is not detected — the live rail’s 409 conflict requires stored state the
sandbox deliberately omits.
When your test suite runs on a sandbox key, there are no sessions, balances,
policies, or end users to retire afterward — see
Clean up integration tests for the
workflows live test identities still need.