Installation
Prerequisites
| Requirement | Version | Check command |
|---|---|---|
| PowerShell | 7.4+ | pwsh --version |
| Node.js | 20+ | node --version |
| Python | 3.11+ | python3 --version |
| Git | 2.40+ | git --version |
| pnpm | 9+ | pnpm --version |
Install OSTwin
The install script sets up all dependencies, creates virtual environments, and configures the runtime:
git clone https://github.com/igot-ai/os-twin.gitcd os-twinpwsh Install.ps1This will:
- Create a Python virtual environment at
.venv/ - Install Python dependencies for MCP servers
- Install Node.js dependencies for the bot and dashboard
- Validate all prerequisites are met
- Set up the
.agents/directory structure
If you want to set up components individually:
git clone https://github.com/igot-ai/os-twin.gitcd os-twin
# Python MCP serverspython3 -m venv .venvsource .venv/bin/activatepip install -r requirements.txt
# Dashboard (Next.js frontend)cd dashboard && pnpm install && cd ..
# Dashboard (FastAPI backend)cd api && pip install -r requirements.txt && cd ..
# Botcd bot && pnpm install && cd ..API Key Setup
OSTwin needs at least one LLM provider key. Set the key for the provider you plan to use:
export ANTHROPIC_API_KEY="sk-ant-..."export OPENAI_API_KEY="sk-..."export GOOGLE_API_KEY="AI..."For persistent configuration, add the export to your shell profile (~/.zshrc, ~/.bashrc, etc.).
Runtime File Locations
After installation, OSTwin uses the following directory structure:
| Path | Purpose |
|---|---|
.agents/skills/ | Skill definitions organized by role |
.agents/roles/ | Role definitions (role.json + ROLE.md) |
.agents/war-rooms/ | Active war-room directories (created at runtime) |
.agents/memory/ | Shared memory ledger |
.agents/registry.json | Role registry mapping |
Engine.ps1 | Main orchestration engine |
api/ | FastAPI dashboard backend |
dashboard/ | Next.js dashboard frontend |
bot/ | TypeScript conversational bot |
Verify Installation
Run the built-in verification:
pwsh -Command "& { . ./Engine.ps1 -Verify }"This checks that all prerequisites are installed, API keys are set, and the directory structure is correct.
Uninstall
To remove OSTwin completely:
# Remove the cloned repository and all runtime datarm -rf os-twinSince OSTwin is fully self-contained in its repository directory, removing it cleans up everything. No global packages or system-level changes are made during installation.
Next Steps
With OSTwin installed, run your first plan in the Quick Start.