Skip to main content

OpenPaw - Multi-Channel AI Agent Framework with LangGraph

Project description

OpenPaw

A Friendly LangChain/LangGraph Multi-Agent Runner

CI Docs Python 3.11+ License


Alpha Software -- OpenPaw is in active development and should be considered an alpha release. APIs, configuration formats, and behavior may change between versions. Contributions and feedback are welcome, but expect rough edges.

OpenPaw gives each agent its own workspace -- personality files, custom tools, scheduled tasks -- then gets out of the way. It handles the orchestration so you can focus on what your agents actually do.

Agents can ingest documents, browse the web, search the internet, delegate to specialist sub-agents, and manage their own files -- making them well-suited for research, information processing, and long-running autonomous workflows. Give them a schedule and they'll check in on their own.

Read the full documentation

Highlights

Composable sub-agent teams

Every primary agent is a team lead. Drop a YAML into agent/team/ and your agent gains a teammate it can dispatch with spawn_agent(profile="researcher"):

name: researcher
description: "Web research specialist โ€” searches, cross-references, and cites sources."
system_prompt: |
  You are a focused research specialist. Search, cross-reference, and
  summarize findings with source citations.
model: anthropic:claude-sonnet-4-20250514
allowed_tools: [brave_search, read_file, write_file]
timeout_minutes: 10
max_turns: 20

Each teammate gets its own model, tool loadout, skill set, and lifecycle budget. Run several in parallel -- the parent dispatches, they work, results route back when they finish.

Live in-place status updates

Both your primary agent and every sub-agent maintain a single status message that edits in place as work progresses. No chat flood, no scroll-back -- just a live, current view of who's doing what right now. Get actionable insight into your agent teams at a glance. Agents can also call report_progress to announce structured milestones with their own emoji.

Mid-run responsiveness

Send a follow-up while the agent is mid-task and it sees it. Steer the run ("๐Ÿ”„ Redirecting..."), interrupt completely ("๐Ÿ›‘ Stopping..."), or let messages batch quietly ("๐Ÿ“จ New messages received..."). One-line emoji notifications keep you in the loop without breaking the agent's flow.

Typing indicators run while the agent is processing; emoji reactions on your original message track success (๐Ÿ‘) or failure (๐Ÿ‘Ž).

Channels

Telegram + Discord, simultaneously -- One workspace, multiple channels. Trigger-based activation (mentions, keywords, or both) lets agents respond appropriately in group chats. On-demand channel history gives them awareness of recent conversation when triggered.

Workspace identity

Each agent gets its own SOUL (personality), AGENT (capabilities), USER (context), and HEARTBEAT (agent-writable scratchpad) files, plus a sandboxed filesystem. config/ and data/ are write-protected from the agent itself; everything else lives under workspace/.

Skills -- Reusable knowledge blocks (SKILL.md) drop into the workspace and can be selectively granted to specific team members.

Tools that do real work

  • Document processing -- Docling OCR/ICR turns scanned PDFs, DOCX, and PPTX into markdown automatically. Whisper transcribes voice messages on arrival.
  • Browser automation -- Playwright-driven web interaction via the accessibility tree. Agents reference elements by number, not CSS selectors.
  • Email integration -- Send and receive via Gmail with safe-by-default recipient policies. Search, reply with threading, manage attachments.
  • MCP servers -- Connect any MCP-compatible service (local stdio or remote Streamable HTTP) per workspace. Tools flow into the agent alongside builtins.
  • Deep research -- Connect to a self-hosted GPT-Researcher instance for multi-source reports with citations.
  • Web search -- Brave Search and other providers for direct search-and-summarize.
  • Drop-in custom tools -- Write a @tool function, save it to agent/tools/, restart. Auto-discovered, no wiring needed.

Scheduling & autonomy

  • Cron and heartbeats -- Recurring jobs from YAML, plus proactive check-ins agents can configure themselves.
  • Dynamic scheduling -- schedule_at, schedule_every, request_followup. Your agent can plan its own future.
  • Auto-compact -- When the context window fills, the framework summarizes old turns and continues without missing a beat.
  • Runtime model switching -- /model anthropic:claude-opus-4-20250514 mid-conversation. No restart.

