Back to Home
NPC-Worldwide icon

npcpy

by NPC-Worldwide

Overview

Core library of the NPC Toolkit that supercharges natural language processing pipelines and agent tooling. It's a flexible framework for building state-of-the-art applications and conducting novel research with LLMs. Supports multi-agent systems, fine-tuning, reinforcement learning, genetic algorithms, model ensembling, and NumPy-like operations for AI models (NPCArray). Includes a built-in Flask server for deploying agent teams via REST APIs, and multimodal generation (image, video, audio).

Installation

Run Command
python examples/team_serve_example.py

Environment Variables

  • OPENAI_API_KEY
  • ANTHROPIC_API_KEY
  • DEEPSEEK_API_KEY
  • GEMINI_API_KEY
  • PERPLEXITY_API_KEY
  • NPCSH_DB_PATH
  • NPCSH_CHAT_MODEL
  • NPCSH_CHAT_PROVIDER
  • NPCSH_API_URL
  • NPCSH_GGUF_DIR
  • CORS_ORIGINS
  • PYTHONWARNINGS
  • SDL_AUDIODRIVER

Security Notes

The system allows execution of arbitrary Python code within Jinx steps and direct shell commands generated by LLMs via `subprocess.run(..., shell=True)`. This creates severe command injection and remote code execution vulnerabilities if not rigorously sandboxed. The Flask server exposes various endpoints for executing commands, Jinxs, ML models, and fine-tuning, often without explicit authentication mechanisms shown in examples, making it vulnerable to unauthorized access and execution. Deserialization of untrusted data via `pickle.loads` in ML functionalities also poses a risk.

Similar Servers

Stats

Interest Score100
Security Score2
Cost ClassHigh
Avg Tokens2000
Stars1170
Forks79
Last Update2026-01-18

Tags

LLM FrameworkAgent SystemMulti-AgentAI ToolkitFine-tuningReinforcement LearningGenetic AlgorithmsModel EnsemblingNLP PipelinesMultimodal AIREST APILocal LLMOllamaTool CallingJinja WorkflowsPrompt EngineeringDesktop AutomationKnowledge Graph