Logo de Cognithor

Cognithor

Communauté
Alex8791-cyber

Cognithor · Agent OS: Local-first autonomous agent operating system. 19 LLM providers, 18 channels, 145 MCP tools, 6-tier memory, Agent Packs marketplace, zero telemetry. Python 3.12+, Apache 2.0.

ÉditeurAlex8791-cyber
Dépôtcognithor
LanguePython
Forks
24
Étoiles
158
Outils disponibles
0
Type de transportstdio
LicenceApache-2.0
Liens
  • Connectez des outils à vos workflows IA

    Cognithor propose des fonctionnalités MCP utilisables par les clients et agents IA compatibles.

  • 0 outils disponibles

    Parcourez les actions invocables ci-dessous, avec leurs noms et descriptions lorsque le serveur les fournit.

  • Configuration prête à copier

    Utilisez les exemples de configuration pour configurer ce serveur dans votre client MCP préféré.

  • Indicateurs de popularité open source

    158 étoiles et 24 forks sur le dépôt associé.

Pre-v1.0 Beta — Cognithor is under active development. APIs may change between releases. Not recommended for production customer-facing deployments. Bug reports and feedback welcome via Issues.

While the test suite is extensive (17,000+ test functions, 89% coverage gate), the project has not been battle-tested in production environments. Expect rough edges, breaking changes between versions, and some German-language strings in system prompts and error messages. See Status & Maturity for details. For non-technical users, wait until version 1.0.0 for stable long-term support.

clawdboard

Vibe-Engineered, not vibe-coded. Cognithor is not a weekend hack held together by AI-generated spaghetti. Every module follows a deliberate architecture (PGE-Trinity, 6-phase gateway init, 3-layer security, TRUST-1..10 operational-trust stack), backed by 17,000+ test functions, structured plans, spec compliance reviews, and code quality gates. The AI writes the code — but a human engineers the system. There's a difference.


Why Cognithor?

Most AI assistants send your data to the cloud. Cognithor runs entirely on your machine — with Ollama or LM Studio, no API keys required. Cloud providers are optional, not mandatory.

It replaces a patchwork of tools with one integrated system: 17 channels, 141 MCP tools across 30 modules, 6-tier memory with 4-channel hybrid search, knowledge vault, voice, browser automation, Computer Use, cross-platform social listening, signed audit receipts (TRUST-1..10), resumable batch workflows (CRWE), TUF-Light-signed pack registry, and more — all wired together from day one. The test suite is extensive (17,000+ test functions, 89% coverage gate). See Status & Maturity for what that does and does not guarantee.

In plain terms: Cognithor is an AI assistant that lives entirely on your computer. You talk to it through your terminal, a web UI, Telegram, Discord, or any of 18 supported channels — and it talks back, remembers what you said last week, and acts on your behalf. It can search the web, write and edit files, run shell commands, control your browser, automate your desktop (clicking, typing, reading windows), manage your calendar, and learn new skills over time. Think of it as a local, private, self-improving Jarvis.

Unlike cloud-based assistants, Cognithor keeps all your data on your machine. Your conversations, memories, documents, and credentials never leave your hardware unless you explicitly configure a cloud LLM provider. It works fully offline with Ollama or LM Studio, and it encrypts everything at rest with SQLCipher (AES-256). If privacy matters to you — and it should — this is the architecture you want.

What makes it different from other local AI tools is that Cognithor is not just a chatbot. It is an agent operating system: it plans multi-step tasks, evaluates its own results, learns from mistakes, and improves autonomously. It can control your desktop through Computer Use (screenshots, clicks, keystrokes, window automation), compete in ARC-AGI-3 reasoning benchmarks, and manage a marketplace of community-contributed skills. It is built to grow with you.


Status & Maturity

Cognithor is Beta / Experimental software. It is under rapid, active development.

AspectStatus
Core agent loop (PGE)Stable — well-tested and functional
Memory systemStable — 6-tier architecture works reliably
CLI channelStable — primary development interface
Flutter Command CenterBeta — Sci-Fi aesthetic, cross-platform, GEPA pipeline visualization, Robot Office pathfinding, 20+ config pages, chat, voice, learning dashboard
Messaging channels (Telegram, Discord, etc.)Beta — basic flows work, edge cases may break
Voice mode / TTSAlpha — experimental, hardware-dependent
Browser automationStable — Playwright-based, CAPTCHA solving, stealth mode
Computer UseStable — 6 phases (Vision, Agent Loop, Planner Intelligence, Security, Robustness, UI Automation)
ARC-AGI-3 BenchmarkBeta — 13/25 games solved (24 levels), 4 solver families incl. SmartExplorer
Skill MarketplaceStable — GitHub registry, 5-check validation, publisher verification
Windows UI AutomationBeta — pywinauto UIA for exact element coordinates
Deployment (Docker, bare-metal)Beta — tested on limited configurations
SSH Remote ExecutionBeta — tested against Docker containers, key-based auth
Evolution EngineStable — all 6 phases complete, autonomous deep learning with quality self-examination, GDPR-compliant
Autonomous Task FrameworkBeta — task decomposition, self-evaluation, recurring scheduling
Background Process ManagerBeta — 6 MCP tools, 5-method ProcessMonitor, SQLite persistence
Multi-Agent SystemBeta — 5 specialized agents with model/temperature/top_p overrides
Audit & ComplianceBeta — HMAC + Ed25519 signatures, RFC 3161 TSA, GDPR Art. 15/33, WORM-ready, hash-chained prev_hash over canonical NFC-JSON, dedicated AuditCategory.REFLECTION channel for autonomous learning (Compliance-Spring v0.98.0)
Resilient Workflow Engine (CRWE)Stable — cognithor task <manifest> with JSONL streaming, atomic checkpoint, file-lock, SIGINT/SIGTERM emergency-checkpoint between tasks, manifest-tamper detection on --resume, audit-chain integration. Crash-recovery integration test passes on Windows under SIGKILL (v0.99.0).
Pack Registry SigningBeta — TUF-Light Ed25519 (offline Root + online Targets) + SHA-256 verifier; marketplace dormant by default until owner mints Root keypair
Video Composition & RenderingBeta — cognithor.video package with pluggable RendererABC; default HyperFrames backend (Apache-2.0); 5 MCP tools (video_compose GREEN, video_render ORANGE, raw HTML RED at Gatekeeper); render-receipt linked to TRUST-1 via run_id; composer prompts + skill templates ship in cognithor.video.skills
Enterprise features (GDPR, A2A, Governance)Stable — GDPR 100% user rights, consent management, SQLCipher encryption, audit trail
Encryption at RestStable — SQLCipher (AES-256) for all databases, Fernet for files, OS Keyring key management
Cross-Platform Social ListeningBeta — Reddit + Hacker News + Discord scanning, LLM-scored leads, unified MCP tools
Hierarchical Document ReasoningBeta — Tree-based retrieval for PDF/DOCX/HTML/Markdown, LLM-navigated section selection
CAG Layer (Cache-Augmented Generation)Beta — Deterministic prefix generation for LLM KV-cache reuse, prefix + native builders
CLI Config TUIStable — Interactive terminal config editor (rich + prompt_toolkit), model discovery
AST-Based SecurityStable — Python AST + bashlex shell analysis replacing regex-based guards
OSINT / HIM ModuleBeta — person/project/org investigation with trust scoring
Observer Audit LayerStable — post-response LLM quality check across 4 dimensions (hallucinations, sycophancy, laziness, tool-ignorance); triggers regeneration or full PGE re-loop; fails open

