@clawid/cli
v0.4.1
Published
CLI tool for signing and verifying AI agent skills
Downloads
45
Maintainers
Readme
@clawid/cli
Cryptographic verification for AI agent skills. Prove integrity and provenance of skill bundles with Ed25519 signatures.
⚠️ NOT A SAFETY AUDIT — ClawID verifies that a skill hasn't been tampered with and identifies who signed it. It does NOT audit code for malware.
Installation
npm install -g @clawid/cli
# or
npx @clawid/cliQuick Start
1. Generate Your Identity
clawid initCreates an Ed25519 keypair and DID at ~/.clawid/keypair.json:
🔑 ClawID Identity Setup
✅ Identity created successfully!
DID: did:key:z6MkwTCtz6NewTuV2MJsHvhrQew8Lp7uC1W7Syvg97WsAGjZ
Public Key: fc931e2c3c0a729fd8c931634ad032d5e648b5dc5e66aecc090f32a1398844e82. Sign a Skill Bundle
clawid sign my-skill-v1.0.0.zipCreates a .clawid-sig.json signature file alongside the zip.
3. Verify a Skill Bundle
clawid verify my-skill-v1.0.0.zipShows tiered verification result.
Commands
Identity Management
| Command | Description |
|---------|-------------|
| clawid init | Generate new Ed25519 keypair and DID |
| clawid init --force | Overwrite existing identity |
| clawid whoami | Display current identity |
Signing & Verification
| Command | Description |
|---------|-------------|
| clawid sign <path.zip> | Sign a skill bundle |
| clawid sign <path> -o <output> | Specify output path |
| clawid verify <path.zip> | Verify a signed skill |
| clawid verify <path> --offline | Skip online proof check |
| clawid verify <path> -s <sig> | Specify signature file |
Identity Proofs
Prove your identity to show as "Publisher Verified":
| Command | Description |
|---------|-------------|
| clawid proof github | Generate GitHub gist proof template |
| clawid proof domain [domain] | Generate .well-known proof template |
| clawid proof add <type> <url> | Add proof to identity |
| clawid proof remove | Remove proof from identity |
| clawid proof show | Show current proof configuration |
Example workflow:
# Generate gist content
clawid proof github
# → Copy output to a public GitHub gist named clawid.json
# Add proof to your identity
clawid proof add github https://gist.github.com/yourname/abc123
# Now your signatures include the proof
clawid sign my-skill.zip
# → Verifiers will see "Publisher Verified"Remote Skills
Download and verify skills from URLs:
| Command | Description |
|---------|-------------|
| clawid wrap install <url> | Download, verify, and prepare skill |
| clawid wrap install <url> --force | Install even if unknown publisher |
| clawid wrap verify <url> | Download and verify (cleanup after) |
Verification Tiers
| Tier | Icon | Meaning | |------|------|---------| | Publisher Verified | ✅ | Signature valid + identity proven via GitHub/domain | | Integrity Verified | ✅ | Signature valid, proof skipped (offline mode) | | Unknown Publisher | ⚠️ | Signature valid but identity not proven | | Failed | 🚫 | Hash mismatch or invalid signature |
Signature File Format
The .clawid-sig.json file contains:
{
"version": "1.0",
"signer": {
"did": "did:key:z6Mk...",
"publicKey": "fc931e2c...",
"proof": {
"type": "github",
"handle": "username",
"url": "https://gist.github.com/..."
}
},
"artifact": {
"type": "skill-bundle-zip",
"hash": "sha256:a1b2c3d4...",
"filename": "my-skill.zip",
"size": 12345
},
"timestamp": "2026-02-03T10:30:00Z",
"signature": "e1555fa4..."
}Library API
ClawID can be used as a library for integrating verification into other tools (MCP servers, package managers, installers):
import { verifySkill, downloadAndVerify } from '@clawid/cli';
// Verify local files
const result = await verifySkill('./skill.zip', './skill.clawid-sig.json');
console.log(result.tier); // 'publisher_verified'
console.log(result.canInstall); // true
// Verify remote skill
const remote = await downloadAndVerify('https://example.com/skill.zip');
if (remote.canInstall) {
// Install from remote.zipPath
}
// Skip online proof verification
const offline = await verifySkill(zipPath, sigPath, { offline: true });Installation Rules
| Tier | canInstall |
|------|------------|
| publisher_verified | true |
| integrity_verified | true |
| unknown_publisher | false |
| failed | false |
Use the --force flag in CLI or check result.valid to override for unknown_publisher tier.
Types
interface VerificationResult {
tier: 'publisher_verified' | 'integrity_verified' | 'unknown_publisher' | 'failed';
valid: boolean;
hashMatch: boolean;
signatureValid: boolean;
canInstall: boolean;
signerDid: string;
hasIdentityProof: boolean;
proofVerified: boolean;
proof?: {
type: 'github' | 'domain';
handle: string;
verified: boolean;
};
error?: string;
}
interface DownloadAndVerifyResult extends VerificationResult {
zipPath?: string; // Path to downloaded file (if keepFiles: true)
sigPath?: string; // Path to signature file
downloadError?: string;
}CI Integration
Exit codes for CI pipelines:
| Exit Code | Meaning |
|-----------|---------|
| 0 | Verification passed |
| 1 | Verification failed |
# In your CI pipeline
clawid verify skill.zip || exit 1FAQ
Does verified mean safe? No. Verified means the bundle hasn't been tampered with and we know who signed it. Review code from unknown publishers.
Can attackers sign malware? Yes — that's why we show WHO signed it. Signature proves integrity, not intent.
What about dependencies? Out of scope. We verify the published bundle, not what it might download at runtime.
Links
- Website: clawid.dev
- Web Verifier: clawid.dev/verify
- GitHub: MythyaVerse/clawid
License
MIT
