Kakunin Samples AI Agent

by kakunin-ai• 15•• Scanned•Claim this listing•Request removal
Learning Resourcesagent securityai agentsautogencompliancecrewai

Runnable examples for AI agent identity & compliance — certificate issuance, scope enforcement, and integrations for LangChain, CrewAI, Next.js & more.

Kakunin Samples is an open-source ai agent by kakunin-ai, written mainly in Python, with 15 GitHub stars and the MIT license. Its code was last updated Jul 9, 2026. The latest PyPI release is kakunin 0.2.0, published Jul 7, 2026, with 3 downloads last week.

Kakunin Samples — AI agent identity & compliance examples (X.509, scope enforcement, LangChain/CrewAI/Next.js)

Open in GitHub Codespaces Deploy with Vercel License: MIT kakunin.ai

Comply with MiCA Art. 72 and EU AI Act in under 10 minutes.

End-to-end integration samples for the Kakunin AI agent compliance API.

⭐ If this saves you compliance headaches, star this repo.

Kakunin issues X.509 cryptographic identities to AI agents, monitors their behaviour in real time, and generates MiCA & EU AI Act compliance reports — all via API.

Part of the Kakunin open-source project

This repo is the runnable examples. The project itself is open source, top to bottom:

RepoWhatLicense
kakunin-coreThe platform — certificate authority, risk engine, audit pipelineAGPL-3.0
kakunin-sdk-typescript@kakunin/sdkApache-2.0
kakunin-sdk-pythonkakuninApache-2.0
kakunin-integrationsmiddleware · langchain · mastra · ai-sdkApache-2.0
kakunin-mcp@kakunin/mcpApache-2.0
kakunin-samples (this repo)End-to-end examplesMIT

New here? Start with a TypeScript or Python SDK, then run a sample below.


Samples

Language / FrameworkFolderWhat it demonstrates
TypeScripttypescript/Full agent lifecycle — register, certify, events, report
Pythonpython/Same lifecycle, async httpx client
curl / shellcurl/Bare HTTP — works in any CI pipeline
Gogo/stdlib only, no dependencies
LangChain (Python)langchain/KakuninToolGuard — scope-enforced tool calls
LangChain (TypeScript)typescript/langchain-guard/KakuninToolGuard — scope-enforced tool calls for JS/TS
LlamaIndexllamaindex/KakuninFunctionToolGuard — RAG tools with cert verification
CrewAIcrewai/KakuninCrewAgent — per-agent certs in multi-agent crews
AutoGenautogen/KakuninConversableAgent — cert-gated replies
Next.jsnextjs/App Router API routes + middleware cert enforcement
Vercel AI SDKtypescript/vercel-ai/createKakuninTools — compliance tools for the Vercel AI SDK
Vercel AI SDK + Next.js (Chat)nextjs-vercel-ai/Stream-chat interface using Vercel AI SDK tools & Deploy Button
Mastratypescript/mastra/KakuninIntegration — compliance tools for Mastra agents & workflows

Quickstart

Prerequisites: API key from dashboard → API Keys

TypeScript (Node ≥ 18):

cd typescript && npm install
KAKUNIN_API_KEY=kak_live_... npx ts-node quickstart.ts

Python (3.10+):

cd python && pip install -r requirements.txt
KAKUNIN_API_KEY=kak_live_... python quickstart.py

curl:

KAKUNIN_API_KEY=kak_live_... ./curl/quickstart.sh

Go:

KAKUNIN_API_KEY=kak_live_... go run go/main.go

Framework integrations

The kakunin Python SDK ships scope-enforcement wrappers for all major agentic frameworks:

pip install kakunin
IntegrationClassScope check fires
LangChainKakuninToolGuardPer-tool invocation
LangChainlangchain_scope_callbackPer-chain (before first LLM call)
LlamaIndexKakuninFunctionToolGuardPer-tool call
CrewAIKakuninCrewAgentPer-task execution
AutoGenKakuninConversableAgentPer-reply

See langchain/ for a full example. Full reference: kakunin.ai/docs/python-sdk.


Use in CI (reusable GitHub Actions workflow)

jobs:
  certify:
    uses: kakunin-ai/kakunin-samples/.github/workflows/certify-agent.yml@main
    with:
      agent_name: my-production-agent
      model: gpt-4o
      version: ${{ github.sha }}
    secrets:
      KAK_API_KEY: ${{ secrets.KAKUNIN_API_KEY }}

Outputs agent_id and cert_serial for downstream steps. See .github/workflows/certify-agent.yml.


API reference

EndpointDescription
POST /api/v1/agentsRegister an agent
POST /api/v1/certificatesIssue X.509 certificate
POST /api/v1/eventsRecord a behaviour event
POST /api/v1/reports/complianceQueue a compliance report
GET /api/v1/verify/:serialVerify a certificate (public, no auth)

Full OpenAPI spec: kakunin.ai/api/v1/openapi.json


Authentication

All endpoints except /verify/* require a Bearer token:

Authorization: Bearer kak_live_...

Error handling

StatusMeaning
401Invalid or revoked API key
403Certificate revoked or scope violation
422Quota exceeded
429Rate limit exceeded — retry after Retry-After seconds
5xxInternal error — contact ai@kakunin.ai

All errors return { "error": "string" }.


Support

Kakunin Samples alternatives

View more →

Similar ai agents in Learning Resources, ranked by GitHub stars. Compare licence, recent activity and scan status before you choose.

NameStarsLicenceLast updatedScan
Kakunin Samples (this page)
kakunin-ai
15MITJul 9, 2026Scanned, no flagged issues
Prompt Engineering Guide
dair-ai
80kMITMar 11, 2026Scanned, no flagged issues
Learn Claude Code
shareAI-lab
80kMITOct 27, 2026Scanned, no flagged issues
AI Engineering From Scratch
rohitg00
76kMITOct 29, 2026Scanned, no flagged issues
Front End Checklist
thedaviddias
75kMITOct 31, 2026Scanned, no flagged issues
System Prompts Leaks
asgeirtj
71kCC0-1.0Nov 1, 2026Scanned, no flagged issues