What the test suite covers: Unit tests, integration tests, property-based tests (Hypothesis), audit-completeness burn-ins (nightly CI), real-life scenario tests, and live Ollama tests for all modules. The 17,000+ test functions verify code correctness in controlled environments.

What the test suite does NOT cover: Real-world deployment scenarios, network edge cases, long-running stability, multi-user load, hardware-specific voice/GPU issues, or actual LLM response quality.

Important notes for users:

  • This project is developed by a solo developer with AI assistance. Code is human-reviewed, but the pace is fast.
  • Breaking changes may occur between minor versions. Pin your version if stability matters.
  • The default language is German, switchable to English via the Flutter Command Center or config.yaml. See Language & Internationalization.
  • For production use, thorough testing in your specific environment is strongly recommended.
  • Bug reports and contributions are welcome — see Issues.

Cognithor is a fully local, Ollama/LM Studio-powered, autonomous agent operating system that acts as your personal AI assistant. All data stays on your machine — no cloud, no mandatory API keys, full GDPR compliance. It supports tasks ranging from research, project management, and knowledge organization to file management and automated workflows. Optional cloud LLM providers (OpenAI, Anthropic, Gemini, and 12 more) can be enabled with a single API key. Users can add custom skills and rules to tailor the agent to their needs.

Table of Contents

