Add ClearRun to your code

ClearRun for developers is one call that returns a score from 0 to 100 for an AI answer, a risk level, a one-line summary and a verdict id. Your code decides what to do with the score. ClearRun never blocks anything.

Get a free developer key

How does it fit in my code?

Put ClearRun between two steps of your own pipeline or agent. Each answer gets a score before it moves on. Your code sets the rule: pass it on, send it back for another try, or route it to a person when the score is below the line you chose.

This is the same pattern the demo video shows, with the line set at 70:

import { createKernelClient } from '@clearrun/sdk';

const client = createKernelClient({
  hosted: { apiKey: process.env.CLEARRUN_API_KEY },
});
const { verdict } = await client.score({ responseText: priorAnswer });
if (verdict.score == null || verdict.score < 70) {
  // retry or flag for a person
} else {
  // continue to the next stage
}

The 70 is an example. You pick your own number. How to choose a score threshold.

Watch the two minute demo to see the same call on an answer that says the Eiffel Tower is in Berlin.

Which way should I connect?

Pick one. They all return the same score and the same kind of signed record, and they all use credits the same way.

MCP server

Add ClearRun to Claude Desktop, Claude Code, Cursor, VS Code or any MCP client. Package: @clearrun/mcp. Setup docs.

{
  "mcpServers": {
    "clearrun": {
      "command": "npx",
      "args": ["-y", "@clearrun/mcp"],
      "env": {
        "CLEARRUN_API_KEY": "YOUR_CLEARRUN_API_KEY"
      }
    }
  }
}

Command line

Score a file, a folder or a line of text from your terminal with clearrun score. Package: @clearrun/cli. CLI docs.

npm i -g @clearrun/cli
export CLEARRUN_API_KEY=YOUR_CLEARRUN_API_KEY
clearrun score --text "The capital of France is Paris."
clearrun score answer.txt

Run clearrun login to sign in once instead of setting a key.

SDK

Call the hosted API from your own code. Package: @clearrun/sdk. SDK docs.

import { createKernelClient } from '@clearrun/sdk';

const client = createKernelClient({
  hosted: { apiKey: process.env.CLEARRUN_API_KEY },
});

const scored = await client.score({
  responseText: 'The Eiffel Tower is in Berlin.',
});

Hosted API

Score, evaluate, chat and look up signed verdicts over HTTPS. Routes and examples are in the API reference. Send your key as Authorization: Bearer <apiKey> to https://api.clearrun.net.

Verify a signed record

Anyone can look up a verdict id. No API key is required. clearrun verify VERDICT_ID calls GET /api/verify/{id} and shows the stored record. It does not fact-check the answer.

clearrun verify VERDICT_ID
curl https://api.clearrun.net/api/verify/VERDICT_ID

How do I get a free developer key?

  1. Sign in or sign up. Google, GitHub and the email link all verify your address when sign-in completes.
  2. Open the keys page at /account/keys and create a key. The full key is shown once. It starts with crun_.
  3. Send it as Authorization: Bearer <apiKey> to https://api.clearrun.net.

An unverified account cannot create a key. A free account can hold one active developer key. Revoke it before you create another.

Get a free developer key

What does the free key return, and what are its limits?

The free key returns the score, a grade, a risk level, and a summary of 16 words or fewer. Fields beyond those are not part of the free tier. The API documentation lists every field. A high score is not a claim that the answer is true.

The default limit on each developer key is 2 requests per second, 6 per minute, 30 per hour and 40 per day. Evaluate, score and chat share that limit. Over the limit, the route returns 429 with a Retry-After header.

Calls spend the free plan's 30 monthly credits. A score or an evaluate call uses at least 3 credits, so the free plan covers up to 10 scores a month. Looking up a past verdict costs nothing. Free credits do not roll over. See how credits work.

The API access switch on Pro, Business and Enterprise is separate. Turning it off returns 403 with the code API_ACCESS_DISABLED. It does not turn a free developer key on or off. Revoke the key to stop it.

What should I not send?

Passwords, keys and anyone's personal details. Signed records are kept so they stay checkable, so assume what you send may be kept. See what not to send to ClearRun.

What is next after the first score?

  • Want it to run on every pull request? Read the CI gate page.
  • Running it on every support reply? Read the support reply check.
  • Need more than 30 credits a month? Pro starts at $25 a month for 100 credits. See pricing.

Questions

Is ClearRun a fact-checker?

No. It scores whether an answer's confidence is backed by the reasoning in the answer. A well-argued answer can still be wrong. Keep your own source checks.

Will the same text get the same score every time?

Close, but it can vary slightly between runs. For tests that need fixed values, use the SDK's mock mode, which needs no key and never calls ClearRun.

Which plan includes receipt export?

Receipt export is on Business, which includes a summary, and on Enterprise, which includes full export. It is not part of Free or Pro.

Does ClearRun hold my model's keys?

No. ClearRun scores text you send. It does not call your model for you.

Where is the code?

The SDK, the command line and the MCP server are open under the MIT license. github.com/Adepoco/ClearRun.