Safe by default

  • Approval gates -- Human-in-the-loop authorization for sensitive operations with configurable timeouts and channel-native UI.
  • Recipient policies -- Email defaults to deny-all sends; only addresses on your allowlist go through.
  • Sandboxed filesystem -- Custom tools write to workspace/ by default; config/ and data/ are read-only to agents.

Multi-provider LLMs

Anthropic, OpenAI, AWS Bedrock, xAI, Fireworks, and any OpenAI-compatible endpoint. Define providers once in global config and reference by name from any workspace.

Quick Start

Recommended: run your agent on Telegram โ€” you get a real chat UI, in-place status updates, and access from your phone. Grab a bot token from @BotFather (takes a minute); Discord works the same way.

Install from PyPI

The quickest path โ€” no clone required:

pip install openpaw-ai
openpaw init my_agent --model anthropic:claude-sonnet-4-20250514 --channel telegram
openpaw -c config.yaml -w my_agent

openpaw init scaffolds the workspace and a starter config.yaml, so run works right away. Add your LLM provider key and Telegram bot token to agent_workspaces/my_agent/config/.env (e.g. ANTHROPIC_API_KEY=... and TELEGRAM_BOT_TOKEN=...) before running.

Optional capabilities install as extras: pip install 'openpaw-ai[documents]' (Docling OCR/PDF), plus [voice], [web], [memory], [email], [mcp], or [all-builtins].

Install from source (Poetry)

The steps below use the from-source workflow; prefix commands with poetry run.

1. Install

git clone https://github.com/johnsosoka/OpenPaw.git
cd OpenPaw
poetry install

2. Scaffold a workspace

poetry run openpaw init my_agent \
  --model anthropic:claude-sonnet-4-20250514 \
  --channel telegram