Highlights

  • 19 LLM Providers — Ollama (local), LM Studio (local), vLLM (local), llama-cpp-python (local), OpenAI, Anthropic, Google Gemini, Groq, DeepSeek, Mistral, Together AI, OpenRouter, xAI (Grok), Cerebras, GitHub Models, AWS Bedrock, Hugging Face, Moonshot/Kimi, Claude Code — plus any custom OpenAI-compatible endpoint
  • 17 Communication Channels — CLI, Web UI, REST API, Telegram, Discord, Slack, WhatsApp, Signal, iMessage, Microsoft Teams, Matrix, Google Chat, Mattermost, Feishu/Lark, IRC, Twitch, Voice (STT/TTS)
  • 6-Tier Cognitive Memory — Core identity, episodic logs, semantic knowledge graph, procedural skills, working memory, tactical memory
  • 4-Channel Hybrid Search — BM25 full-text + vector embeddings + knowledge graph traversal + hierarchical document reasoning with score fusion
  • PGE Architecture — Planner (LLM) -> Gatekeeper (deterministic policy engine) -> Executor (sandboxed)
  • Crew-Layer (v0.93.0) — high-level Multi-Agent API (from cognithor import Crew, CrewAgent, CrewTask) on top of PGE-Trinity. Async kickoff with parallel fan-out, idempotent replay, guardrails, 5 templates (research, customer-support, data-analyst, content, versicherungs-vergleich).
  • 8-page Quickstart — docs/quickstart/ — from pip install to your first Crew in under 10 minutes, bilingual (DE primary + EN). Includes runnable examples for first-crew, first-tool, first-skill, guardrails, and PKV report.
  • Security — Platform-adaptive sandbox (bubblewrap on Linux, subprocess+timeout fallback), AST-based Python/Shell code analysis (Python ast.NodeVisitor + bashlex parser), SHA-256 audit chain, credential vault, runtime token encryption (Fernet AES-256), Gatekeeper policy engine with GREEN/YELLOW/ORANGE/RED risk classification (not independently audited — see Status & Maturity)
  • Knowledge Vault — Obsidian-compatible Markdown vault with YAML frontmatter, tags, [[backlinks]], full-text search
  • Document Analysis — LLM-powered structured analysis of PDF/DOCX/HTML (summary, risks, action items, decisions)
  • Video Input — Attach local videos (.mp4 / .webm / .mov / .mkv / .avi) or paste direct video URLs; Qwen3.6-27B (or any video-capable VLM) analyzes them end-to-end via vLLM's native video_url content type. Adaptive frame sampling (fps=3 for short clips, num_frames=32 for long) via ffprobe. Single video per turn, served from a 127.0.0.1-only HTTP file server, 24h auto-cleanup. Requires vLLM backend — Windows installer bundles LGPL ffmpeg. See docs/vllm-user-guide.md.
  • VLM Router — Three-tier profile system (fast / balanced / premium) for video and image understanding. Heuristic classifier inspects the user's prompt and clip metadata, picks the right VLM (Qwen3-VL-8B-Instruct → Qwen3-VL-8B-Thinking → Qwen3.6-27B-NVFP4), exposes the routing decision via TRUST-2 (rule_id + matched_pattern) so a receipt reviewer can replay why a particular model was chosen. Override via with router.quality_scope("premium"): or config.vllm.quality_default. ContextVar-isolated for async safety. See src/cognithor/core/vlm_router.py.
  • Video Composition & Rendering — Cognithor doesn't only read videos, it can make them. The cognithor.video package ships a thin RendererABC abstraction with HyperFrames (Apache-2.0) as the default backend; future renderers (Remotion, cloud) can be swapped without touching the MCP-tool layer. Five MCP tools cover the workflow: video_compose (GREEN — pure-function, builds a self-contained HTML composition from a structured spec, no subprocess, no FS write), video_compose_explainer (16:9 title-card + body + CTA preset), video_compose_social_cut (vertical 9:16 hook + fast-cut beats + outro), video_caption_overlay (parallel caption track), and video_render (ORANGE — renders composition HTML to MP4 / MOV / WebM under ~/.cognithor/render/<run_id>/). Raw user-supplied HTML is RED at the Gatekeeper — only structured specs reach the renderer. Render output is linked to the agent run via the same run_id the streaming EventEmitter and TRUST-1 receipt API use, so every frame is provenance-attributable end-to-end. Composer prompts + reusable templates live in cognithor.video.skills (HF-5). VLM video-read can drive composition directly — see VLM-4 smoke at tests/test_video/.
  • Model Context Protocol (MCP) — 141 tools across 30 modules (filesystem, shell, memory, web, browser, media, vault, synthesis, code, skills, documents, social, kanban, identity, evolution, computer-use, sevDesk, A2A and more) — counts auto-generated into docs/integrations/catalog.json on every release
  • Computer Use — Complete desktop automation: screenshots, clicking, typing, scrolling, dragging, Windows UI Automation via pywinauto for exact element coordinates, 3-layer security, adaptive wait
  • ARC-AGI-3 Benchmark Agent — Compete in ARC Prize 2026: 13/25 games solved (24 levels), 4 solver families (ClusterClick, SequenceClick+SimA*, KeyboardDFS, SmartExplorer), persistent game profiles, multimodal vision (qwen3-vl)
  • Distributed Locking — Redis-backed (with file-based fallback) locks for multi-instance deployments
  • Durable Message Queue — SQLite-backed persistent queue with priorities, DLQ, and automatic retry
  • Prometheus Metrics — /metrics endpoint with Grafana dashboard for production observability
  • Skill Marketplace — SQLite-persisted skill marketplace with ratings, search, and REST API
  • Community Skill Marketplace — GitHub-hosted registry with publisher verification (4 trust levels), 5-check validation pipeline, ToolEnforcer runtime sandboxing, async install/search/report
  • Telegram Webhook — Polling + webhook mode with sub-100ms latency
  • Auto-Dependency Loading — Missing optional packages detected and installed at startup
  • Agent-to-Agent Protocol (A2A) — Linux Foundation RC v1.0 with full JSON-RPC 2.0 server/client, Planner-level delegation via MCP tools, auto-discovery, SSE streaming
  • Integrated Chat — Full chat page in the Flutter Command Center with WebSocket streaming, tool indicators, canvas panel, approval banners, and voice mode
  • Flutter Command Center — Cross-platform UI (Flutter 3.41, Web/Desktop/Mobile) with Sci-Fi aesthetic, GEPA pipeline visualization, Robot Office pathfinding, 20+ editable config pages, Observe panel, Knowledge Graph, Voice Mode, Learning Dashboard, Light/Dark theme, 4-language i18n
  • Active Learning & Curiosity — CuriosityEngine detects knowledge gaps, KnowledgeConfidenceManager with time decay and feedback, ActiveLearner processes files in background during idle time
  • Human Feel — Personality Engine (warmth, humor, greetings), sentiment detection (frustrated/urgent/confused/positive), user preference learning, real-time status callbacks, user-friendly German error messages
  • Auto-Detect Channels — Channels activate automatically when tokens are present in .env — no manual config flags needed
  • Knowledge Synthesis — Meta-analysis across Memory + Vault + Web with LLM fusion: knowledge_synthesize (full synthesis with confidence ratings), knowledge_contradictions (fact-checking), knowledge_timeline (causal chains), knowledge_gaps (completeness score + research suggestions)
  • Adaptive Context Pipeline — Automatic context enrichment before every Planner call: BM25 memory search + vault full-text search + recent episodes, injected into WorkingMemory in <50ms
  • Security Hardening — Runtime token encryption (Fernet AES-256) across all channels, TLS support for webhook servers, file-size limits on all upload/processing paths, persistent session mappings in SQLite
  • One-Click Start — Double-click start_cognithor.bat -> browser opens -> click Power On -> done
  • Enhanced Web Research — 4-provider search fallback (SearXNG -> Brave -> Google CSE -> DuckDuckGo), Jina AI Reader for JS-heavy sites, domain filtering, source cross-checking
  • Procedural Learning — Reflector auto-synthesizes reusable skills from successful sessions
  • DAG Workflow Engine — Directed acyclic graph execution with parallel branches, conditional edges, cycle detection, automatic retry. Now wired into the Executor for parallel tool execution
  • Distributed Workers — Capability-based job routing, health monitoring, failover, dead-letter queue
  • Multi-Agent Collaboration — Debate, voting, and pipeline patterns for agent teams
  • i18n Language Packs — JSON-based internationalization with SHA-256 integrity verification, German and English included, extensible to any language
  • Tool Sandbox Hardening — Per-tool resource limits, network guards, escape detection (8 attack categories)
  • GDPR Compliance Toolkit — Data processing logs (Art. 30), retention enforcement, right-to-erasure (Art. 17), audit export
  • ARC-AGI-3 Benchmark — Compete in the ARC Prize 2026 ($2M+ prize pool) via the arc/ module: hybrid agent (algorithmic + LLM + CNN), 3 MCP tools (arc_play, arc_status, arc_replay), CLI mode, swarm mode. pip install cognithor[arc]
  • Multi-Agent Benchmark Scaffold — Reproducible benchmark harness in the top-level cognithor_bench/ package: own pyproject.toml, cognithor-bench CLI, Cognithor + AutoGen adapters
  • Deterministic Replay — Record and replay agent executions with what-if analysis and diff comparison
  • Agent SDK — Decorator-based agent registration (@agent, @tool, @hook), project scaffolding
  • Plugin Remote Registry — Remote manifests with SHA-256 checksums, dependency resolution, install/update/rollback
  • Cross-Platform Social Listening — Reddit + Hacker News (Firebase/Algolia) + Discord (REST API v10) scanning with LLM lead scoring. 2 unified MCP tools (social_scan, social_leads), configurable per-platform intervals, auto-post opt-in
  • Hierarchical Document Reasoning — Tree-based retrieval (4th search channel): 5 parsers (Markdown, PDF, DOCX, HTML, plaintext) build heading trees, LLM-navigated section selection, no embedding required
  • CAG Layer (Cache-Augmented Generation) — Deterministic prefix generation for LLM KV-cache reuse. Prefix builder (Ollama-compatible) + native llama.cpp builder, content normalization, hit-rate metrics
  • CLI Config TUI — Interactive terminal config editor (rich + prompt_toolkit): model discovery from live providers, section navigation, validation, save/discard
  • AST-Based Security Guards — Python ast.NodeVisitor + bashlex shell parser replacing regex-based code analysis. Detects imports, subprocess calls, eval, network access, file operations at the syntax tree level
  • _safe_call() Pattern — Unified error handling replacing silent except Exception: pass. Failure registry with per-function tracking, async variant, circuit-breaker integration
  • uv Installer Support — Automatic uv detection for 10x faster installs, transparent pip fallback
  • Observer Audit Layer — Every response audited against 4 quality dimensions (hallucination, sycophancy, laziness, tool-ignorance) with differentiated retry strategies. Runs locally with qwen3:32b.
  • Operational Trust (TRUST-1..10) — Signed run-receipts (cognithor receipt show / verify / list / export-all / diff), structured Gatekeeper decision-explanations (rule_id + rule_source + matched_pattern), 15-value FailureMode taxonomy, pack rollback, six append-only ledgers (Provenance, Permission-Scopes, Tool-Fingerprints, Cloud-Escalation, Cost in micro-USD, Migration). REST: GET /api/crew/trace/{trace_id}/receipt. See Operational Trust and docs/operational_trust.md
  • Resilient Workflow Engine (CRWE, v0.99.0) — cognithor task <manifest.json> runs declarative batch workflows with JSONL streaming, per-task flush() + os.fsync(), atomic modulo-N .checkpoint.json, .checkpoint.lock (POSIX fcntl.flock / Windows msvcrt.locking), SIGINT/SIGTERM emergency-checkpoint between tasks, manifest-tamper detection on --resume, and audit-chain integration (workflow_resumed / system_checkpoint_created events). Crash-recovery uses results.jsonl line count as source-of-truth.
  • Hash-Chained Audit Log — Every audit event is HMAC-SHA-256 chained to the previous via prev_hash over canonical NFC-normalized JSON. The Reflector ships through a dedicated AuditCategory.REFLECTION channel (Compliance-Spring v0.98.0) with nine event types covering causal sequences, weight snapshots, episodic appends, semantic facts, and procedure auto-creation — verifiable end-to-end with cognithor audit verify. Property-based Hypothesis tests + a nightly burn-in CI keep the chain intact.
  • TUF-Light Pack Registry Signing — Community pack registry uses Ed25519 + SHA-256 (offline Root key, online Targets key) per the TUF-Light spec. Operator runbook: docs/runbooks/registry_key_rotation.md. Marketplace dormant by default until owner mints Root keypair.
  • Integrations Catalog — Auto-generated from src/cognithor/mcp/ — see docs/integrations/catalog.json. DACH-specific: sevDesk REST connector (accounting).
  • Competitive Analysis — docs/competitive-analysis/ — Cognithor vs AutoGen / MAF / LangGraph / CrewAI.
  • 17,000+ test functions · 89% coverage gate · 0 lint errors · 0 CodeQL alerts · mypy --strict clean across the new TRUST + CRWE surface

