Installation
Weaver can be installed in multiple ways depending on your needs. Choose the method that works best for your environment.
Docker (Recommended)
Docker is the easiest way to get started with Weaver, providing consistent environments and easy updates.
Get the latest Weaver image from Docker Hub:
docker pull operatoronline/weaver:latest
Create your Weaver home directory and configuration:
docker run --rm -v ~/.weaver:/root/.weaver operatoronline/weaver onboard
Check that Weaver is working:
docker run --rm operatoronline/weaver version
You should see output like:
πΈοΈ weaver v1.0.0
Build: 2026-03-01T10:00:00Z
Go: go1.26.0
The Docker image is built with a multi-stage process, resulting in a minimal runtime image (~50MB) with only essential dependencies.
Pre-built Binaries
Download pre-compiled binaries for your platform from the releases page .
# Download latest release
curl -L -o weaver.tar.gz https://github.com/operatoronline/weaver/releases/latest/download/weaver-linux-amd64.tar.gz
# Extract
tar xzf weaver.tar.gz
# Move to PATH
sudo mv weaver /usr/local/bin/
# Verify
weaver version
# Download latest release
curl -L -o weaver.tar.gz https://github.com/operatoronline/weaver/releases/latest/download/weaver-darwin-amd64.tar.gz
# Extract
tar xzf weaver.tar.gz
# Move to PATH
sudo mv weaver /usr/local/bin/
# Verify
weaver version
# Download from releases page
# https://github.com/operatoronline/weaver/releases/latest
# Extract the zip file
# Add weaver.exe to your PATH
# Verify
weaver version
Initialize After Binary Install
Once the binary is installed, initialize your configuration:
This creates:
~/.weaver/config.json - Configuration file
~/.weaver/workspace/ - Agent workspace directory
Build from Source
For development or customization, build Weaver from source.
Go 1.21 or later
Git
Make (optional, for convenience)
go version # Should be 1.21+
git clone https://github.com/operatoronline/weaver.git
cd weaver
Download Go module dependencies:
make build
# Binary will be at ./build/weaver
./build/weaver version
go build -o weaver ./cmd/weaver
# Run the binary
./weaver version
VERSION = $( git describe --tags --always )
GIT_COMMIT = $( git rev-parse --short HEAD )
BUILD_TIME = $( date -u '+%Y-%m-%dT%H:%M:%SZ' )
go build -ldflags " \
-X main.version=${ VERSION } \
-X main.gitCommit=${ GIT_COMMIT } \
-X main.buildTime=${ BUILD_TIME }" \
-o weaver ./cmd/weaver
Move the binary to your PATH:
sudo mv ./build/weaver /usr/local/bin/
# or
sudo mv ./weaver /usr/local/bin/
Docker Build
Build your own Docker image from source:
# Clone the repository
git clone https://github.com/operatoronline/weaver.git
cd weaver
# Build the image
docker build -t weaver:local .
# Run it
docker run --rm weaver:local version
Dockerfile Overview
The multi-stage Dockerfile ensures minimal image size:
Stage 1: Build
Stage 2: Runtime
FROM golang:1.26.0-alpine AS builder
RUN apk add --no-cache git make
WORKDIR /src
# Cache dependencies
COPY go.mod go.sum ./
RUN go mod download
# Build binary
COPY . .
RUN make build
Post-Installation
Edit your configuration file to add API keys:
nano ~/.weaver/config.json
Add your preferred provider:
{
"providers" : {
"openrouter" : {
"api_key" : "sk-or-v1-your-key-here"
},
"gemini" : {
"api_key" : "your-gemini-key"
}
},
"agents" : {
"defaults" : {
"model" : "google/gemini-flash-1.5"
}
}
}
Verify Installation
Check your installation status:
Expected output:
πΈοΈ weaver Status
Version: v1.0.0
Config: /home/user/.weaver/config.json β
Workspace: /home/user/.weaver/workspace β
Model: google/gemini-flash-1.5
OpenRouter API: β
Gemini API: β
Test Your Installation
Run a simple query:
weaver agent -m "Hello, world!"
Available Commands
Weaver provides several commands:
Agent Commands
Gateway Commands
Utility Commands
Skills Management
Cron Management
# Interactive mode
weaver agent
# One-shot query
weaver agent -m "Your message"
# Custom session
weaver agent -s "project-alpha" -m "Status update"
# Debug mode
weaver agent --debug -m "Test"
Updating Weaver
# Pull latest image
docker pull operatoronline/weaver:latest
# Restart your containers
docker compose down
docker compose up -d
# Download new version
curl -L -o weaver.tar.gz https://github.com/operatoronline/weaver/releases/latest/download/weaver-linux-amd64.tar.gz
# Replace binary
tar xzf weaver.tar.gz
sudo mv weaver /usr/local/bin/
# Verify
weaver version
cd weaver
git pull origin main
make build
sudo mv ./build/weaver /usr/local/bin/
Uninstalling
This will remove all configuration and workspace data. Make sure to back up any important data first.
# Remove containers
docker compose down -v
# Remove image
docker rmi operatoronline/weaver
# Remove data
rm -rf ~/.weaver
# Remove binary
sudo rm /usr/local/bin/weaver
# Remove data
rm -rf ~/.weaver
Next Steps
Quickstart Get started with your first agent
Configuration Customize your Weaver setup
Skills Extend capabilities with skills
Gateway Deploy multi-channel gateway