This guide covers all installation methods for the Pocket CLI.
The fastest way to install Pocket:
# macOS and Linux via Homebrew
brew install agentstation/tap/pocket# Tap and install
brew tap agentstation/tap
brew install pocket
# Or install directly
brew install agentstation/tap/pocket
# Verify installation
pocket version# Install the latest version
go install github.com/agentstation/pocket/cmd/pocket@latest
# Install a specific version
go install github.com/agentstation/pocket/cmd/pocket@v0.1.0
# Verify installation
pocket versionNote: This requires Go 1.21 or later installed on your system.
Our automated install script detects your platform and downloads the appropriate binary:
# Install latest version
curl -sSL https://raw.githubusercontent.com/agentstation/pocket/master/install.sh | bash
# Install specific version
curl -sSL https://raw.githubusercontent.com/agentstation/pocket/master/install.sh | bash -s -- --version v1.0.0
# Install to custom directory
curl -sSL https://raw.githubusercontent.com/agentstation/pocket/master/install.sh | bash -s -- --install-dir ~/.local/binDownload binaries directly from our releases page:
# Linux x64
curl -L https://github.com/agentstation/pocket/releases/latest/download/pocket-linux-x86_64.tar.gz -o pocket.tar.gz
tar -xzf pocket.tar.gz
sudo mv pocket-linux-x86_64/pocket /usr/local/bin/
# macOS Intel
curl -L https://github.com/agentstation/pocket/releases/latest/download/pocket-darwin-x86_64.tar.gz -o pocket.tar.gz
tar -xzf pocket.tar.gz
sudo mv pocket-darwin-x86_64/pocket /usr/local/bin/
# macOS Apple Silicon
curl -L https://github.com/agentstation/pocket/releases/latest/download/pocket-darwin-arm64.tar.gz -o pocket.tar.gz
tar -xzf pocket.tar.gz
sudo mv pocket-darwin-arm64/pocket /usr/local/bin/
# Windows
# Download pocket-windows-x86_64.zip from releases page
# Extract and add to PATHAvailable platforms:
- macOS: darwin-x86_64 (Intel), darwin-arm64 (Apple Silicon)
- Linux: linux-x86_64, linux-arm64, linux-i386
- Windows: windows-x86_64, windows-i386
# Clone the repository
git clone https://github.com/agentstation/pocket.git
cd pocket
# Build with make
make build
# Or build directly with go
go build -o pocket ./cmd/pocket
# Install to system
sudo mv pocket /usr/local/bin/# Run directly
docker run --rm -v $(pwd):/workspace agentstation/pocket run workflow.yaml
# Create alias for convenience
alias pocket='docker run --rm -v $(pwd):/workspace agentstation/pocket'- Go Version: 1.21 or later (for go install method)
- Operating Systems: Linux, macOS, Windows
- Architecture: amd64, arm64
After installation, verify Pocket is working:
# Check version
pocket version
# View help
pocket --help
# List available nodes
pocket nodes listPocket uses ~/.pocket/ for configuration and plugins:
# Create directory structure
mkdir -p ~/.pocket/{plugins,scripts,config}Optional environment variables:
# Set custom Pocket home directory
export POCKET_HOME="$HOME/.pocket"
# Set default log level
export POCKET_LOG_LEVEL="info"
# Add to your shell profile
echo 'export POCKET_HOME="$HOME/.pocket"' >> ~/.bashrcNow that Pocket is installed:
If pocket command is not found after installation:
# Check if Go bin is in PATH
echo $PATH | grep -q "$(go env GOPATH)/bin" || echo "Add $(go env GOPATH)/bin to PATH"
# Add to PATH (bash)
echo 'export PATH="$PATH:$(go env GOPATH)/bin"' >> ~/.bashrc
source ~/.bashrc
# Add to PATH (zsh)
echo 'export PATH="$PATH:$(go env GOPATH)/bin"' >> ~/.zshrc
source ~/.zshrcIf you get permission errors:
# Use sudo for system-wide installation
sudo mv pocket /usr/local/bin/
# Or install to user directory
mkdir -p ~/.local/bin
mv pocket ~/.local/bin/
export PATH="$PATH:$HOME/.local/bin"If Go is not installed:
# macOS
brew install go
# Linux (Ubuntu/Debian)
sudo apt update && sudo apt install golang-go
# Or download from https://golang.org/dl/To update to the latest version:
# Using go install
go install github.com/agentstation/pocket/cmd/pocket@latest
# From source
cd pocket
git pull
make build
sudo mv pocket /usr/local/bin/To remove Pocket:
# Remove binary
sudo rm /usr/local/bin/pocket
# Remove configuration (optional)
rm -rf ~/.pocket
# Remove from Go bin
rm $(go env GOPATH)/bin/pocket