Architecture

PGE Trinity (Planner -> Gatekeeper -> Executor)

Every user request passes through three stages:

  1. Planner — LLM-based understanding and planning. Analyzes the request, searches memory for relevant context, creates structured action plans with tool calls. Supports re-planning on failures.
  2. Gatekeeper — Deterministic policy engine. Validates every planned tool call against security rules (risk levels GREEN/YELLOW/ORANGE/RED, sandbox policy, parameter validation). No LLM, no hallucinations, no exceptions.
  3. Executor — Executes approved actions via DAG-based parallel scheduling (independent actions run concurrently in waves). Shell commands run isolated (Process -> Namespace -> Container), file access restricted to allowed paths.

6-Tier Cognitive Memory

TierNamePersistencePurpose
1CoreCORE.mdIdentity, rules, personality
2EpisodicDaily log filesWhat happened today/yesterday
3SemanticKnowledge graph + SQLiteCustomers, products, facts, relations
4ProceduralMarkdown + frontmatterLearned skills and workflows
5WorkingRAM (volatile)Active session context
6TacticalSQLiteActive goals, pending actions, rollback

Memory search uses a 4-channel hybrid approach: BM25 (full-text search with FTS5, optimized for German compound words) + Vector Search (Ollama embeddings, cosine similarity) + Graph Traversal (entity relations) + Hierarchical Document Reasoning (tree-based section navigation for long documents). Score fusion with configurable weights and recency decay.

Knowledge Vault

In addition to the 6-tier memory, Cognithor includes an Obsidian-compatible Knowledge Vault (~/.cognithor/vault/) for persistent, human-readable notes:

  • Folder structure: recherchen/, meetings/, wissen/, projekte/, daily/
  • Obsidian format: YAML frontmatter (title, tags, sources, dates), [[backlinks]]
  • 6 tools: vault_save, vault_search, vault_list, vault_read, vault_update, vault_link
  • Open the vault folder directly in Obsidian for graph visualization

Reflection & Procedural Learning

After completed sessions, the Reflector evaluates results, extracts facts for semantic memory, and identifies repeatable patterns as procedure candidates. Learned procedures are automatically suggested for future similar requests.

Computer Use Pipeline

User Goal → CUTaskDecomposer → Sub-Tasks
  → UIA (exact coords) / Vision (fallback)
  → 3-Layer Tool Enforcement
  → Adaptive Wait → Next Iteration

