A workspace-first AI operating system for memory, agents, knowledge, and execution.
Quick Start · Setup Guide · Contributing · Roadmap
Your data belongs to you. Keep it that way.
Most AI tools send your data to the cloud, locking you into a subscription and giving you zero control over how your information is used. Developers working with sensitive repositories, private APIs, or proprietary data cannot risk exposing their workspaces to external telemetry.
Torvaix solves this by providing a self-hosted, workspace-first AI OS. Every model call, conversation, and execution happens entirely on your machine.
- 🧠 Multi-Agent Orchestration: A custom state-graph routing system with specialized agents (Router, Memory, Knowledge, Execution).
- 🛡️ Native Security Layer: Human-in-the-loop approval UI for dangerous operations (like
bashscripts or system file deletion). - 📚 Infinite Memory: Dual-layer vector memory system powered by Qdrant embeddings and SQLite fallback.
- 🔌 Model Context Protocol (MCP): Native integration with the MCP standard, connecting the Execution Agent to local filesystem, terminal, and browser tools.
- ⚡ Premium UI/UX: Built with Next.js 16, React 19, and Tailwind 4, featuring dynamic animations and glassmorphism.
graph TD
User([User]) --> Workspace[Torvaix Workspace]
Workspace --> Router[Router Agent]
Router -->|Fact Storage| Knowledge[Knowledge Agent]
Router -->|Context Recall| Memory[Memory Agent]
Router -->|Action| Exec[Execution Agent]
Exec --> MCP[MCP Toolchain]
Knowledge --> Storage[(Qdrant / SQLite / Ollama)]
Memory --> Storage
style User fill:#2D3748,stroke:#4A5568,color:#fff
style Workspace fill:#2B6CB0,stroke:#2C5282,color:#fff
style Router fill:#4A5568,stroke:#2D3748,color:#fff
style Storage fill:#276749,stroke:#2F855A,color:#fff
style Exec fill:#DD6B20,stroke:#C05621,color:#fff
style MCP fill:#805AD5,stroke:#6B46C1,color:#fff
Torvaix provides real-time transparency into agent reasoning. The collapsible Agent Trace panel in the UI surfaces:
- Routing decisions (Memory vs Knowledge vs Execution)
- Context retrieval hits, misses, and vector confidence scores
- Millisecond-precision tool execution timings
- Security approval pauses
A strictly isolated, SQLite-backed bridging protocol for secure LAN continuity. Connect secondary trusted devices (like mobile phones) to your Torvaix node via one-time pairing tokens with explicit readonly or admin scopes.
See COMPANION.md for architecture.
Torvaix prioritizes extreme low-latency local performance. Our benchmark suite measures workspace loading, memory retrieval, and execution gating. Run the suite via:
npm run benchmarkResults are saved to BENCHMARKS.md and historically snapshotted to track regressions.
Torvaix is designed for a seamless local developer experience.
- Node.js 18+ & npm 9+
- Ollama (Ensure
llama3.2andnomic-embed-textare pulled) - Docker (Optional, for running Qdrant independently if preferred. Local SQLite works out of the box).
git clone https://github.com/Yashasm18/Torvaix.git
cd Torvaix
npm install# Start the Torvaix OS
npm run devWhat happens? The Agent Server and Next.js Frontend will start simultaneously. Once ready, your default browser will automatically open to
http://localhost:3000.
To demonstrate the full capabilities of Torvaix for the Kaggle Capstone:
- Workspace Creation: Create a new workspace in the UI.
- Knowledge Storage: Tell the agent "My favorite framework is Next.js". The Router Agent will route this to the Knowledge Agent, which generates embeddings and stores it in Qdrant + SQLite.
- Memory Retrieval: Start a new chat and ask "What is my favorite framework?". The Router Agent will route to the Memory Agent, retrieving the correct answer from Qdrant.
- Tool Execution & MCP: Ask the agent to "Create a Python script that calculates fibonacci and run it".
- Security Layer: The Execution Agent will attempt to run
python. It will pause execution, log apending_action, and wait. The premium UI card will prompt you to approve the action. - Approval & Resume: Click Approve. The Execution Agent resumes, communicates with the Unified MCP Server, runs the script safely, and streams the output directly into the chat.
Run these against the Agent Server (port 3001) to verify all systems:
# Health Check
curl http://localhost:3001/api/health
# Store a memory
curl -X POST http://localhost:3001/api/memory/store \
-H "Content-Type: application/json" \
-d '{"workspaceId":"default","content":"My favorite language is Python","source":"test"}'
# Retrieve memory (semantic search)
curl -X POST http://localhost:3001/api/memory/query \
-H "Content-Type: application/json" \
-d '{"workspaceId":"default","query":"What language do I prefer?","topK":3}'
# Execute via agent (triggers security layer for bash/python)
curl -X POST http://localhost:3001/api/agent/run \
-H "Content-Type: application/json" \
-d '{"workspaceId":"default","instructions":"Use bash to echo hello world"}'Torvaix is licensed under the GNU Affero General Public License v3.0.
If you run a modified version of Torvaix over a network, you must make the modified source code available to users under the same license.
Torvaix — Yours for the voyage.