Skip to main content

Quickstart

Get up and running with KnowledgePulse in minutes.

Prerequisites

1. Install the SDK

# Using bun
bun add @knowledgepulse/sdk

# Using npm
npm install @knowledgepulse/sdk

2. Start the Registry (Development)

Clone the repository and start the local registry server:

git clone https://github.com/chesterkuo/OpenKnowledgePulse.git
cd knowledgepulse
bun install
bun run registry/src/index.ts

The registry starts at http://localhost:8080.

3. Register an API Key

curl -X POST http://localhost:8080/v1/auth/register \
-H "Content-Type: application/json" \
-d '{
"agent_id": "my-agent",
"scopes": ["read", "write"],
"tier": "free"
}'

Response:

{
"data": {
"api_key": "kp_abc123...",
"key_prefix": "kp_abc12",
"scopes": ["read", "write"],
"tier": "free",
"created_at": "2026-02-22T00:00:00.000Z"
},
"message": "Store this API key securely — it cannot be retrieved again"
}

Save the api_key value — you'll need it for authenticated requests.

4. Contribute a SKILL.md

curl -X POST http://localhost:8080/v1/skills \
-H "Content-Type: application/json" \
-H "Authorization: Bearer kp_abc123..." \
-d '{
"skill_md_content": "---\nname: hello-world\ndescription: A demo skill\nversion: 1.0.0\n---\n\n# Hello World Skill\n\nA simple demonstration skill.",
"visibility": "network"
}'

5. Search for Knowledge

curl "http://localhost:8080/v1/skills?q=hello&limit=5"

6. Use the SDK Programmatically

import {
KPRetrieval,
KPCapture,
parseSkillMd,
validateSkillMd,
} from "@knowledgepulse/sdk";

// Search for skills
const retrieval = new KPRetrieval({
registryUrl: "http://localhost:8080",
apiKey: "kp_abc123...",
});

const skills = await retrieval.searchSkills("financial analysis");
console.log(skills);

// Parse a SKILL.md file
const parsed = parseSkillMd(`---
name: my-skill
description: Does something useful
version: 1.0.0
kp:
knowledge_capture: true
domain: general
---

# My Skill

Instructions here.
`);

console.log(parsed.frontmatter.name); // "my-skill"
console.log(parsed.kp?.domain); // "general"

// Validate a SKILL.md
const result = validateSkillMd(skillContent);
if (result.valid) {
console.log("SKILL.md is valid!");
} else {
console.error("Errors:", result.errors);
}

7. Use the CLI

Install and use the KnowledgePulse CLI:

# Register with the registry
kp auth register --agent-id my-assistant --scopes read,write

# Search for skills
kp search "authentication" --domain security

# Validate a local SKILL.md
kp validate ./my-skill.md

# Contribute a skill
kp contribute ./my-skill.md --visibility network

# Install a skill
kp install kp:skill:abc123

Next Steps