Cognithor can control your desktop like a human: take screenshots, analyze them with a vision model, click at pixel coordinates, type text, scroll, and drag. Phase 3 adds Windows UI Automation via pywinauto, which reads the OS accessibility tree to get exact element coordinates without relying on vision alone. A 3-layer security model (allowlist + gatekeeper + tool enforcer) ensures destructive operations require explicit approval.

Architecture Decision Records

Comparison with Other Frameworks

LLM Providers

Cognithor auto-detects your backend from API keys. Set one key and models are configured automatically:

ProviderBackend TypeConfig KeyModels (Planner / Executor)
Ollama (local)ollama(none needed)qwen3:32b / qwen3:8b
LM Studio (local)lmstudio(none needed)(your loaded models)
vLLM (local, NVIDIA GPU)vllm(none needed)qwen3.6:27b NVFP4 (RTX 5090 / 32 GB VRAM target)
llama-cpp-python (local)llama_cppllama_cpp_base_url(GGUF model loaded by llama.cpp server)
OpenAIopenaiopenai_api_keygpt-5.2 / gpt-5-mini
Anthropicanthropicanthropic_api_keyclaude-opus-4-6 / claude-haiku-4-5
Google Geminigeminigemini_api_keygemini-2.5-pro / gemini-2.5-flash
Groqgroqgroq_api_keyllama-4-maverick / llama-3.1-8b-instant
DeepSeekdeepseekdeepseek_api_keydeepseek-chat (V3.2)
Mistralmistralmistral_api_keymistral-large-latest / mistral-small-latest
Together AItogethertogether_api_keyLlama-4-Maverick / Llama-4-Scout
OpenRouteropenrouteropenrouter_api_keyclaude-opus-4.6 / gemini-2.5-flash
xAI (Grok)xaixai_api_keygrok-4-1-fast-reasoning / grok-4-1-fast
Cerebrascerebrascerebras_api_keygpt-oss-120b / llama3.1-8b
GitHub Modelsgithubgithub_api_keygpt-4.1 / gpt-4.1-mini
AWS Bedrockbedrockbedrock_api_keyclaude-opus-4-6 / claude-haiku-4-5
Hugging Facehuggingfacehuggingface_api_keyLlama-3.3-70B / Llama-3.1-8B
Moonshot/Kimimoonshotmoonshot_api_keykimi-k2.5 / kimi-k2-turbo
Claude Codeclaude-code(uses Claude Code CLI)(Claude Code model)
yaml
# ~/.cognithor/config.yaml — just set one key, everything else is auto-configured
gemini_api_key: "AIza..."
# That's it. Backend, models, and operation mode are auto-detected.

# Or use LM Studio (local, no API key needed):
llm_backend_type: "lmstudio"
# lmstudio_base_url: "http://localhost:1234/v1"  # default

Channels

ChannelProtocolFeatures
CLITerminal REPLRich formatting, streaming, /commands, status feedback
Web UIWebSocketReal-time streaming, voice recording, file upload, dark theme, status events
REST APIFastAPI + SSEProgrammatic access, server-sent events
TelegramBot API (poll + webhook)Text, voice messages (Whisper STT), photos, documents, webhook mode (<100ms), typing indicator
DiscordGateway + RESTEmbeds, reactions, thread support, typing indicator
SlackSocket ModeBlock Kit, interactive buttons, thread support
WhatsAppMeta Cloud APIText, media, location, contacts
Signalsignal-cli bridgeEncrypted messaging, attachments
iMessagePyObjC (macOS)Native macOS integration
Microsoft TeamsBot Framework v4Adaptive cards, approvals
Matrixmatrix-nioFederated, encrypted rooms
Google ChatChat APIWorkspace integration
MattermostREST APISelf-hosted team chat
Feishu/LarkBot APIByteDance enterprise messaging
IRCIRC protocolClassic internet relay chat
TwitchTwitchIOLive stream chat integration
VoiceWhisper + Piper + ElevenLabsSTT, TTS, wake word (Levenshtein), Konversationsmodus, Piper TTS (Thorsten Emotional)

Quick Start

Under 5 minutes from download to running agent.

Option A: Windows Installer (recommended for Windows users)

  1. Download CognithorSetup-{version}.exe from the latest release
  2. Run the installer — it bundles Python, Ollama, Flutter UI, and all dependencies
  3. Launch via Desktop shortcut or Start Menu
  4. Done — browser opens at http://localhost:8741

The installer auto-detects your GPU, downloads the right models, and runs a health check. No prerequisites needed.

Option B: Linux / macOS / Source Install

bash
# Clone
git clone https://github.com/Alex8791-cyber/cognithor.git
cd cognithor

# Linux/macOS: Interactive installer (venv, Ollama, models, systemd)
chmod +x install.sh && ./install.sh

# Windows (from source): Double-click install.bat

# Or manual: pip install
pip install -e ".[all,dev]"

Option C: PyPI (any platform)

bash
pip install cognithor               # Core only: PGE, CLI, Ollama
pip install cognithor[telegram]     # + Telegram channel
pip install cognithor[web]          # + Web UI (Flutter Command Center)
pip install cognithor[all]          # Everything (large install)
ollama pull qwen3:8b                # Pull a model
cognithor                           # Start

# Upgrade to a specific version:
pip install cognithor[all]==0.99.0

# Upgrade to latest:
pip install --upgrade cognithor[all]

Prerequisites (Option B/C only)

  • Python >= 3.12
  • Ollama (local, free) or any cloud LLM API key (OpenAI, Anthropic, Gemini, etc.)

After Installation: Pull Models

bash
ollama pull qwen3:32b              # Planner (20 GB VRAM)
ollama pull qwen3:8b               # Executor (6 GB VRAM)
ollama pull qwen3-embedding:0.6b   # Embeddings (500 MB VRAM)

No GPU? Use qwen3:8b for both, or set a cloud API key — models are auto-configured.

Uninstall: Windows: run uninstall.bat. Linux: ./install.sh --uninstall. PyPI: pip uninstall cognithor.

Start (~10 sec)

Option A: One-Click (Windows) — includes a pre-built Web UI, no Node.js needed

Double-click  start_cognithor.bat  ->  Browser opens  ->  Click "Power On"  ->  Done.

