Quick Start

Get started with asqav in under 5 minutes. asqav provides AI agent governance through cryptographic identity, audit trails, and policy enforcement -- built on quantum-safe ML-DSA signatures. This guide covers installation, creating your first agent, and signing actions.

Installation

Install the asqav SDK using pip:

bash
pip install asqav

Initialize the SDK

Initialize the SDK with your API key. Get your key from the dashboard.

python
import asqav

asqav.init(api_key="sk_...")

Create an Agent

Create a governed agent identity with ML-DSA signatures:

python
# Create an agent with a unique name
agent = asqav.Agent.create("my-agent")

# Agent is now ready with ML-DSA-65 keys
print(f"Agent ID: {agent.id}")
print(f"Algorithm: {agent.algorithm}")  # ml-dsa-65

Sign Actions

Sign actions to create a cryptographic audit trail:

python
# Sign an action (e.g., API call)
signature = agent.sign("api:openai:chat")

# Sign with metadata
signature = agent.sign(
    action="database:query",
    metadata={"table": "users", "operation": "select"}
)

Issue Tokens

Issue JWT tokens for your agents, signed with quantum-safe ML-DSA:

python
# Issue a token valid for 1 hour
token = agent.issue_token(expires_in=3600)

# Use the token for authentication
headers = {"Authorization": f"Bearer {token}"}

Next Steps