One router. Allowlisted open-source capabilities.
Pak-LLM uses popular GitHub and Hugging Face projects through a policy-aware capability router. A task is first checked against guardrails, general/special instructions and RAG/knowledge context. Only then is a capability selected and returned as an approval-gated MCP tool, browser DOM action, or desktop bridge action.
Routing order
Prompt-injection check → RAG context → explicit knowledge-base requests → domain tools (FBR, SBP, Daraz, legal, Quran, Gmail/Sheets, Microsoft 365, WhatsApp, charts, statistics, calculators, prayer, courier, deep research) → scored open-source capabilities → clarification. Google searches become a direct Google URL action.
The same policy is available as a JSON API at POST /api/agent/capabilities and as the MCP tool open_source_capability_router.
Browser automation
Playwright Browser Automation
hybridReliable browser automation for navigation, forms, screenshots and same-tab DOM actions.
Browser Use (agentic browsing)
desktopMulti-step autonomous browser tasks, ideal for research and web workflows.
Computer use & desktop
UI-TARS Computer Use
desktopHF: ByteDance-Seed/UI-TARS-7B-DPO
GUI grounding and desktop action planning across applications and windows.
Microsoft OmniParser
serverHF: microsoft/OmniParser-v2.0
Parses screenshots into interactive UI elements for grounded computer-use actions.
Vision & UI grounding
Qwen2.5-VL Vision Language Model
serverHF: Qwen/Qwen2.5-VL-72B-Instruct
Multimodal screen understanding, OCR, charts and visual grounding.
Xenova YOLOS-Tiny UI Region Scanner
clientHF: Xenova/yolos-tiny
Fast in-browser UI region detection for Set-of-Mark grounding.
Research & web
SearXNG Meta Search
serverPrivacy-preserving multi-engine web search.
Crawl4AI
serverLLM-friendly web crawling and extraction.
RAG & knowledge
LlamaIndex RAG Orchestration
serverHybrid retrieval over sovereign collections with citations and reranking.
Haystack Retrieval Pipelines
serverComposable retrieval, reranking and reader pipelines.
pgvector Semantic Store
serverSovereign PostgreSQL vector storage for RAG collections.
BGE-M3 Embeddings & Reranker
serverHF: BAAI/bge-m3
Multilingual dense/sparse embeddings for Urdu and English retrieval.
Documents & OCR
Docling Document Intelligence
serverPDF/DOCX/PPTX parsing with layout, tables and reading order.
Marker PDF Conversion
serverHigh-fidelity PDF to Markdown conversion, tables and equations.
PaddleOCR
serverMultilingual OCR for scanned documents and screenshots.
Code & sandboxes
OpenHands Coding Agent
serverSandboxed software-engineering agent for code changes and tests.
Aider Pair Programmer
desktopRepository-aware pair programming and patch generation.
E2B Code Sandboxes
serverEphemeral cloud sandboxes for data analysis and code execution.
Voice
OpenAI Whisper Speech Recognition
serverMultilingual speech-to-text including Urdu and Roman Urdu.
Media generation
Hugging Face Diffusers
serverImage and video generation pipelines.
Orchestration
LangGraph Agent Orchestration
serverStateful multi-step agent graphs with checkpoints and human gates.
Model Context Protocol Servers
serverStandard tool protocol for connectors and external systems.
Model Context Protocol Tool Broker
serverRoutes the task to an allowlisted Pak-LLM MCP connector with Amanah policy, HITL and audit controls.
Guardrails & safety
Llama Guard Safety Classifier
serverHF: meta-llama/Llama-Guard-3-8B
Classifies prompts and responses against safety categories.
Meta Prompt Guard
serverHF: meta-llama/Prompt-Guard-86M
Detects prompt injection and jailbreak attempts.
NVIDIA NeMo Guardrails
serverProgrammable rails for dialogue, tool and topic control.
Execution is always approval-gated
Selecting a capability never executes it. The action is proposed with a risk level, audit ID and server-signed HITL token. You must approve it, and the executor then verifies the token before any browser, desktop or MCP action runs.