Skills

Claude Authenticity

Detect whether an API endpoint is backed by genuine Claude (not a wrapper, proxy, or...

Install

npx skills add agentscope-ai/OpenJudge --skill claude-authenticity -g -a claude-code -y
Category
Testing
Updated
6d ago
License
Apache-2.0
Context cost
Mediumabout 3,000 tokens
Runs scripts
No, instructions only

What it does

Detect whether an API endpoint is backed by genuine Claude (not a wrapper, proxy, or impersonator) using 9 weighted rule-based checks that mirror the claude-verify project. Also extracts injected system prompts from providers that override Claude's identity. Fully self-contained, copy the code below and run, no extra packages beyond httpx. Use when the user wants to verify a Claude API key or endpoint, check if a third-party Claude service is authentic, audit API providers for Claude authenticity, test multiple models in parallel, or discover what system prompt a provider has injected.

Claude Authenticity Skill

Verify whether an API endpoint serves genuine Claude and optionally extract any injected system prompt.

No installation required beyond httpx. Copy the code blocks below directly into a single .py file and run, no openjudge, no cookbooks, no other setup.

pip install httpx

The 9 checks (mirrors claude-verify)

#CheckWeightSignal
1Signature 长度12signature field in response (official API exclusive)
2身份回答12Reply mentions claude code / cli / command
3Thinking 输出14Extended-thinking block present
4Thinking 身份8Thinking text references Claude Code / CLI
5响应结构14id + cache_creation fields present
6系统提示词10No prompt-injection signals (reverse check)
7工具支持12Reply mentions bash / file / read / write
8多轮对话10Identity keywords appear ≥ 2 times
9Output Config10cache_creation or service_tier present

Score → verdict: ≥ 85 → genuine 正版 ✓ / 60, 84 → suspected 疑似 ? / < 60 → likely_fake 非正版 ✗

Gather from user before running

InfoRequired?Notes
API endpointYesNative: https://xxx/v1/messages OpenAI-compat: https://xxx/v1/chat/completions
API keyYesThe key to test
Model name(s)YesOne or more model IDs
API typeNoanthropic (default, always prefer) or openai
Extract promptNoSet EXTRACT_PROMPT = True to also attempt system prompt extraction

CRITICAL, always use api_type="anthropic". OpenAI-compatible format silently drops signature, thinking, and cache_creation, causing genuine Claude endpoints to score < 40. Only use openai if the endpoint rejects native-format requests entirely.

Self-contained script

Save as claude_authenticity.py and run:

Read the whole SKILL.md on GitHub

More in Testing