Repository avatar
AI Tools
v2.4.0
active

piyapi

io.github.Negentro-ai/piyapi

Long-term memory for AI agents: store, search and ask over each user's memories.

Documentation

PiyAPI SDKs and integrations

piyapi-mcp-server MCP server

Client libraries and app integrations for PiyAPI by Negentro, the memory layer for AI agents: 84.1% on BEAM-1M, 93.6% on LongMemEval-S and 97% fewer tokens than the full history, with every answer published.

Start for free · Docs · Benchmarks

Packages

PackageForInstall
@piyapi/sdkTypeScript and JavaScriptnpm install @piyapi/sdk
piyapi-memoryPythonpip install piyapi-memory
@piyapi/mcp-serverClaude Code, Cursor, Codex, Claude Desktop, VS Code, Windsurf, Zed and other MCP clientsnpx -y @piyapi/mcp-server install cursor --api-key YOUR_KEY
@piyapi/ai-sdkVercel AI SDK: memory middleware and toolsnpm install @piyapi/ai-sdk ai zod
piyapi-langchainLangChain vector storepip install piyapi-langchain
piyapi-langgraphLangGraph long-term memory storepip install piyapi-langgraph
piyapi-llamaindexLlamaIndex memory blockpip install piyapi-llamaindex
@piyapi/memory-widgetA web component that lets your users see, correct and forget what is remembered about themnpm install @piyapi/memory-widget

integrations/ holds ready-made plugins, extensions, rules and configuration for Claude Code, Claude Desktop, the Claude API, Antigravity, Gemini CLI, Codex, the OpenAI APIs, Cursor, VS Code, Windsurf and Zed.

Quick start

import { PiyAPIClient } from "@piyapi/sdk";

const client = new PiyAPIClient({ apiKey: process.env.PIYAPI_API_KEY! });

await client.memories.create({ content: "User prefers concise answers", namespace: "user_123" });

const { results } = await client.search.semantic("How should I format replies?", {
  namespace: "user_123",
  limit: 5,
});
from piyapi_memory import PiyAPIClient

client = PiyAPIClient(api_key="YOUR_PIYAPI_API_KEY")
client.create_memory(content="User prefers concise answers", namespace="user_123")
results = client.hybrid_search(query="How should I format replies?", namespace="user_123", limit=5)

Development

Each package builds and tests on its own: npm install && npm test in an npm package, pip install -e ".[dev]" && pytest in a Python one. Issues and pull requests are welcome.

Licence

MIT, see LICENSE.

NPM
@piyapi/mcp-server
Install Command
npm install @piyapi/mcp-server
Runtime: npx