Uses @kakunin/sdk to issue X.509 certificates for AI agents
kakunin-starter-nextjs — Next.js Starter Template
By kakunin-ai
A Next.js-based Kakunin starter template that uses @kakunin/sdk to issue X.509 certificates for AI agents and verify them on API routes.
Explore the design
Compare the page layouts and mobile experience. Open any screenshot for a closer look.
Actual screenshot captured by the server browser.
All pages & views 2
Screenshots show visual appearance; interactive behavior may differ.
What stands out
A quick read of the recorded project description.
src/app/api/agents/route.ts registers agents and issues agent certificates via agents.create and agents.certify
src/middleware.ts enforces valid certificate verification on /api/protected/* routes
src/lib/kakunin.ts provides a lazily initialized shared SDK client
Provides a one-click Vercel deploy entry, requiring configuration of the KAKUNIN_API_KEY environment variable
MIT licensed, can be forked and modified freely
Template Details
This is a deployable Next.js starter app whose goal is to add cryptographic identity and compliance capabilities to AI agents, depending on @kakunin/sdk. The README states it contains three parts: src/app/api/agents/route.ts handles registering agents and issuing their X.509 certificates (calling agents.create and agents.certify); src/middleware.ts enforces a valid certificate on /api/protected/* routes; src/lib/kakunin.ts is a lazily initialized shared SDK client.
Usage: obtain the code via npx degit or GitHub's Use this template, install dependencies, copy .env.example to .env.local and fill in the API key, then run the development server. The README mentions that a free sandbox key (kak_test_ prefix) can be obtained at kakunin.ai/dashboard/api-keys. An example of registering and issuing an agent is sending a POST request to /api/agents containing name, model, and version.
The README does not provide page UI, a route list, specific implementation details of certificate verification, error handling, or production deployment configuration instructions; apart from the Vercel deploy button, it also does not describe other deployment steps.
Is it right for your project?
Use Cases
- Registering and issuing X.509 certificates for AI agents in a Next.js application
- Adding certificate verification middleware to protected API routes
- Using it as a starter example for integrating @kakunin/sdk for further development
Suitable For
- Developers who need to introduce cryptographic identity for AI agents in a Next.js project
- Those who want to reference how @kakunin/sdk is used in API routes and middleware
- Teams preparing to deploy this starter app with Vercel and configure an API key
Getting started & customization
Use these recorded setup notes alongside the repository instructions for your chosen version.
- 1
Obtain the code via npx degit kakunin-ai/kakunin-starter-nextjs my-app or GitHub's Use this template
- 2
Run npm install to install dependencies
- 3
Copy .env.example to .env.local and fill in the API key
- 4
Get a free sandbox key (kak_test_ prefix) at kakunin.ai/dashboard/api-keys
- 5
Run npm run dev to start the development server; the README does not provide other deployment step instructions
License & source material
Usage conditions & limitations
Free to use · keep license noticeThis entry covers the free version in the public repository under the MIT license; the free scope is the code of this version and does not mean external services or third-party assets are free.
Must comply with when using
- Free use, modification, commercial use, and distribution of this version's code are permitted.
- When distributing copies or substantial portions of the code, retain the original author's copyright notice and the full MIT license notice.
- The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.
Additional costs & items to verify
- Demo images, fonts, icons, and other third-party assets must be checked against their respective licenses and cannot be judged solely by the code's MIT license.
- External services such as domains, hosting, databases, payments, or AI may incur separate charges.
- Using this template requires obtaining an API key from kakunin.ai (free sandbox key, kak_test_ prefix) and configuring it in .env.local; otherwise @kakunin/sdk cannot be called.
- One-click Vercel deployment requires configuring the KAKUNIN_API_KEY environment variable, i.e., it depends on an external Kakunin service account.
View Original Text Basis
Permission is hereby granted, free of charge
Original License Text
Get a free sandbox key at [kakunin.ai/dashboard/api-keys](https://www.kakunin.ai/dashboard/api-keys) (`kak_test_...`, no cost).
Original README
https://github.com/kakunin-ai/kakunin-starter-nextjs/blob/main/LICENSEhttps://github.com/kakunin-ai/kakunin-starter-nextjs/blob/main/README.md[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fkakunin-ai%2Fkakunin-starter-nextjs&env=KAKUNIN_API_KEY&envDescription=Get%20a%20free%20sandbox%20key&envLink=https%3A%2F%2Fwww.kakunin.ai%2Fdashboard%2Fapi-keys)
Original README
Compiled by DeepSeek based on repository license and README ·2026-10-14. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.
Project checks & description sources
Template Information
- Source platforms
- GitHub
- Documentation and maintenance reference score
- More documented · 80 / 100
- Technologies
- Next.js · React
- Website type
- Starter
How this score is calculated
Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.
What to verify for this project
- Repository update recorded
- 2026-07-09
- Screenshot last checked
- 2026-10-14
A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.
The catalog identifies Next.js as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.
Use a selection guide →How this description was prepared
AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.
Review declaration: codex-user-requested-batch-review-20261015 · 2026-10-15
Inspect the recorded source material
SHA-256: df788eed15dac29827aba267b5bc4610e8c4c6475fbbd0b3dbe537cd11960f99
2026-10-14T22:21:09.735Z
Source file / repository# Kakunin + Next.js starter — X.509 identity & compliance for AI agents
A minimal, deployable Next.js app that adds **cryptographic identity and compliance to AI agents** using [`@kakunin/sdk`](https://www.npmjs.com/package/@kakunin/sdk) — issue X.509 certificates, then enforce them on your API routes.
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fkakunin-ai%2Fkakunin-starter-nextjs&env=KAKUNIN_API_KEY&envDescription=Get%20a%20free%20sandbox%20key&envLink=https%3A%2F%2Fwww.kakunin.ai%2Fdashboard%2Fapi-keys)
## What's inside
- **`src/app/api/agents/route.ts`** — register an agent and issue its X.509 certificate (`agents.create` + `agents.certify`).
- **`src/middleware.ts`** — enforce a valid certificate on `/api/protected/*` routes.
- **`src/lib/kakunin.ts`** — the shared `@kakunin/sdk` client (lazy-initialised).
## Quick start
```bash
npx degit kakunin-ai/kakunin-starter-nextjs my-app # or "Use this template" on GitHub
cd my-app
npm install
cp .env.example .env.local # add your API key
npm run dev
```
Get a free sandbox key at [kakunin.ai/dashboard/api-keys](https://www.kakunin.ai/dashboard/api-keys) (`kak_test_...`, no cost).
Register + certify an agent:
```bash
curl -X POST http://localhost:3000/api/agents \
-H "Content-Type: application/json" \
-d '{"name":"my-agent","model":"gpt-4o","version":"1.0.0"}'
```
## Learn more
- SDK: [`@kakunin/sdk`](https://github.com/kakunin-ai/kakunin-sdk-typescript) · Docs: [kakunin.ai/docs](https://www.kakunin.ai/docs)
- More examples: [kakunin-samples](https://github.com/kakunin-ai/kakunin-samples)
MIT licensed — fork it, ship it.
Explore similar templates
Compare previews and descriptions within the same stack and category.

Next.js SaaS Starter
The official Next.js SaaS starter template, integrating email/password authentication, Stripe Checkout subscriptions, a dashboard with user/team CRUD, basic Owner/Member RBAC, and activity logging.
Next.js · SaaS

Next.js Commerce
Vercel's officially maintained Next.js App Router ecommerce starter with deep Shopify integration, offering a complete product catalog, cart, and checkout flow. Core logic is modular for swapping backends, and community provider versions exist for BigCommerce, Medusa, and Saleor.
Next.js · E-commerce

Next-js-Boilerplate
A developer-first Next.js 16 starter with Tailwind CSS 4 and TypeScript, supporting both App Router and Page Router.
Next.js · Starter

tailwind-nextjs-starter-blog
A Next.js and Tailwind CSS blog starter template using Contentlayer for Markdown/MDX, with built-in SEO, code highlighting, and tags. It targets personal technical blogs and migration from Jekyll/Hugo to React, and supports one-click Vercel deployment.
Next.js · Blog

next-forge
next-forge is a Turborepo-based Next.js template maintained by Vercel, positioned as a starting point for SaaS products.
Next.js · Starter

SaaS-Boilerplate
SaaS-Boilerplate is an open-source SaaS starter template built with Next.js App Router, React 19, TypeScript, Tailwind CSS, and Shadcn UI.
Next.js · SaaS
