KG-NINJA · Developer API

A failed command in.
A repair checklist out.

For developers and agent builders handling missing dependencies, authorization errors, or unavailable services.

$0.01 per request · USDC via x402 · eip155:8453

Preview the result — free · Match your goal and budget · Subscribe to offer updates

Mainnet: a paid retry can spend real USDC. Reading the preview does not initiate payment.

What you receive

One JSON receipt with a probable cause, a next command to review, a retry plan, a risk note, and a prevention note. This is rule-based triage; it does not run commands, inspect your repository, or guarantee a fix.

Example input

{"command":"npm run build","error":"Cannot find module 'hono'","environment":"Node.js"}

Free example output — generated from the example input above, not a paid receipt.

{
  "root_cause": "The failure appears related to a missing package, missing file, or unresolved module path.",
  "next_command": "npm install",
  "retry_plan": [
    "Confirm the exact failing command.",
    "Run the smallest non-destructive diagnostic command relevant to the error.",
    "Check whether required environment variables, packages, files, or services are present.",
    "Retry the original command once after the minimal fix."
  ],
  "risk_note": "Do not run destructive cleanup, reset, rm, database, credential, or firewall commands without manual review.",
  "prevention_note": "Store this error pattern in a runbook and add a preflight check before future runs.",
  "generated_at": "2026-09-05T16:51:41.032Z"
}

Use the free preview to inspect the complete input/output schema and example receipt before deciding whether this helps your workflow.

From preview to one paid result

  1. Read the free input/output schema and current payment requirements.
  2. Send your command and error to POST /fix-error. Without payment proof, the response is HTTP 402 with a PAYMENT-REQUIRED header.
  3. Use an x402-compatible client and funded wallet. Review the network, asset, amount, and recipient in that challenge before authorizing payment.
  4. Retry the same request with the client's payment proof. Keep the returned receipt and settlement evidence; HTTP 402 alone is not a purchase.

This is an API for x402 clients. This page does not offer card checkout or collect wallet keys. Each new paid request is a separate purchase.

OpenAPI contract · Agent discovery · Pricing

Use an existing Coinbase Agentic Wallet

For buyers who already have the CLI installed, an authenticated wallet, and USDC on Base. These examples use Bash or zsh. If you do not have that setup, read the official wallet setup first.

Inspect first — no API payment:

npx awal@latest x402 details https://api.kgninja.dev/fix-error --json

Verify Base (eip155:8453), USDC, the current amount, and the recipient against payment requirements. Skip purchase when the free example or your local tools already solve the problem.

The following command purchases one diagnosis. Run only with the wallet owner's permission. The limit is 10000 USDC atomic units (0.01 USDC); a higher quoted price should be rejected. Replace the sample with your own error after removing secrets.

npx awal@latest x402 pay https://api.kgninja.dev/fix-error -X POST -d '{"command":"npm run build","error":"Cannot find module hono","environment":"Node.js"}' --max-amount 10000 --json

Read response.receipt.root_cause, response.receipt.next_command, and response.receipt.retry_plan in the API response body. Keep the response and settlement evidence. An unclear payment result requires reconciliation before another purchase.

Command syntax follows the official client documentation. This client example has not been independently paid-tested against this endpoint. This page does not execute it or connect a wallet.

Check the result before using it

Remove secrets and personal information from logs. Review suggested commands before running them. If payment appears complete but no receipt arrives, retain the transaction reference and consult your client's recovery flow before making another payment.

Discovery requests and example receipts are free. Owner demos and unpaid requests are not sales.

Other existing tools

Each example below targets an existing paid operation. Inspect its free preview or contract, then use the x402 payment flow above with that operation's URL and request body. The example input is illustrative. Do not send a paid request when a free option already solves your task.

Command error triage / コマンドエラー診断

Rule-based triage of submitted command failures. Returns response.receipt with root_cause, next_command, retry_plan, risk_note and prevention_note.

Does not inspect your repository, execute commands, or guarantee a fix. Skip if the free example or local tools already solve the failure.

0.01 USDC per request · eip155:8453 · mainnet

POST https://api.kgninja.dev/fix-error

{
  "command": "npm run build",
  "error": "Cannot find module 'hono'",
  "environment": "Node.js"
}

Free preview / contract · Request schema · Subscribe to this offer

Public page excerpt / 公開ページの抜粋

Fetches a public page and returns its title and up to 420 characters of extracted text in summary.

Text extraction, not an AI-written synthesis. No browser rendering, login, or guarantee of useful content. Read the page directly when sufficient.

0.01 USDC per request · eip155:8453 · mainnet

POST https://api.kgninja.dev/summarize-url

{
  "url": "https://example.com"
}

Free preview / contract · Request schema · Subscribe to this offer

Shell command precheck / シェルコマンドの事前確認

Returns risk_level, explanation and safer_alternative for common shell command patterns.

Rule-based pattern checks, not a sandbox or comprehensive security audit. A low score does not prove safety.

0.01 USDC per request · eip155:8453 · mainnet

POST https://api.kgninja.dev/shell-risk-check

{
  "command": "npm install hono"
}

Free preview / contract · Request schema · Subscribe to this offer

KG-NINJA discovery telemetry / 本サービスの発見状況

Returns aggregate machine discovery and payment-readiness telemetry for this KG-NINJA service.

Does not crawl or audit an arbitrary target website. Aggregate signals do not establish customer identity, demand, or sales.

0.01 USDC per request · eip155:8453 · mainnet

POST https://api.kgninja.dev/agent-visibility-report

{
  "mode": "aggregate"
}

Free preview / contract · Request schema · Subscribe to this offer

X search query builder / X検索クエリ作成

Builds a filtered X search query and searchUrl from your keywords; returns a structured handoff.

Does not fetch X posts, contact users, or guarantee leads. Free MCP planning and a human opening a search URL are available.

0.01 USDC per request · eip155:8453 · mainnet

POST https://api.kgninja.dev/hyperxosist-query

{
  "keywords": "open source CRM feedback",
  "lang": "en"
}

Free preview / contract · Request schema · Subscribe to this offer