The launcher auto-installs Python and Ollama via winget if missing. Node.js is only needed for UI development (npm run dev).

Option B: CLI

bash
cognithor                          # Interactive CLI
python -m cognithor                   # Same thing (always works, no PATH needed)

python -m cognithor --lite            # Lite mode: qwen3:8b only (6 GB VRAM)
python -m cognithor --no-cli          # Headless mode (API only)
COGNITHOR_HOME=~/my-cognithor cognithor  # Custom home directory

Windows: If cognithor is not recognized after pip install, use python -m cognithor instead — this always works regardless of PATH configuration. Alternatively, add Python's Scripts directory to your PATH (typically %APPDATA%\Python\PythonXY\Scripts or the Scripts folder inside your venv).

Option C: Flutter Command Center (Development)

bash
cd flutter_app
flutter pub get
flutter run       # Desktop, or:
flutter run -d chrome  # Web

The Flutter Command Center connects to the Python backend on port 8741. Start the backend first (python -m cognithor --no-cli), then launch the Flutter app. The Chat page opens as the default start page — start talking to Cognithor immediately, or activate Voice Mode for hands-free conversation. The Sci-Fi aesthetic features dark translucent panels, neon accents, and GEPA pipeline visualization.

All configuration — agents, prompts, cron jobs, MCP servers, A2A settings — can be edited and saved through the dashboard. Changes persist to YAML files under ~/.cognithor/.

Legacy React UI (deprecated): The old React + Vite UI in ui/ is deprecated and will be removed in a future release. Use the Flutter Command Center instead.

Windows users: A desktop shortcut named Cognithor is included for convenience.

Channel Auto-Detection

Channels start automatically when their tokens are found in ~/.cognithor/.env:

bash
# ~/.cognithor/.env — just add your tokens, channels activate automatically
COGNITHOR_TELEGRAM_TOKEN=your-bot-token
COGNITHOR_TELEGRAM_ALLOWED_USERS=123456789
COGNITHOR_DISCORD_TOKEN=your-discord-token
COGNITHOR_SLACK_TOKEN=xoxb-your-slack-token

No need to set telegram_enabled: true in the config — the presence of the token is sufficient.

Directory Structure (Auto-Created on First Start)

~/.cognithor/
├── config.yaml          # User configuration
├── CORE.md              # Identity and rules
├── memory/
│   ├── episodes/        # Daily log files
│   ├── knowledge/       # Knowledge graph files
│   ├── procedures/      # Learned skills
│   └── sessions/        # Session snapshots
├── vault/               # Knowledge Vault (Obsidian-compatible)
│   ├── recherchen/      # Web research results
│   ├── meetings/        # Meeting notes
│   ├── wissen/          # Knowledge articles
│   ├── projekte/        # Project notes
│   ├── daily/           # Daily notes
│   └── _index.json      # Quick lookup index
├── index/
│   └── cognithor.db     # SQLite index (FTS5 + vectors + entities)
├── hierarchical/
│   └── trees.db         # Hierarchical document trees (SQLite)
├── cag/
│   └── cache.db         # CAG prefix cache (SQLite)
├── mcp/
│   └── config.yaml      # MCP server configuration
├── queue/
│   └── messages.db      # Durable message queue (SQLite)
└── logs/
    └── cognithor.log    # Structured logs (JSON)

CLI Commands

Once Cognithor is running, you can use these slash commands in the chat:

CommandDescription
/helpShow available commands
/statusShow system status
/versionShow version
/configOpen interactive config editor
/uiOpen web UI in browser
/clearClear screen
/quitExit Cognithor

Startup Flags

FlagDescription
cognithorStart with CLI chat
cognithor --uiStart headless + auto-open browser
cognithor --no-cliHeadless backend only
cognithor configOpen config editor (one-shot)
cognithor config set KEY VALSet a config value
cognithor --liteLite mode (6GB VRAM)
cognithor --log-level DEBUGVerbose logging

Configuration

Cognithor is configured via ~/.cognithor/config.yaml. All values can be overridden with environment variables using the COGNITHOR_ prefix (JARVIS_* still accepted as legacy alias).

yaml
# Example: ~/.cognithor/config.yaml
owner_name: "Alex"
language: "de"  # "de" (German, default) or "en" (English)

# LLM Backend — set a key, backend is auto-detected
# openai_api_key: "sk-..."
# anthropic_api_key: "sk-ant-..."
# gemini_api_key: "AIza..."
# groq_api_key: "gsk_..."
# xai_api_key: "xai-..."
# Or: llm_backend_type: "lmstudio"  # Local, no key needed

ollama:
  base_url: "http://localhost:11434"
  timeout_seconds: 120

web:
  # Search providers (all optional, fallback chain: SearXNG -> Brave -> Google CSE -> DDG)
  # searxng_url: "http://localhost:8888"
  # brave_api_key: "BSA..."
  # google_cse_api_key: "AIza..."
  # google_cse_cx: "a1b2c3..."
  # jina_api_key: ""              # Optional, free tier works without key
  # domain_blocklist: []          # Blocked domains
  # domain_allowlist: []          # If set, ONLY these domains allowed

vault:
  enabled: true
  path: "~/.cognithor/vault"
  # auto_save_research: false     # Auto-save web research results

channels:
  cli_enabled: true
  # Channels auto-detect from tokens in ~/.cognithor/.env
  # Set to false only to explicitly disable a channel:
  # telegram_enabled: false

security:
  allowed_paths:
    - "~/.cognithor"
    - "~/Documents"

# Personality
personality:
  warmth: 0.7                    # 0.0 = sachlich, 1.0 = sehr warm
  humor: 0.3                     # 0.0 = kein Humor, 1.0 = viel Humor
  greeting_enabled: true          # Tageszeit-Grüße
  follow_up_questions: true       # Rückfragen anbieten
  success_celebration: true       # Erfolge feiern

# Scaling
distributed_lock:
  backend: "file"                 # "redis" or "file"
  # redis_url: "redis://localhost:6379/0"

message_queue:
  enabled: true
  # max_retries: 3
  # dlq_enabled: true

