Cadenya
Freemium
Developers building agentic workflows
Most LLM research libraries force you to choose between low-level flexibility and high-level agent abstractions — and whichever you pick, you eventually need the other. npcpy bets you need both in the same import.
npcpy is a MIT-licensed Python library built around three primitives: Context, Agent (NPC), and Tool — which you compose to wire up single agents or multi-agent teams running against local runtimes like Ollama and llama.cpp or cloud providers. The library's knowledge graph support and multimodal LLM integration live in the same package, so a research prototype doesn't require stitching together three separate dependencies. Where it starts to strain is at the integration surface: documentation is sparse for anything beyond the happy path, and production observability — logging, tracing, failure recovery — is not built in. Teams moving from research prototype to a production deployment will find themselves reaching for additional infrastructure the library does not provide.
Bottom line: Pick npcpy when you need a flexible Python primitive set for multimodal agent and knowledge graph research; plan a different stack when you need production-grade observability, error recovery, or a team without Python depth to maintain it.
Find your fit
More options in Agent Frameworks. Compare pricing, platforms, and features side by side.
Freemium
Developers building agentic workflows
Free · Open source
Long-term continuity in multi-session coding projects
npcpy is a Python library that provides primitives — Context, Agent, and Tool — for building agentic AI systems, multimodal LLM applications, and knowledge graph pipelines. The core workflow is code-first: you define NPC agents with custom directives, wire them into teams, and route tasks through them using the library’s composition model. Local inference runtimes (Ollama, llama.cpp, LM Studio, mlx) and cloud providers are both supported as backends, swappable at the configuration level.
The differentiating feature is the pairing of agent primitives with knowledge graph support in a single library. Most agent frameworks treat memory and retrieval as external concerns you bolt on. npcpy treats knowledge graph integration as a first-class primitive — which matters for researchers building agents that need structured world models rather than flat vector retrieval.
The library fits cleanly into research and early-stage development workflows where a developer needs to move fast across different LLM backends and doesn’t want to maintain separate packages for agents, multimodal inputs, and graph data. The ceiling appears when a project needs production-grade concerns: built-in tracing, structured error handling across multi-agent runs, or a visual interface for non-engineers to inspect or modify agent behavior. None of those are present. Teams that hit that wall typically layer their own logging infrastructure on top or migrate agent orchestration to a framework with more production surface area.
Installation is via pip (`pip install npcpy`). The repository includes example NPC projects, a skills directory, and test scaffolding. The MIT license means no commercial restrictions — self-hosting, forking, and internal deployment are all unrestricted.
Sign in to rate this tool or suggest an edit.