Skip to main content

An agentic coding and automation assistant, supporting both local and cloud LLMs

Project description

PatchPal — A Claude Code–Style Agent in Python

PatchPal Screenshot

An agentic coding and automation assistant, supporting both local and cloud LLMs.

PatchPal is an AI coding agent that helps you build software, debug issues, and automate tasks. Like Claude Code, it supports agent skills, tool use, and executable Python generation, enabling interactive workflows for tasks such as data analysis, visualization, web scraping, API interactions, and research with synthesized findings.

A key goal of this project is to approximate Claude Code's core functionality while remaining lean, accessible, and configurable, enabling learning, experimentation, and broad applicability across use cases.

$ls ./patchpal
__init__.py agent.py  cli.py context.py permissions.py  skills.py system_prompt.md tool_schema.py tools

Full documentation is here.

Quick Start

$ pip install patchpal  # install
$ patchpal              # start

Setup

  1. Install: pip install patchpal

  2. Get an API key or a Local LLM Engine:

  3. Set up your API key as environment variable:

# For Anthropic (default)
export ANTHROPIC_API_KEY=your_api_key_here

# For OpenAI
export OPENAI_API_KEY=your_api_key_here

# For vLLM - API key required only if configured
export HOSTED_VLLM_API_BASE=http://localhost:8000 # depends on your vLLM setup
export HOSTED_VLLM_API_KEY=token-abc123           # optional depending on your vLLM setup

# For Ollama, no API key required

# For other providers, check LiteLLM docs
  1. Run PatchPal:
# Use default model (anthropic/claude-sonnet-4-5)
patchpal

# Use a specific model via command-line argument
patchpal --model openai/gpt-5.2-codex  # or openai/gpt-5-mini, anthropic/claude-opus-4-5, etc.

# Use vLLM (local)
# Note: vLLM server must be started with --tool-call-parser and --enable-auto-tool-choice
# See "Using Local Models (vLLM & Ollama)" section below for details
export HOSTED_VLLM_API_BASE=http://localhost:8000
export HOSTED_VLLM_API_KEY=token-abc123
patchpal --model hosted_vllm/openai/gpt-oss-20b

# Use Ollama (local - requires OLLAMA_CONTEXT_LENGTH=32768)
export OLLAMA_CONTEXT_LENGTH=32768
patchpal --model ollama_chat/gpt-oss:20b

# Or set the model via environment variable
export PATCHPAL_MODEL=openai/gpt-5.2
patchpal

Features

Beyond Coding: General Problem-Solving

While PatchPal excels at software development tasks, it's also a general-purpose assistant. With access to web search, file operations, and shell commands, PatchPal can help with research, data analysis, document processing, and more.

PatchPal as General Assistant

Documentation

Full documentation is available here.

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

patchpal-0.12.2.tar.gz (136.8 kB view details)

Uploaded Source

Built Distribution

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

patchpal-0.12.2-py3-none-any.whl (103.8 kB view details)

Uploaded Python 3

File details

Details for the file patchpal-0.12.2.tar.gz.

File metadata

  • Download URL: patchpal-0.12.2.tar.gz
  • Upload date:
  • Size: 136.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for patchpal-0.12.2.tar.gz
Algorithm Hash digest
SHA256 f4676f67b4dcd90f90b39760a719a4baf46005a0c9b37b075c7216671864b691
MD5 81b15f214fee45a502cd54bb9b5211e9
BLAKE2b-256 9985738e9f46da3fc2c04ed79d4e22ca9dfacd401b8c10c1e9df1a00ebb1a0d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for patchpal-0.12.2.tar.gz:

Publisher: release.yml on wiseprobe/patchpal

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

File details

Details for the file patchpal-0.12.2-py3-none-any.whl.

File metadata

  • Download URL: patchpal-0.12.2-py3-none-any.whl
  • Upload date:
  • Size: 103.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for patchpal-0.12.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dee59185794934fedc06e13696cfcb8c442971c8b73dda528ea51936d96764af
MD5 1e82db9bd05375983f2b59ee4e77249d
BLAKE2b-256 c747beb8ef9c64751f4e637172856781f18f4cbd538c3532f6127e0496c7eb5f

See more details on using hashes here.

Provenance

The following attestation bundles were made for patchpal-0.12.2-py3-none-any.whl:

Publisher: release.yml on wiseprobe/patchpal

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