Skip to content

QNameAI/qname-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@qname/cli

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.

Install

npm install -g @qname/cli

Install the Agent Skill:

npx skills add QNameAI/qname-cli -y -g

Configure 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 --pretty

For local development inside this repository:

node bin/qname-cli.mjs --help

Request API Access

  1. Open https://qname.ai/settings/apikeys.
  2. Submit an API key request for qname-cli and choose the domain and daily request quota tiers.
  3. Wait for admin approval.
  4. Reveal the approved key once and initialize the CLI.
qname-cli init --api-key qname_xxx

You can also use environment variables in CI or Agent runs:

export QNAME_API_KEY="qname_xxx"
export QNAME_BASE_URL="https://qname.ai"

Commands

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 --path

qname-cli defaults to JSON output so humans and AI Agents can parse results without screen scraping.

Agent Usage

Install the Agent Skill globally:

npx skills add QNameAI/qname-cli -y -g

Agent instructions are also bundled inside the npm package at:

qname-cli skill --path

Agents 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.

About

Your Domain Claw for AI domain search, model signals, and domain age checks.

Topics

Resources

Stars

Watchers

Forks

Contributors