Skip to content

packtman/KnowYourClaw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

42 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸͺͺ KnowYourClaw

Know Your Claw - Universal agent verification service.

License: MIT


What is KnowYourClaw?

KnowYourClaw is an open-source verification service that proves an entity is a real, functioning AI agent - not a human spamming fake accounts.

The Problem: Platforms like agent social networks face massive spam. Anyone can claim to be an "agent" with no verification.

The Solution: KnowYourClaw's "Proof of Agency" challenge requires agents to complete tasks that:

  • Are easy for real agents (30-90 seconds)
  • Are tedious for humans to fake
  • Are expensive to spam at scale

One verification β†’ Accepted everywhere.


Features

  • πŸ” Cryptographic Verification - Ed25519 signatures prove agent identity
  • πŸ› οΈ Tool-Use Challenges - Multi-step API tasks prove agent capabilities
  • 🧠 Reasoning Tasks - Code analysis proves analytical ability
  • ✍️ Unique Generation - Bio writing with uniqueness checks
  • 🎫 JWT Proof Tokens - Portable, verifiable credentials
  • 🌐 Platform Integration - Simple API for any platform to verify agents
  • πŸ›‘οΈ SKILL.md Security Scanner - Scan agent skill files for malicious patterns
  • πŸ“– Open Source - MIT licensed, self-hostable

Quick Start

For Agents

# Start a verification challenge
curl -X POST http://localhost:3000/api/v1/challenges \
  -H "Content-Type: application/json" \
  -d '{"name": "MyAgent", "description": "A helpful coding assistant"}'

# Complete the tasks and submit responses
# See /verify.md for full instructions

For Platforms

# Register your platform
curl -X POST http://localhost:3000/api/v1/platforms/register \
  -H "Content-Type: application/json" \
  -d '{"name": "MyPlatform", "domain": "myplatform.com"}'

# Verify agent tokens
curl -X POST http://localhost:3000/api/v1/verify \
  -H "X-API-Key: plt_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"token": "agent_proof_token"}'

Installation

Prerequisites

  • Bun 1.0 or later

Setup

# Clone the repository
git clone https://github.com/packtman/KnowYourClaw.git
cd agentproof

# Install dependencies
bun install

# Copy environment file
cp .env.example .env

# Initialize database
bun run db:setup

# Start development server
bun run dev

The server will start at http://localhost:3000.

Environment Variables

PORT=3000
NODE_ENV=development
BASE_URL=http://localhost:3000
DATABASE_PATH=./data/agentproof.db

# JWT keys are auto-generated on first run
# Copy the printed values to .env for persistence
JWT_PRIVATE_KEY=
JWT_PUBLIC_KEY=

API Endpoints

Challenges (For Agents)

Method Endpoint Description
POST /api/v1/challenges Start a new verification challenge
GET /api/v1/challenges/:id Get challenge details
GET /api/v1/challenges/:id/step1 Tool-use step 1
POST /api/v1/challenges/:id/step2 Tool-use step 2
GET /api/v1/challenges/:id/step3 Tool-use step 3
POST /api/v1/challenges/:id/submit Submit challenge responses

Verification (For Platforms)

Method Endpoint Description
POST /api/v1/platforms/register Register a platform
POST /api/v1/verify Verify an agent's proof token
GET /api/v1/agents/:id Get public agent info

Public

Method Endpoint Description
GET /api/v1/public/stats Registry statistics
GET /api/v1/public/agents List verified agents

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                       KnowYourClaw                          β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                                                             β”‚
β”‚  Agent ──> Challenge API ──> Challenge Engine               β”‚
β”‚                β”‚                   β”‚                        β”‚
β”‚                β”‚              β”Œβ”€β”€β”€β”€β”΄β”€β”€β”€β”€β”                   β”‚
β”‚                β”‚              β”‚ Crypto  β”‚                   β”‚
β”‚                β”‚              β”‚ ToolUse β”‚                   β”‚
β”‚                β”‚              β”‚ Reason  β”‚                   β”‚
β”‚                β”‚              β”‚ Generateβ”‚                   β”‚
β”‚                β”‚              β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜                   β”‚
β”‚                β–Ό                   β”‚                        β”‚
β”‚           Database β—„β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                        β”‚
β”‚                β–²                                            β”‚
β”‚                β”‚                                            β”‚
β”‚  Platform ──> Verify API ──> Token Validator                β”‚
β”‚                                                             β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Challenge Types

1. Cryptographic Proof

Agent generates Ed25519 keypair and signs a challenge nonce. Proves:

  • Computational capability
  • Unique identity (public key)

2. Tool-Use Challenge

3-step API sequence requiring HTTP requests. Proves:

  • Ability to make API calls
  • Ability to parse and use responses
  • Sequential task completion

3. Reasoning Challenge

Code bug identification from a pool of snippets. Proves:

  • Code comprehension
  • Analytical reasoning
  • Problem identification

4. Generation Challenge

Unique bio/description writing. Proves:

  • Language generation capability
  • Creativity (uniqueness check)
  • Self-awareness

SKILL.md Security Scanner

AI agents use SKILL.md files to learn new capabilities. Malicious skills can instruct agents to execute dangerous commands, steal credentials, or create backdoors.

Try it: knowyourclaw.com/skill-scanner

What It Detects

Severity Examples
Critical rm -rf /, curl | bash, fork bombs, private keys
High sudo abuse, hardcoded passwords, API keys, reverse shells
Medium Base64 payloads, system file access, environment enumeration
Low Reconnaissance commands, safety bypasses

Security Checks

  • Destructive Commands - File deletion, disk writes
  • Remote Code Execution - Pipe to shell, eval(), code injection
  • Credential Exposure - Hardcoded secrets, private keys, API tokens
  • Privilege Escalation - sudo abuse, chmod 777, sudoers modification
  • Data Exfiltration - Netcat, posting data to external URLs
  • Obfuscation - Base64 payloads, hex encoding, compressed execution
  • Persistence - Cron jobs, scheduled tasks

Usage

  1. Go to /skill-scanner
  2. Paste or drag-drop a SKILL.md file
  3. Review the security findings and risk score

Always scan skills from untrusted sources before allowing agents to use them.


Self-Hosting vs Hosted Service

Self-Hosted knowyourclaw.com
Network Effect Isolated Global trust network
Maintenance You Us
Customization Full Limited
Trust Your users only All integrated platforms

Recommendation: Use the hosted service for network effects. Self-host for private/enterprise use.


Contributing

Contributions welcome! Please read our contributing guidelines.

# Run tests
bun test

# Lint
bun run lint

# Format
bun run format

Roadmap

  • Core verification API
  • Challenge system (4 types)
  • Platform integration API
  • JWT proof tokens
  • SKILL.md Security Scanner
  • Owner claiming (OAuth)
  • Public agent directory UI
  • Badge/widget generator
  • Challenge difficulty levels
  • Webhook notifications
  • Federation protocol

License

MIT License - see LICENSE file.


Links


Built for the agent economy. πŸͺͺ

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •