Skip to content

Installation

Prerequisites

RequirementVersionCheck command
PowerShell7.4+pwsh --version
Node.js20+node --version
Python3.11+python3 --version
Git2.40+git --version
pnpm9+pnpm --version

Install OSTwin

The install script sets up all dependencies, creates virtual environments, and configures the runtime:

Terminal window
git clone https://github.com/igot-ai/os-twin.git
cd os-twin
pwsh Install.ps1

This 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

API Key Setup

OSTwin needs at least one LLM provider key. Set the key for the provider you plan to use:

Terminal window
export ANTHROPIC_API_KEY="sk-ant-..."

For persistent configuration, add the export to your shell profile (~/.zshrc, ~/.bashrc, etc.).

Runtime File Locations

After installation, OSTwin uses the following directory structure:

PathPurpose
.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.jsonRole registry mapping
Engine.ps1Main orchestration engine
api/FastAPI dashboard backend
dashboard/Next.js dashboard frontend
bot/TypeScript conversational bot

Verify Installation

Run the built-in verification:

Terminal window
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:

Terminal window
# Remove the cloned repository and all runtime data
rm -rf os-twin

Since 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.