telemetry:
  prometheus_enabled: true
  # metrics_port: 9090

Security

Cognithor implements multi-layered security (not independently audited):

FeatureDescription
GatekeeperDeterministic policy engine (no LLM). 4 risk levels: GREEN (auto) -> YELLOW (inform) -> ORANGE (approve) -> RED (block)
Sandbox4 isolation levels: Process -> Linux Namespaces (nsjail) -> Docker -> Windows Job Objects
Audit TrailAppend-only JSONL with SHA-256 chain. Tamper-evident. Credentials masked before logging
Credential VaultFernet-encrypted, per-agent secret storage
Runtime Token EncryptionAll channel tokens (Telegram, Discord, Slack, ...) encrypted in memory with ephemeral Fernet keys (AES-256). Never stored as plaintext in RAM
TLS SupportOptional SSL/TLS for all webhook servers (Teams, WhatsApp, API, WebUI). Minimum TLS 1.2 enforced. Warning logged for non-localhost without TLS
File-Size LimitsUpload/processing limits on all paths: 50 MB documents, 100 MB audio, 1 MB code execution, 50 MB WebUI uploads
Session PersistenceChannel-to-session mappings stored in SQLite (WAL mode). Survives restarts — no lost Telegram/Discord sessions
Input SanitizationInjection protection for shell commands and file paths
Sub-Agent Depth GuardConfigurable max_sub_agent_depth (default 3) prevents infinite handle_message() recursion
SSRF ProtectionPrivate IP blocking for http_request and web_fetch tools
EU AI ActCompliance module, impact assessments, transparency reports
Red-TeamingAutomated offensive security tests (1,425 LOC)

GDPR Compliance (Privacy by Design) — 100% User Rights

Cognithor implements GDPR compliance at the architecture level with full coverage of all user rights:

  • Consent Management — Per-channel consent with versioning. No data processing without explicit consent.
  • ComplianceEngine — Runtime enforcement gate. Fail-closed design: blocks processing if consent store unavailable.
  • Art. 15 (Access) — Complete export across 11 data tiers (sessions, vault, entities, relations, episodes, procedures, core memory, preferences, processing logs, model usage, consents). JSON + CSV formats.
  • Art. 16 (Rectification) — PATCH /api/v1/user/data for entities, preferences, vault notes.
  • Art. 17 (Erasure) — DELETE /api/v1/user/data with 7 erasure handlers covering all data tiers including vault notes.
  • Art. 18/21 (Restriction) — Per-purpose restriction (evolution, cloud_llm, memory, osint) via REST API + ComplianceEngine enforcement.
  • Art. 20 (Portability) — Export format v2.0 cognithor_portable + POST /api/v1/user/data/import.
  • Encryption at Rest — SQLCipher (AES-256) for all 33 SQLite databases, Fernet for memory files, OS Keyring key management.
  • Audit Trail — Append-only, SHA-256-chained compliance log with tamper detection.
  • TTL Enforcement — Automated daily retention enforcement via cron.
  • Privacy Mode — Runtime toggle disabling all persistent storage.
  • Processing Register — Art. 30 compliant register of all 13 processing activities.

Operational Trust (TRUST-1..10)

Since v0.97.0, every audit-relevant decision the agent makes is captured as a structured, queryable, signed receipt rather than a free-form log string. The canonical reference is docs/operational_trust.md.

Receipt CLI

bash
cognithor receipt show <run_id> --include-trust --sign-key $KEY      # full bundle
cognithor receipt verify path/to/bundle.json --sign-key $KEY         # round-trip check
cognithor receipt list --since 2026-05-01                            # enumerate run-ids
cognithor receipt export-all --since 2026-05-01 --out ./bundles/     # batch export
cognithor receipt diff bundle-A.json bundle-B.json                   # structural diff

The same bundle is also reachable via REST (owner-token gated):

bash
curl -H "X-Cognithor-User: $COGNITHOR_OWNER_USER_ID" \
  "http://localhost:8741/api/crew/trace/<trace_id>/receipt?include_trust=true"

Trust Ledgers

TierModuleWhat it captures
TRUST-1cognithor.audit.AuditLogger.run_receipt()Deterministic per-run JSON bundle; optional HMAC-SHA-256 signature
TRUST-2DecisionExplanation (in core/gatekeeper.py)rule_id, rule_source, matched_pattern for every block decision (12 sites)
TRUST-3FailureMode (15 values) + failure_mode_summary()Canonical taxonomy across runs
TRUST-4cognithor pack rollbackRestores a pack to a prior cached version; seals into audit chain
TRUST-5cognithor.memory.provenance.ProvenanceLedger9 memory-tier capture sites; source_type + source_id + expiry_policy
TRUST-6cognithor.security.permission_scope.ScopeRegistryLeast-privilege per axis (filesystem / network / llm / tool)
TRUST-7cognithor.security.fingerprint.FingerprintLedger4 of 5 kinds: TOOL, PACK, MODEL, SCHEMA (BINARY feature-flagged)
TRUST-8cognithor.security.cloud_escalationMetadata-only: ledger never stores prompt or response payloads
TRUST-9cognithor.security.cost_ledger.CostEntryInteger micro-USD canonical unit (no float rounding drift)
TRUST-10cognithor.security.migration_ledgerPer-domain chain integrity; corruption in one domain doesn't poison others

All six TRUST-5..10 ledgers are append-only frozen-dataclass + StrEnum + JSON-serialisable. Capture is best-effort (contextlib.suppress(Exception)), so a ledger fault cannot brick the calling tier. The composer cognithor.security.trust_bundle.build_trust_bundle(run_id) folds all six into a single canonical block under bundle["trust"].

Status: in-memory persistence only this release. Disk persistence (SQLCipher) + retention windows + TRUST-7 BINARY capture + TRUST-8 backend-dispatch wiring + a Flutter TrustBundlePanel ship in 0.98.x. See Sprint-27 IDE-Integration plan for the consuming-extension roadmap.

Registry Trust Model (PACK-4)

The community-skill marketplace uses a self-managed Ed25519 + TUF-Light signing scheme — no third-party witness, no Sigstore dependency, EU- sovereign by design.

  • Offline Root key signs root.json, which delegates to a rotating online Targets key. root.json carries a monotonic version and a valid_until window so a stale-replay attacker cannot freeze a recall mid-flight.
  • Targets-key rotation is transparent: a fresh Targets pubkey lands in a new root.json, signed by the offline Root. Clients pick it up on next sync.
  • Hard-fail on every signature/freshness/replay error — kill-switch must reach clients reliably.
  • No --accept-unsigned-registry runtime flag (would be a downgrade vector). REQUIRE_SIGNED_REGISTRY is a build-time constant.

Utilisez le serveur MCP Cognithor avec plusieurs modèles IA

TypingMind connecte les outils MCP au niveau de l’espace de travail. Une fois Cognithor connecté, vous pouvez donc l’utiliser avec différents modèles IA dans TypingMind sans avoir à le configurer séparément pour chaque modèle. Cette intégration MCP s’exécute localement sur votre appareil via le connecteur MCP de TypingMind.

Guide de configuration du connecteur local

Choisissez cette méthode si le serveur MCP doit accéder à des fichiers locaux, à des applications ou à des ressources privées sur votre ordinateur.

1

Ouvrir les paramètres MCP

Dans TypingMind, accédez à « Paramètres », puis à « Paramètres avancés » et à « Model Context Protocol », et choisissez « Configurer connecteur ».

  1. Ouvrez TypingMind dans votre navigateur.
  2. Cliquez sur l’icône Paramètres.
  3. Accédez aux paramètres avancés.
  4. Ouvrez la section Model Context Protocol.
  5. Cliquez sur « Configurer connecteur » et choisissez « Cet appareil ».
Écran de configuration du connecteur MCP de TypingMind avec l’option « Cet appareil » sélectionnée
2

Exécuter la commande du connecteur

Choisissez « Cet appareil », copiez la commande depuis TypingMind et exécutez-la dans Terminal. Laissez le processus en cours d’exécution pendant que vous utilisez MCP.

  1. Copiez la commande de configuration affichée par TypingMind.
  2. Ouvrez Terminal sur macOS ou Windows Terminal sur Windows.
  3. Collez et exécutez la commande.
  4. Autorisez l’installation du paquet si Terminal vous demande de confirmer.
  5. Gardez la fenêtre de Terminal ouverte et le processus en cours d’exécution pendant que vous utilisez les outils MCP.
3

Ajoutez Cognithor en tant que serveur

Lorsque l’état du connecteur affiche « Prêt », cliquez sur « Éditer serveurs » et collez la configuration du serveur MCP.

  1. Attendez que l’état du connecteur affiche « Prêt ».
  2. Cliquez sur « Éditer serveurs ».
  3. Collez la configuration du serveur MCP Cognithor.
  4. Enregistrez la liste des serveurs.
  5. Actualisez pour vérifier que le connecteur est toujours prêt.
Paramètres MCP de TypingMind affichant un serveur actif et le bouton « Éditer serveurs »
{
  "mcpServers": {
    "cognithor": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Utiliser la connexion avec différents modèles

Enregistrez la liste des serveurs, ouvrez « Plugins », activez les outils MCP de Cognithor, puis sélectionnez un modèle IA compatible dans TypingMind et utilisez les outils dans une discussion ou attribuez-les à un agent IA.

  1. Ouvrez la page Plugins dans TypingMind.
  2. Activez les outils MCP de Cognithor.
  3. Démarrez une discussion et choisissez le modèle IA que vous souhaitez utiliser.
  4. Utilisez les outils MCP dans le chat ou attribuez-les à un agent IA.
  5. Passez à un autre modèle IA selon vos besoins sans rétablir la connexion MCP.
Discussion TypingMind utilisant des outils MCP activés avec un modèle d’IA sélectionné
Pouvez-vous utiliser Cognithor pour m’aider dans cette tâche ?
Cognithor
Bien sûr. J’ai tout lu.
Voici ce que j’ai trouvé avec Cognithor.

Foire aux questions

À quoi sert le serveur MCP Cognithor ?

Cognithor est un serveur MCP qui permet aux applications IA compatibles d’accéder à des outils et à des informations contextuelles externes. Dans TypingMind, il vous suffit d’ajouter ce serveur MCP une seule fois pour rendre ses outils disponibles dans votre espace de travail IA.

Puis-je utiliser le serveur MCP Cognithor avec plusieurs modèles IA dans TypingMind ?

Oui. TypingMind connecte les outils MCP au niveau de l’espace de travail. Vous pouvez donc utiliser Cognithor avec différents modèles IA comme Claude, ChatGPT, Gemini ou d’autres modèles configurés dans TypingMind, sans avoir à configurer le serveur MCP séparément pour chaque modèle.

Pourquoi utiliser le connecteur MCP Cognithor avec TypingMind ?

TypingMind est l’une des meilleures interfaces de chat avec les LLM, car elle réunit plusieurs modèles IA, prompts, plugins, agents IA, clés API et outils MCP dans un seul espace de travail. Une fois Cognithor connecté, vous pouvez utiliser ses outils MCP avec vos modèles préférés tout en gardant vos discussions bien organisées dans TypingMind.

Comment connecter le serveur MCP Cognithor à TypingMind ?

Cognithor fonctionne via le connecteur MCP local de TypingMind. C’est l’option idéale lorsque le serveur MCP doit accéder à des fichiers locaux, des applications de bureau, des outils en ligne de commande ou des ressources privées sur votre ordinateur.

Quels outils le serveur MCP Cognithor propose-t-il dans TypingMind ?

Cognithor propose des fonctionnalités MCP que vous pouvez activer depuis la page Plugins de TypingMind et utiliser dans les discussions ou attribuer à des agents IA.

Dois-je partager mes clés API avec TypingMind pour utiliser le serveur MCP Cognithor ?

Non. TypingMind privilégie le fonctionnement local et vous permet de garder le contrôle de vos fournisseurs de modèles, clés API, prompts et paramètres MCP. Si Cognithor nécessite une authentification, ajoutez les en-têtes, les paramètres OAuth ou la configuration locale requis pour ce serveur MCP lors de la création de la connexion.

Serveurs MCP similaires

Tout voir

Créez votre propre espace IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