Installation
This guide covers everything you need to install and configure Tiny Claw, including system requirements, installation steps, and advanced configuration options.Prerequisites
Bun Runtime (Required)
Tiny Claw is Bun-native, meaning it’s built specifically for the Bun JavaScript runtime. You must have Bun installed to run Tiny Claw.- macOS / Linux
- Windows
- Docker
Install Bun using the official installer:The installer will:
- Download the latest Bun binary
- Install it to
~/.bun/bin - Add it to your shell’s PATH
System Requirements
| Requirement | Minimum | Recommended |
|---|---|---|
| OS | Linux, macOS, Windows (WSL2) | Linux, macOS |
| RAM | 512 MB | 2 GB |
| Disk Space | 100 MB | 500 MB (including logs, memory) |
| Bun Version | 1.0.0+ | Latest stable |
| Network | Internet connection for Ollama Cloud | Stable broadband |
Optional Dependencies
For certain features, you may need:- Git - For cloning the repository and version control
- Clipboard tool -
xcliporxsel(Linux) for copying recovery credentials during setup - Authenticator app - For TOTP two-factor authentication (e.g., Google Authenticator, Authy)
Installation Steps
Install Bun Runtime
Follow the Bun installation instructions for your platform.
Clone Repository
Clone the Tiny Claw repository from GitHub:Or download the source as a ZIP file and extract it.
Install Dependencies
Install all workspace dependencies using Bun:This installs:
- Core packages (
@tinyclaw/*) - Plugin packages (channels, providers)
- Web UI dependencies
- CLI dependencies
- Development tools
Build Packages (Optional)
If you’re developing or making changes, build all packages:For production deployment, this step is recommended to optimize performance.
Run Setup Wizard
Complete the first-time setup:Or use the web-based wizard:See the Quick Start guide for detailed wizard instructions.
Start Tiny Claw
Configuration
Tiny Claw is self-configuring - it sets itself up through the setup wizard and can modify its own configuration through conversation. However, you can manually adjust settings if needed.Data Directory
By default, Tiny Claw stores all data in~/.tinyclaw. You can customize this:
Environment Variables
| Variable | Default | Description |
|---|---|---|
TINYCLAW_DATA_DIR | ~/.tinyclaw | Data directory path |
PORT | 3000 | Web UI server port |
LOG_LEVEL | info | Log verbosity (error, info, debug) |
NODE_ENV | production | Environment mode |
Port Configuration
Change the web UI port:Provider Configuration
Tiny Claw defaults to Ollama Cloud but supports multiple providers:- Ollama Cloud (default) - Free tier, generous limits
- OpenAI - GPT-4, GPT-3.5 via plugin
- Anthropic - Claude via plugin
Security Settings
Tiny Claw includes built-in security features:- AES-256-GCM encryption for secrets storage
- TOTP two-factor authentication for web access
- Backup codes for account recovery
- Path sandboxing for code execution
- SHIELD.md enforcement for anti-malware protection
Advanced Installation
Docker Deployment
Deploy Tiny Claw using Docker:Systemd Service (Linux)
Create a systemd service for automatic startup:Development Installation
For development with hot reload:Troubleshooting
Bun command not found
Bun command not found
After installing Bun, you may need to restart your terminal or manually add it to PATH:Add this to your
~/.bashrc, ~/.zshrc, or equivalent shell config file.Installation fails with permission errors
Installation fails with permission errors
- On Linux/macOS, avoid using
sudowith Bun - Ensure you have write permissions to
~/.tinyclaw - Check file ownership:
ls -la ~/.tinyclaw - Fix permissions:
chmod -R u+w ~/.tinyclaw
Dependencies won't install
Dependencies won't install
- Clear Bun cache:
bun pm cache rm - Delete
node_modulesand reinstall:rm -rf node_modules && bun install - Check network connectivity
- Try with verbose logging:
bun install --verbose
Port already in use
Port already in use
If port 3000 is occupied:
Database locked errors
Database locked errors
If you see “database is locked” errors:
- Ensure only one Tiny Claw instance is running
- Stop all processes:
pkill -f tinyclaw - Remove lock file:
rm ~/.tinyclaw/*.db-wal ~/.tinyclaw/*.db-shm - Restart:
bun start
Build fails on Windows
Build fails on Windows
Windows support for Bun is experimental. Recommended solutions:
-
Use WSL2 (Windows Subsystem for Linux):
Then install Bun inside WSL2 and run Tiny Claw there.
- Use Docker Desktop for Windows
- Wait for Bun’s Windows support to stabilize
Memory or performance issues
Memory or performance issues
- Increase available RAM
- Clear old memory: Use the web UI to prune old conversations
- Compact database:
bun run cli backupthen restore - Check disk space:
df -h ~/.tinyclaw - Monitor with:
bun start --verbose
Upgrading
To upgrade to the latest version:Your configuration, memory, and secrets are preserved during upgrades. The data directory (
~/.tinyclaw) remains untouched.Uninstallation
To completely remove Tiny Claw:Next Steps
Quick Start
Get started with your first interaction
Configuration
Advanced configuration and customization options
Plugin Development
Build custom channels, providers, and tools
CLI Commands
Learn about all available CLI commands including backup