Files
pocketpaw/docs/getting-started/installation.mdx
Prakash 57b807c117 docs(seo): optimize titles, descriptions, headings, and cross-links
Comprehensive SEO optimization across 80 documentation pages:

Title optimization (all pages):
- Replaced generic titles like "Architecture", "Discord", "Slack"
  with search-intent titles like "PocketPaw Architecture: Event-Driven
  Message Bus", "Discord Bot Setup: Add PocketPaw to Your Server"
- All titles now 50-70 characters with qualifying keywords

Meta descriptions:
- Expanded 7 short descriptions (under 145 chars) to 150-160 chars
- Roadmap description expanded from 76 to 196 chars
- Troubleshooting, Codex CLI, OpenCode, WebMCP all expanded

H1 heading fixes:
- Ensured single H1 per page matching the frontmatter title
- All H1 headings updated to match new optimized titles

Internal cross-links:
- Added Related CardGroup sections to 60+ individual pages
- Each links to 2-3 related pages within and across sections
- Channels link to channel guides, backends link to Ollama guide, etc.

Em dash cleanup:
- Replaced em dashes with colons, periods, or double hyphens
  across multiple files in tools/, channels/, integrations/

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 17:41:36 +05:30

182 lines
4.8 KiB
Plaintext

---
title: "Install PocketPaw: pip, uv, Docker & One-Line Script"
description: "Install PocketPaw with pip or uv in under a minute. Supports Python 3.11+, optional extras for channels, tools, and integrations. Works on Linux, macOS, and Windows."
section: Getting Started
ogType: article
keywords: ["install", "pip install", "uv sync", "python package", "dependencies"]
tags: ["setup", "installation"]
---
# Install PocketPaw: pip, uv, Docker & One-Line Script
PocketPaw requires **Python 3.11+** and can be installed via pip or uv.
## Prerequisites
- **Python 3.11** or higher
- **pip**, **uv**, or **pipx** package manager
- An **Anthropic API key** (for cloud models) or **Ollama** (for local models — no API key needed)
## Quick Install
The fastest way to get started — the interactive installer handles Python, uv, and feature selection:
```bash
curl -fsSL https://pocketpaw.xyz/install.sh | sh
````
### Windows PowerShell Note
> On **Windows PowerShell**, the above command **will fail** because `sh` is not recognized.
```text
sh : The term 'sh' is not recognized as the name of a cmdlet...
```
**Workarounds:**
1. Use PowerShell-specific script (if available):
```powershell
# Set execution policy to allow scripts
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
# Run PocketPaw installer
powershell -NoExit -Command "iwr -useb https://pocketpaw.xyz/install.ps1 | iex"
```
2. Use **Git Bash** or **WSL** to run the original Unix install script.
---
Or install directly with pip:
```bash
pip install pocketpaw
```
This installs the core package with minimal dependencies (~10 packages). To add specific features, use extras.
## Using uv (Recommended)
[uv](https://docs.astral.sh/uv/) is the recommended package manager for faster installs:
```bash
# Install uv if you haven't
curl -LsSf https://astral.sh/uv/install.sh | sh
# Clone and install for development
git clone https://github.com/pocketpaw/pocketpaw.git
cd pocketpaw
uv sync --dev
# Run with auto-reload for development
uv run pocketpaw --dev
```
## Package Extras
PocketPaw uses a modular extras system. Install only what you need:
### Channel Extras
```bash
# Individual channels
pip install pocketpaw[telegram]
pip install pocketpaw[discord]
pip install pocketpaw[slack]
pip install pocketpaw[whatsapp-personal] # QR-code pairing
# All channels
pip install pocketpaw[all-channels]
```
### Tool Extras
```bash
# Specific tools
pip install pocketpaw[browser] # Playwright browser automation
pip install pocketpaw[image] # Google Gemini image generation
pip install pocketpaw[memory] # Mem0 semantic memory
# All tools
pip install pocketpaw[all-tools]
```
### Backend Extras
```bash
pip install pocketpaw[openai-agents] # OpenAI Agents SDK backend
pip install pocketpaw[google-adk] # Google ADK backend
pip install pocketpaw[desktop] # Desktop automation tools
```
### Composite Extras
```bash
# Recommended setup (dashboard + common tools)
pip install pocketpaw[recommended]
# Everything included
pip install pocketpaw[all]
# Development (includes test and lint tools)
pip install pocketpaw[dev]
```
## Environment Variables
Set your API keys as environment variables. All PocketPaw settings use the `POCKETPAW_` prefix:
```bash
# Option A: Anthropic API key for Claude (cloud)
export POCKETPAW_ANTHROPIC_API_KEY="sk-ant-..."
# Option B: Ollama for local models (no API key needed)
export POCKETPAW_LLM_PROVIDER="ollama"
export POCKETPAW_OLLAMA_MODEL="qwen2.5:7b"
# Optional: Other API keys
export POCKETPAW_OPENAI_API_KEY="sk-..." # For voice/TTS/STT
export POCKETPAW_TAVILY_API_KEY="tvly-..." # For web search
export POCKETPAW_GOOGLE_API_KEY="..." # For image generation
export POCKETPAW_BRAVE_SEARCH_API_KEY="..." # For Brave Search
```
Alternatively, you can configure these through the web dashboard's settings panel.
## Docker
For server deployments, PocketPaw includes a production-ready `Dockerfile` and `docker-compose.yml`:
```bash
git clone https://github.com/pocketpaw/pocketpaw.git
cd pocketpaw
cp .env.example .env # fill in your API keys
docker compose up -d
```
The image includes all extras, Playwright Chromium, and OCR support. See the [Docker deployment guide](/deployment/docker) for optional Ollama/Qdrant services and configuration details.
## Verify Installation
```bash
# Run PocketPaw (starts web dashboard)
pocketpaw
# Or with uv
uv run pocketpaw
```
The web dashboard will start at `http://localhost:8888`. Open it in your browser to verify everything is working.
## Next Steps
<CardGroup>
<Card title="Quick Start" icon="lucide:rocket" href="/getting-started/quick-start">
Set up your first channel and send your first message.
</Card>
<Card title="Configuration" icon="lucide:settings" href="/getting-started/configuration">
Learn about all configuration options.
</Card>
</CardGroup>