Install. Call a verb. Get a signed receipt.
You can integrate CommandLayer in under 2 minutes.
CommandLayer is the semantic verb layer for autonomous agents.
It provides:
- Standardized verbs (
summarize,analyze,classify, etc.) - Strict JSON request & receipt schemas
- Cryptographically signed receipts (Ed25519 + SHA-256)
- x402-compatible execution envelopes
- ERC-8004–aligned agent discovery
CommandLayer turns agent actions into verifiable infrastructure.
npm install @commandlayer/sdkpip install commandlayerimport { createClient } from "@commandlayer/sdk";
const client = createClient({
actor: "my-app"
});
const receipt = await client.summarize({
content: "CommandLayer makes agent actions structured and verifiable.",
style: "bullet_points"
});
console.log(receipt.result.summary);from commandlayer import create_client
client = create_client(actor="my-app")
receipt = client.summarize(
content="CommandLayer makes agent actions structured and verifiable.",
style="bullet_points"
)
print(receipt["result"]["summary"])commandlayer summarize \
--content "CommandLayer makes agent actions structured and verifiable." \
--style bullet_pointsEvery call returns a signed receipt, not just raw output.
receipt.status // "success"
receipt.metadata.receipt_id // Deterministic receipt hash
receipt.trace.duration_ms // Execution latency
receipt.result // Structured verb output
receipt.metadata.proof.hash_sha256
receipt.metadata.proof.signature_b64
receipt.metadata.proof.signer_id
receipt.metadata.proof.alg // "ed25519-sha256"Receipts are:
- Canonicalized
- Hashed (SHA-256)
- Signed (Ed25519)
- Verifiable independently
By default, the SDK verifies receipts automatically.
The Commons SDK includes 10 verbs:
summarizeanalyzeclassifycleanconvertdescribeexplainformatparsefetch
All verbs return structured, signed receipts.
const client = createClient({
actor: "my-production-app",
runtime: "https://runtime.commandlayer.org", // default
verifyReceipts: true // default
});actor— Identifier for your application or tenantruntime— Custom runtime base URLverifyReceipts— Enable/disable signature verification
- Always set a meaningful
actor - Keep
verifyReceiptsenabled in production - Store
receipt_idfor audit trails - Treat receipts as durable evidence, not logs
import { verifyReceipt } from "@commandlayer/sdk";
const ok = await verifyReceipt(receipt, {
ens: true,
rpcUrl: "https://mainnet.infura.io/v3/..."
});
console.log("Verified:", ok);You can verify:
- With a provided public key (offline)
- By resolving signer pubkey from ENS
- Or disable verification entirely
📖 Real-world usage → EXAMPLES.md
🚀 Deployment & publishing → DEPLOYMENT_GUIDE.md
🔍 SDK architecture → DEVELOPER_EXPERIENCE.md
🌐 Full docs → https://commandlayer.org/docs.html
CommandLayer turns agent execution into verifiable infrastructure.
You're ready to build.