Installation¶
Prerequisites¶
Before installing Tako VM, verify you have the following:
| Requirement | Minimum Version | Check Command | Required? |
|---|---|---|---|
| Docker | 20.10+ | docker --version |
Yes |
| Python | 3.9+ | python3 --version |
Yes |
| uv | any | uv --version |
Recommended (pip also works) |
| gVisor | any | docker run --runtime=runsc --rm hello-world |
Production only |
Quick pre-flight check
Docker must be running (not just installed). On macOS/Windows, start Docker Desktop first.Install Tako VM¶
Install from PyPI¶
# Create virtual environment and install
uv venv && source .venv/bin/activate
# SDK client only - for connecting to an existing Tako VM server
uv pip install tako-vm
# Full installation with server components
uv pip install tako-vm[server]
# All dependencies including dev tools
uv pip install tako-vm[all]
Install from Source¶
# Clone the repository
git clone https://github.com/las7/TakoVM.git
cd tako-vm
uv venv && source .venv/bin/activate
# Install in development mode
uv pip install -e . # SDK only
uv pip install -e ".[server]" # With server
uv pip install -e ".[dev]" # With dev dependencies
Build the Docker Image¶
The Docker image is required to execute code:
This builds the base execution container with Python 3.11 and uv.
Verify Installation¶
Check the CLI¶
Start the Server¶
Check Server Health¶
Expected output:
Installation Extras¶
| Extra | Command | Description |
|---|---|---|
server |
uv pip install tako-vm[server] |
FastAPI server, uvicorn, YAML config |
dev |
uv pip install tako-vm[dev] |
pytest, ruff, development tools |
docs |
uv pip install tako-vm[docs] |
MkDocs for documentation |
all |
uv pip install tako-vm[all] |
All production dependencies |
Directory Structure¶
After installation, your directory should look like:
tako-vm/
├── tako_vm/ # Main package
│ ├── cli.py # CLI entry point
│ ├── config.py # Configuration (Pydantic)
│ ├── server/ # API server
│ └── execution/ # Docker execution
├── docs/ # Documentation
├── docker/ # Container images
├── pyproject.toml # Package configuration
├── tako_vm.yaml.example # Config template
└── demo.sh # Interactive demo
Troubleshooting¶
Docker Not Found¶
If you see "Docker not available" errors:
Permission Denied¶
If you get permission errors with Docker:
# Add your user to the docker group (Linux)
sudo usermod -aG docker $USER
# Log out and back in for changes to take effect
Port Already in Use¶
If port 8000 is busy:
gVisor Not Available¶
If you see "RuntimeUnavailableError: gVisor not available" errors:
# Option 1: Install gVisor (recommended for production)
# See: https://gvisor.dev/docs/user_guide/install/
# Option 2: Use permissive mode for development
export TAKO_VM_SECURITY_MODE=permissive
tako-vm server
# Or in config file:
# security_mode: permissive
For macOS/Windows development, use the included Lima VM with gVisor pre-installed:
Config Validation Errors¶
If you get config errors:
# Validate your config file
tako-vm validate my-config.yaml
# Show current configuration
tako-vm config
Next Steps¶
- Continue to Quick Start to run your first code
- See Configuration for customization options