Skip to content

Navigation Menu

Sign in
Sign up

Repository files navigation

CapKit - Capability Kit for AI Agents

Give your AI agents the minimum permission they need. No more, no less.

πŸš€ Quick Start (5 minutes)

git clone https://github.com/iamGodofall/capkit.git
cd capkit
npm install
npm run demo # See it work!

Why CapKit?

Current AI agents have root access to your systems. One prompt injection = disaster.

CapKit issues cryptographically signed, time-bound capabilities:

  • βœ… Scoped: post to /twitter, not delete
  • βœ… Time-bound: Expires in 10min
  • βœ… Signed: HMAC-SHA256 verification
  • βœ… Auditable: Every action logged
  • βœ… Zero deps: Sovereign-first (Node crypto only)

Security Model


Threat Model:
1. Agent prompt injection β†’ Capability stays scoped
2. Key compromise β†’ Time-bound limits damage 
3. Network failure β†’ Works offline
4. Malicious actor β†’ HMAC prevents tampering

Demo

See demo/agent-example.ts

Install

npm install capkit

API

import { issueCapability, verifyCapability, checkPolicy } from 'capkit';
// Issue scoped permission
const cap = issueCapability({
 action: 'post',
 resource: '/twitter',
 key: 'your-secret-key',
 expiresIn: '10m'
});
// Agent uses capability
if (verifyCapability({ capability: cap, key: 'your-secret-key' }).valid) {
 console.log('βœ… Agent authorized');
}

Part of the Agent Builder Suite
β†’ capkit: Scoped capabilities for agents
β†’ quickbench: Reproducible agent evaluation
β†’ edge-run: Offline-first orchestration (coming soon)
β†’ connector-starter: Generate adapters fast (coming soon)

Built for builders who ship. MIT licensed. Local-first by design.

License

MIT

About

Scoped, time-bound, cryptographically-signed capabilities for AI agents. Zero dependencies. Sovereign by design.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /