Autonomous AI Agent System | Orythix Cognitive Architecture | Virtual Intelligence Knowledge Interface
Polymorphic Intelligence | Recursive Governance | Autonomous Self-Forging
VIKI is a proprietary autonomous AI agent and Sovereign Digital Intelligence for absolute privacy and local-first operation. Run with Ollama, Phi-3, Mistral, or DeepSeekβno cloud required. Uses the Orythix Cognitive Architecture for deep reasoning, multi-tool orchestration, and recursive self-improvement without leaking your data.
Features β’ Architecture β’ Quick Start β’ Security
Pre-release: VIKI is in active development. We welcome feedback and bug reports via GitHub Issues. Set VIKI_API_KEY and see SECURITY_SETUP.md before exposing the API.
VIKI is a Sovereign Digital Intelligence designed to be more than just an assistantβshe is a partner that evolves alongside your workflow. Built on a foundation of local-first privacy and deterministic governance, VIKI balances the raw power of LLMs with the safety of a modular, capability-aware architecture.
- Intelligence Governance: Powered by the Judgment Engine. Every directive is filtered through a cognitive triage (Reflex, Shallow, Deep) to ensure the right model is used for the right task while maintaining absolute safety.
- The Neural Forge: A integrated pipeline in the core kernel. VIKI extracts "Wisdom" from her SQLite-backed semantic memory and automatically forges new, project-aware model variants (e.g.,
viki-evolved) based on Phi-3, Mistral, and DeepSeek-R1. - Capability-Aware Execution: Granular permission gating. Skills like
filesystem_writeandshell_execare managed by a centralizedCapabilityRegistry, ensuring high-risk actions never bypass security protocols. - Recursive Self-Reflection: Utilizing the Reflection Layer, VIKI critiques her own plans before execution, reducing hallucinations and improving tool-use accuracy.
- Unified Persistence Layer: A multi-tiered SQLite architecture that allows VIKI to retain project context, user preferences, and historical lessons without the overhead of legacy JSON files.
VIKI is not a generic assistant. It is differentiated by:
- Local Neural Forge: Evolves model variants from your interactions and lessonsβno cloud training.
- Orythix governance: Ethical governor, judgment engine, and capability gating keep behavior deterministic and auditable.
- Reflex layer: Fast, low-latency intent recognition for habitual tasks without full deliberation.
- Air-gap capable: Run with no external API calls; all reasoning and evolution stay on your machine.
One codebase, multiple specialized βVIKIsβ. Switch by setting system.persona in viki/config/settings.yaml or the VIKI_PERSONA environment variable.
| Persona | Focus | Use when |
|---|---|---|
| sovereign | Full capability (default) | You want all skills and no filter. |
| dev | Coding, Forge, shell, FS | You want a local-first coding partner. |
| research | Search, recall, browser | You want accurate, cited research. |
| home | Calendar, email, media, voice | You want a life/productivity assistant. |
Example: VIKI_PERSONA=dev python viki/main.py runs VIKI Dev with only dev-focused skills.
Like universal agents that deliver finished work (e.g. Manus), VIKI delivers complete artifacts, not just suggestions:
- Data analysis: Load CSV/Excel, describe stats, visualize (charts), optional LLM summary (
data_analysisskill). - Presentations: Generate PowerPoint (PPTX) from an outline or from natural language (
presentationskill). - Spreadsheets: Create or update XLSX and CSV from headers/rows or list-of-dicts (
spreadsheetskill). - Websites: Static site scaffold or custom pages (HTML/CSS) in the workspace (
websiteskill). - Existing: PDF edit, image generation, research, code execution (sandboxed), browser automation.
VIKI goes further: voice (TTS/STT), smart home (e.g. Hue), Obsidian vault, tasks (file or Things 3), Twitter, Whisper transcription, unified messaging (Telegram, Discord, Slack, WhatsApp), local Neural Forge, Orythix governance, and air-gap capable operation. The API exposes subtasks and total_steps for task progress; the CLI emits progress events during multi-step ReAct.
VIKI is no longer confined to a single terminal. She is a multi-platform autonomous presence:
- Unified Messaging Nexus: Simultaneous integration with Telegram, Discord, Slack, and WhatsApp.
- Autonomous Productivity: Managed via dedicated Email and Calendar skills.
- Deep Research: Real-time web browsing and information synthesis using Playwright.
- System Orchestration: Cross-platform control for Windows, macOS, and Linux.
VIKI operates on a 5-Layer Consciousness Stack:
- Perception: Ingests multi-modal inputs (Text, Visuals, Signals).
- Interpretation: Judgment Engine classifies intent and risk.
- Deliberation: The Cortex reasons across specialized local models.
- Reflection: Evaluates the plan against safety and logic constraints.
- Execution: Capability-gated skill deployment via the Controller.
VIKI/
βββ viki/
β βββ core/ # Cognitive Kernel (Judgment, Cortex, Learning)
β βββ config/ # Orchestration & Soul profiles
β βββ skills/ # Modular Ability System (FS, Shell, Research)
β βββ api/ # Unified Nexus (Discord, Telegram, Web)
β βββ main.py # Autoritative Entry point
βββ data/ # SQLite Persistent Wisdom & Facts
βββ logs/ # Structured Telemetry & Audit Trails
βββ tests/ # Core stability & Benchmark suites
- Python 3.11+
- Ollama CLI: Installed and running (
ollama serve). - Recommended Models:
phi3(Reflex),deepseek-r1(Reasoning).
-
Clone & Initialize:
git clone https://github.com/toozuuu/viki.git cd viki python -m venv .venv ./.venv/Scripts/Activate.ps1 pip install -r requirements.txt
-
Configure environment (recommended so paths and secrets are not hardcoded):
copy .env.example .env # Edit .env and set VIKI_API_KEY, VIKI_ADMIN_SECRET, and optionally VIKI_DATA_DIR, VIKI_WORKSPACE_DIR, VIKI_PERSONA.Or set variables manually. For API:
VIKI_API_KEYandVIKI_ADMIN_SECRETare required. Generate with:python -c "import secrets; print(secrets.token_urlsafe(32))"
See viki/SECURITY_SETUP.md and
.env.examplefor all options. -
Launch VIKI (CLI):
python viki/main.py
Install the viki command so you can run it from any directory with the current (or a given) project as workspace:
- Install: From the repo root, run
pip install -e .(or use the one-line install scripts below). - Run:
vikiβ use current directory as workspace.viki /path/to/projectβ use that directory as workspace.VIKI_PERSONA=dev vikiβ run with the dev persona (coding-focused skills).
- Confirm/reject: When VIKI asks "Confirm to proceed" for a medium or destructive action, reply
yesorconfirmto run it, ornoorrejectto cancel. You can also use/confirmor/reject. - Useful in-chat commands:
/help,/skills,/shadow(simulate only),/scan(re-scan workspace codebase).
One-line install (optional):
- Windows:
irm https://raw.githubusercontent.com/toozuuu/viki/main/install.ps1 | iex(or from repo:.\install.ps1) - Unix:
curl -fsSL https://raw.githubusercontent.com/toozuuu/viki/main/install.sh | bash(or from repo:./install.sh)
-
Launch with Hologram Face UI (talk to VIKI with voice):
# Terminal 1: start the UI cd ui && npm run dev # Terminal 2: start VIKI with API and open browser to the hologram python viki/main.py --ui
The app opens at
http://localhost:5173with the Hologram view by default: a hologram-style face and voice conversation (browser speech-to-text and text-to-speech). Use Full dashboard to switch to the text chat view. The UI requires the same API key: setVITE_VIKI_API_KEYinui/.env(or in your shell when building) to matchVIKI_API_KEY. See viki/SECURITY_SETUP.md. -
Launch Dashboard (UI) only: Open two terminals:
- Terminal 1 (API):
python viki/api/server.pyβ API requiresAuthorization: Bearer $VIKI_API_KEYfor all requests. - Terminal 2 (UI):
cd ui; npm run devAccess athttp://localhost:5173
- Terminal 1 (API):
-
Run with Docker: Build and run the API in a container. Ollama should be running on the host (or in another container). See DOCKER.md for details.
copy .env.example .env # Edit .env and set VIKI_API_KEY (required) docker compose up --build
Then run the UI on the host:
cd ui && npm run dev, and setVITE_VIKI_API_BASE=http://localhost:5000/apiinui/.env. On Windows/Mac the compose file setsOLLAMA_HOST=http://host.docker.internal:11434so the container can reach Ollama on the host.
Unlike static bots, VIKI grows. Every 10 stable lessons learned, she initiates a Neural Evolution:
- Interact: Use VIKI for your dev tasks.
- Learn: VIKI stores "Lessons" in her internal SQLite knowledge base.
- Forge: The system automatically triggers the forge when stability milestones are met.
- Verify: VIKI now responds with built-in awareness of your latest project state, no RAG required.
- API Authentication: All API endpoints require
VIKI_API_KEY. Set via environment variable; see viki/SECURITY_SETUP.md. - Admin Commands: Super-admin uses
VIKI_ADMIN_SECRET(env). Never commit secrets; use env or a secrets manager. - Privacy: 100% Local. No telemetry. No external API calls unless explicitly configured for internet research.
- Control: Every skill run passes
validate_action; file paths are sandboxed (dev_tools, whisper, PDF, data_analysis, filesystem). Shell command chaining is treated as destructive. Output and logs redact secrets. - Audit: Check
logs/viki.logandviki/SECURITY_SETUP.mdfor capability checks and setup.
| Document | Description |
|---|---|
| DOCKER.md | Run VIKI in Docker and use Docker from the agent |
| PRE_RELEASE.md | Checklist and steps for pre-releasing to public users |
| SETUP.md | Installation and environment |
| ARCHITECTURE.md | System design and data flow |
| CHANGELOG.md | Version history |
| viki/DOCS_INDEX.md | Index of all viki documentation |
| viki/SECURITY_SETUP.md | Security configuration |
| viki/IMPLEMENTATION_SUMMARY.md | Security & stability fixes |
| viki/MODEL_ENHANCEMENT_SUMMARY.md | Model improvement system |
| viki/ARCHITECTURE_REFACTOR.md | Future refactoring roadmap |
| viki/OBSERVABILITY.md | Logging and metrics plan |
| viki/PERFORMANCE_NOTES.md | Performance optimization notes |
Local AI agent Β· Autonomous AI Β· Ollama Β· LLM agent Β· Privacy-first AI Β· Sovereign AI Β· Licensed AI assistant Β· ReAct agent Β· Capability gating Β· Neural Forge Β· Self-improving AI Β· CLI AI Β· Python AI agent Β· Orythix Β· Local LLM Β· Air-gap AI Β· Tool-use agent Β· Reflex reasoning Β· Multi-model routing
VIKI: Virtual Intelligence, Real Evolution.
Designed by Orythix001. 2026.