On this page

CLI

Use the readlint.com CLI to check articles and manage reports from your terminal. You need Node.js 22 or newer, or Python 3.11 or newer with uv. You also need an authorized readlint.com account. Listing saved reports does not require evaluation allowance.

Install

Run without a global installation:

npx readlint.com --help

Or use the Python distribution:

uvx readlint --help

For a permanent installation, run npm install -g readlint.com or uv tool install readlint. Both install the readlint command with the same commands and flags. Check the release with npx readlint.com version --json or uvx readlint version --json.

Sign in

On macOS or Linux, start device login:

npx readlint.com login

Python users can run uvx readlint login. Open the URL printed on stderr, sign in, compare the code and approve the request. The CLI waits and prints {"signed_in": true}. The code expires in ten minutes. Denial or expiry requires a new login.

Login stores a 30-day API key in an owner-only file. The two CLIs share ~/Library/Application Support/readlint/credentials.json on macOS and the readlint/credentials.json file under XDG_CONFIG_HOME (default ~/.config) on Linux. The key is bound to the API origin. readlint logout removes the local file. Revoke the key on the API keys page to stop every copy.

For scripts, CI or Windows, create an API key and set READLINT_API_KEY through your secret manager. Key precedence is --api-key, environment, then saved login. Prefer the environment over process arguments. Authentication does not grant evaluation allowance.

Installation, device login and local logout are client setup operations. They are outside the four-client tabs because the SDKs do not manage the shared credential file. The device protocol describes the underlying authorization exchange.

First success

With saved login or READLINT_API_KEY, list your reports. The other tabs require their SDK installation or the curl header file.

List saved reports

npx readlint.com list --limit 25 --offset 0 --json

import json
from readlint import Readlint

with Readlint() as client:
    print(json.dumps(client.list_evaluations(limit=25, offset=0)))

import { Readlint } from "readlint.com";

const client = new Readlint();
console.log(JSON.stringify(await client.listEvaluations({ limit: 25, offset: 0 })));

curl --silent --show-error --fail-with-body \
  --header @readlint-auth.header \
  'https://readlint.com/v1/evaluations?limit=25&offset=0'

Success exits zero and returns items and next_offset. An empty account returns {"items": [], "next_offset": null}. Use the quickstart to evaluate a draft when your account has evaluation access.

Commands and options

CommandResult
check FILE or evaluate FILESubmit UTF-8 Markdown or MDX. Use - for stdin.
list --limit 25 --offset 0Read a page of report summaries.
get UUIDRead one saved evaluation.
delete UUIDPermanently remove one report.
login, logoutSave or remove a local login.
mcpStart the local MCP server.
version, --helpPrint the version or command help.

Submission options are --title, --description and --idempotency-key. Save a unique key before sending. If omitted, the CLI generates a key and prints it on stderr before sending. After a timeout, reuse that key and the identical input. Follow limits and recovery before starting another evaluation.

--json before or after the command prints compact JSON. Without it, successful output is indented JSON. Diagnostics and login instructions go to stderr. Success exits zero even when the report has findings. Errors exit 1 with empty stdout. In JSON mode, the final stderr line has error.code, error.message, error.status and, when available, error.evaluation_id. A submission error also includes its idempotency_key.

--timeout sets the HTTP timeout in seconds (default 120). --base-url or READLINT_BASE_URL changes the origin. HTTPS is required except for loopback tests. Credentials are never sent through redirects. Read limits and recovery for error codes, bounded retries and deletion recovery.

Next: Python SDK