Skip to content

Getting Started

Get up and running with CapiscIO in minutes. One command gives your AI agent a cryptographic identity, just like Let's Encrypt did for HTTPS.


Quick Install

npm install -g capiscio       # or: pip install capiscio

The Fastest Path: One Command Setup

Get a complete agent identity in under 60 seconds:

# Set your API key (get one free at app.capisc.io)
export CAPISCIO_API_KEY=sk_live_...

# That's it! One command does everything:
capiscio init
from capiscio_sdk import CapiscIO

# One line - handles everything automatically
agent = CapiscIO.connect(api_key="sk_live_...")

print(agent.did)    # did:key:z6Mk...
print(agent.badge)  # Your trust badge
# Set CAPISCIO_API_KEY in your environment
agent = CapiscIO.from_env()

What happens automatically:

  1. โœ… Ed25519 key pair generated
  2. โœ… did:key identity derived (RFC-002 compliant)
  3. โœ… DID registered with CapiscIO registry
  4. โœ… Agent card created with x-capiscio extension
  5. โœ… Trust badge requested and stored

Choose Your Setup Path

  • Path 1: Quick Start (Recommended)


    Just use your API key. We auto-discover your agent.

    export CAPISCIO_API_KEY=sk_live_...
    capiscio init
    

    Best for: Getting started fast, single-agent setups, demos.

  • Path 2: UI-First


    Create your agent in the dashboard first, then initialize.

    # 1. Create agent at app.capisc.io โ†’ get agent ID
    # 2. Initialize with specific agent
    capiscio init --agent-id agt_abc123
    

    Best for: Teams, production, multiple agents per org.


What You Get

After running capiscio init, your .capiscio/ directory contains:

.capiscio/
โ”œโ”€โ”€ private.jwk      # Ed25519 private key (keep secret!)
โ”œโ”€โ”€ public.jwk       # Public key
โ”œโ”€โ”€ did.txt          # Your agent's did:key identifier
โ””โ”€โ”€ agent-card.json  # A2A-compliant agent card

Your agent now has:

  • Cryptographic identity - A globally unique did:key that proves who you are
  • Verifiable credentials - Sign messages and prove authenticity
  • Trust badge - Registered with CapiscIO for discovery and verification
  • A2A compliance - Ready to interact with other A2A agents

Choose Your Next Step

  • Validate Your Agent


    Ensure your agent card is A2A-compliant.

    5 minutes ยท Beginner

    Start Validating

  • Secure Your Agent


    Add request signing and verification.

    15 minutes ยท Intermediate

    Add Security

  • Protect MCP Tools


    Add tool-level authorization to Model Context Protocol servers.

    10 minutes ยท Intermediate

    MCP Guard Quickstart

  • CI/CD Integration


    Automate validation in GitHub Actions.

    10 minutes ยท Intermediate

    Setup CI/CD

  • Complete Workflow


    End-to-end guide: identity โ†’ badge โ†’ validation โ†’ deployment.

    30 minutes ยท Comprehensive

    Full Walkthrough


Manual Setup (Advanced)

If you need more control, you can still do things step-by-step:

# Generate keys only (no server registration)
capiscio key gen --out-priv private.jwk --out-pub public.jwk

# Derive DID from existing key
capiscio key did --in public.jwk

See the CLI Reference for all options.


Prerequisites

Path Requirements
CLI (capiscio init) Node.js 18+ or Python 3.10+
Python SDK (CapiscIO.connect()) Python 3.10+
CI/CD GitHub repository

SDK Quick Reference

from capiscio_sdk import CapiscIO

# Connect and get full identity
agent = CapiscIO.connect(api_key="sk_live_...")

# Or from environment
agent = CapiscIO.from_env()  # Uses CAPISCIO_API_KEY

# Use the agent
print(agent.did)           # did:key:z6Mk...
print(agent.badge)         # Current trust badge
print(agent.status())      # Full status dict

# Emit events for observability
agent.emit("task_started", {"task_id": "123"})
import { CapiscIO } from 'capiscio';

// Connect and get full identity
const agent = await CapiscIO.connect({ apiKey: 'sk_live_...' });

console.log(agent.did);    // did:key:z6Mk...
console.log(agent.badge);  // Current trust badge
# Initialize agent identity
capiscio init --api-key $CAPISCIO_API_KEY

# Or with explicit agent ID
capiscio init --agent-id agt_abc123

# View your identity
cat .capiscio/did.txt

What's Next?

After getting started, explore:

  • Get a Trust Badge


    Upgrade from self-signed to verified trust.

    Trust Badges

  • Understand the Concepts


    Learn how validation, scoring, and trust work.

    Concepts

  • How-To Guides


    Solve specific problems with copy-paste recipes.

    How-To Guides