Agent Setup
Set up Parity with your coding agent
Your coding agent integrates Parity in one paste. Parity routes your application's AI traffic; the agent just does the two-line swap for you.
To be clear about which side the agent is on: Parity is not for coding agents themselves. The agent here is the installer, wiring Parity into the application it is working on.
What the agent changes
Two lines per LLM client: the base URL becomes https://api.paritylayer.com/v1 and the key becomes your Parity key. Your model strings, prompts, parameters, tools, and streaming stay exactly as they are. There are no account-specific model IDs to learn and no request-schema migration.
Steps
- Sign up at dashboard.paritylayer.com. Free, no credit card.
- Open Set up with your coding agent and click Copy prompt. The prompt carries a one-time setup link that expires in 15 minutes and works once.
- Paste it into Claude Code, Cursor, Codex, or any coding agent working in your repository.
- The agent fetches a key without printing it, swaps the base URL and key, sends one verification request, and reports back.
The prompt (generic form)
If you are reading this without a dashboard session, this is the prompt to paste. It tells the agent to ask you for the one-time link first, because a key must never be pasted into a chat.
Integrate Parity Layer (paritylayer.com) into THIS application so the app's
own LLM calls route through Parity.
FIRST: ask the developer to open https://dashboard.paritylayer.com, click "Set up with your
coding agent", and paste the generated prompt here. That prompt carries a
one-time setup link. Without it you cannot fetch credentials, and you must
not ask the developer to paste an API key into this conversation.
Then follow the instructions in that prompt. In summary, what you will do:
- fetch a key from the one-time link (never printing it) into the app's
secret store as PARITY_API_KEY;
- point every OpenAI / Anthropic / OpenAI-compatible client at
https://api.paritylayer.com/v1 using that key, changing nothing else (same model
strings, same prompts, same parameters);
- send one request and confirm with
GET https://api.paritylayer.com/v1/setup/verify;
- report which files changed and which call sites you skipped.
You are the installer, not the workload: do not reconfigure yourself or
any other coding agent to use Parity.Verifying
curl -fsS https://api.paritylayer.com/v1/setup/verify \
-H "Authorization: Bearer $PARITY_API_KEY"Returns {"requests_seen": N, "proving": "on", "groups_discovered": N}. Once requests_seen is at least 1, Parity is seeing your traffic and proving has started. Nothing routes to a cheaper model until a proof passes and you click Activate.
Security
The API key never appears in this page, the prompt, the deep link, or the agent's transcript. The agent fetches it from a single-use link that expires in 15 minutes; a second use of that link returns 410. The key is minted under its own name so you can revoke it independently of your other keys.
Undo
Undo is one revert: put the original base URL and key back in the client construction. Parity keys can also be revoked from the dashboard, which stops all routing immediately.
No live traffic yet?
Prove the savings from a file instead. Your agent instruments the app to write a JSONL capture, you upload that one file, and Parity proves parity on your own prompts with nothing routed: offline capture guide.
This page is also available as raw markdown at /docs/agent-setup.md for your agent to read directly.