Agent-native CLI for QName.AI domain lookup APIs.
The CLI is the recommended client for QName API keys. It intentionally exposes
only the approved domain.query.whois scope: WHOIS/domain lookup through
GET /api/whois/{domain} or POST /api/whois/batch, capped by the
per-request domain quota and daily request quota approved for your key.
Realtime streams, domain traffic, and domain analysis data are outside this
CLI/API scope.
npm install -g @qname/cliInstall the Agent Skill:
npx skills add QNameAI/qname-cli -y -gConfigure credentials once:
qname-cli init --api-key <approved-key>Run a lookup:
qname-cli whois qname.ai --pretty
qname-cli whois qname.ai example.com --prettyFor local development inside this repository:
node bin/qname-cli.mjs --help- Open
https://qname.ai/settings/apikeys. - Submit an API key request for
qname-cliand choose the domain and daily request quota tiers. - Wait for admin approval.
- Reveal the approved key once and initialize the CLI.
qname-cli init --api-key qname_xxxYou can also use environment variables in CI or Agent runs:
export QNAME_API_KEY="qname_xxx"
export QNAME_BASE_URL="https://qname.ai"qname-cli whois qname.ai --pretty
qname-cli whois qname.ai example.com --pretty
qname-cli whois qname.ai --format text
qname-cli config get --pretty
qname-cli config set --api-key qname_xxx
qname-cli doctor
qname-cli request-key
qname-cli skill --pathqname-cli defaults to JSON output so humans and AI Agents can parse results
without screen scraping.
Install the Agent Skill globally:
npx skills add QNameAI/qname-cli -y -gAgent instructions are also bundled inside the npm package at:
qname-cli skill --pathAgents should prefer qname-cli whois <domain...> --pretty over direct curl
unless they are debugging the API contract itself, and must stay within the
approved per-request domain quota and daily request quota for the configured
key.