This also writes a starter config.yaml in the current directory (it won't overwrite an existing one). To start from the fully-commented reference instead, copy it first: cp config.example.yaml config.yaml.

3. Configure

Add your API keys to agent_workspaces/my_agent/config/.env:

ANTHROPIC_API_KEY=your-key-here
TELEGRAM_BOT_TOKEN=your-token-here

4. Run

poetry run openpaw -c config.yaml -w my_agent

CLI Commands

Command Description
openpaw init <name> Scaffold a new agent workspace
openpaw init <name> --model <provider:model> Scaffold with a pre-configured model
openpaw init <name> --channel telegram Scaffold with a channel pre-configured (telegram or discord)
openpaw list List available workspaces
openpaw -c config.yaml -w <name> Run a single workspace
openpaw -c config.yaml -w name1,name2 Run multiple workspaces
openpaw -c config.yaml --all Run all discovered workspaces
openpaw -c config.yaml -w <name> -v Run with verbose logging

All commands should be prefixed with poetry run when running from the project directory.

Agent Workspace Structure

Each workspace lives under agent_workspaces/<name>/ and is organized into five directories:

agent_workspaces/my_agent/
โ”œโ”€โ”€ agent/              # Identity files, custom tools, team profiles, and skills
โ”‚   โ”œโ”€โ”€ AGENT.md
โ”‚   โ”œโ”€โ”€ USER.md
โ”‚   โ”œโ”€โ”€ SOUL.md
โ”‚   โ”œโ”€โ”€ HEARTBEAT.md
โ”‚   โ”œโ”€โ”€ tools/
โ”‚   โ”œโ”€โ”€ team/
โ”‚   โ””โ”€โ”€ skills/
โ”œโ”€โ”€ config/             # Configuration and secrets (write-protected)
โ”‚   โ”œโ”€โ”€ agent.yaml
โ”‚   โ”œโ”€โ”€ .env
โ”‚   โ””โ”€โ”€ crons/
โ”œโ”€โ”€ data/               # Framework-managed state (write-protected)
โ”‚   โ”œโ”€โ”€ TASKS.yaml
โ”‚   โ”œโ”€โ”€ uploads/
โ”‚   โ””โ”€โ”€ ...
โ”œโ”€โ”€ memory/             # Archived conversations and session logs
โ”‚   โ”œโ”€โ”€ conversations/
โ”‚   โ””โ”€โ”€ logs/
โ”‚       โ”œโ”€โ”€ channel/
โ”‚       โ””โ”€โ”€ sessions/
โ””โ”€โ”€ workspace/          # Agent work area (default write target)
    โ”œโ”€โ”€ downloads/
    โ””โ”€โ”€ screenshots/

The openpaw init command scaffolds this structure with starter templates. Customize the identity files in agent/ to shape your agent's personality and purpose. Configure model, channel, and queue behavior in config/agent.yaml.

The data/ and config/ directories are write-protected from agent filesystem tools. Write operations default to the workspace/ directory unless an explicit path is provided.

In-Chat Commands

Once running, agents respond to framework commands in chat:

Command Description
/help List available commands
/status Show model, context usage, tasks, and token usage
/new Archive conversation and start fresh
/compact Summarize, archive, and continue with summary
/model <provider:model> Switch LLM model at runtime

Documentation

  • Getting Started -- Installation, first workspace, and troubleshooting
  • Concepts -- How workspaces, scheduling, queues, and tools fit together
  • Configuration -- Global and per-workspace configuration reference
  • Workspaces -- Workspace structure, identity files, and custom tools
  • Scheduling -- Cron jobs, heartbeats, and dynamic scheduling
  • Built-ins -- Web search, browser automation, email, voice, sub-agents, and more
  • MCP Servers -- Per-workspace MCP server connections (HTTP and stdio)
  • Channels -- Channel adapters and access control
  • Queue System -- Queue modes and message handling
  • Architecture -- System design, data flows, and architectural decisions

Contributing

Development follows a GitFlow branching model:

  • main -- Stable releases only. Protected branch, requires CI to pass.
  • develop -- Integration branch. Feature and bugfix PRs target develop.
  • Feature branches -- Branch from develop as feature/, bugfix/, docs/, or chore/.

See the Architecture overview for system design and conventions.

Prerequisites

  • Python 3.11+
  • Poetry 2.0+
  • At least one channel bot token: Telegram or Discord
  • At least one model provider API key (Anthropic, OpenAI, or AWS credentials for Bedrock)

License

PolyForm Noncommercial 1.0.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openpaw_ai-0.4.4.tar.gz (351.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openpaw_ai-0.4.4-py3-none-any.whl (479.6 kB view details)

Uploaded Python 3

File details

Details for the file openpaw_ai-0.4.4.tar.gz.

File metadata

  • Download URL: openpaw_ai-0.4.4.tar.gz
  • Upload date:
  • Size: 351.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openpaw_ai-0.4.4.tar.gz
Algorithm Hash digest
SHA256 53986601a47f29b8959ec66fdf2c688e8519d8588a24be1c35e404fe352d42c3
MD5 4824522acf7010d72d492a76f0d71ebf
BLAKE2b-256 182f1308d033c96e23791b281714089bd41a9ca359386c01c354bc80a21915fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for openpaw_ai-0.4.4.tar.gz:

Publisher: publish.yml on johnsosoka/OpenPaw

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openpaw_ai-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: openpaw_ai-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 479.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openpaw_ai-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e2b8460eec2e062961b707e58e781ff3046ef539d00953a5c51198fb9cfb2127
MD5 e854328fbfaff69ff3ef1200c09100be
BLAKE2b-256 5b39cff67dd7f16615f07a0201959b0d91c33a25fd70a1d49c01acfa7ffdfd16

See more details on using hashes here.

Provenance

The following attestation bundles were made for openpaw_ai-0.4.4-py3-none-any.whl:

Publisher: publish.yml on johnsosoka/OpenPaw

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page