An agentic coding and automation assistant, supporting both local and cloud LLMs
Project description
PatchPal — An Agentic Coding and Automation Assistant
Supporting both local and cloud LLMs, with autopilot mode and extensible tools.
PatchPal is an AI coding agent that helps you build software, debug issues, and automate tasks. 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.
Most agent frameworks are built in TypeScript. PatchPal is Python-native, designed for developers who want both interactive terminal use (patchpal) and programmatic API access (agent.run("task")) in the same tool—without switching ecosystems.
Key Features
- Terminal Interface for interactive development
- Python SDK for flexibility and extensibility
- Built-In and Custom Tools
- Skills System and MCP Integration
- Autopilot Mode using Ralph Wiggum loops
- Project Memory automatically loads project context from
~/.patchpal/repos/<repo-name>/MEMORY.mdat startup.
PatchPal prioritizes customizability: custom tools, custom skills, a flexible Python API, and support for any tool-calling LLM.
Full documentation is here.
Quick Start
$ pip install patchpal # install
$ patchpal # start
Platform support: Linux, macOS, and Windows are all supported
Setup
-
Install:
pip install patchpal -
Get an API key or a Local LLM Engine:
- [Cloud] For Anthropic models (default): Sign up at https://console.anthropic.com/
- [Cloud] For OpenAI models: Get a key from https://platform.openai.com/
- [Local] For vLLM: Install from https://docs.vllm.ai/ (free - no API charges) Recommended for Local Use
- [Local] For Ollama: Install from https://ollama.com/ (⚠️ requires
OLLAMA_CONTEXT_LENGTH=32768- see Ollama section below) - For other providers: Check the LiteLLM documentation
-
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
- 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
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
Tip for Local Models: Local models (i.e., models served by Ollama or vLLM) may work better with the environment variable settings, PATCHPAL_MINIMAL_TOOLS=true and PATCHPAL_ENABLE_WEB=false, which provides only essential tools (read_file, read_lines, write_file, edit_file, run_shell), reducing tool confusion with smaller models.
Beyond Coding: General Problem-Solving
While originally designed for software development, PatchPal is also a general-purpose assistant. With web search, file operations, shell commands, and custom tools/skills, it can help with research, data analysis, document processing, log file analyses, etc.
Documentation
Full documentation is available here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file patchpal-0.17.1.tar.gz.
File metadata
- Download URL: patchpal-0.17.1.tar.gz
- Upload date:
- Size: 155.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de0b8e3e08f0935f2fd4c88023ca8dc0accd175dad875dc2acd97ea2826e709f
|
|
| MD5 |
cd496d854431c05b898c8be8dee7d1e3
|
|
| BLAKE2b-256 |
e96bb914b4cd88f3b644d0d15e63496849238e941fe78e30c45065c1899fc951
|
Provenance
The following attestation bundles were made for patchpal-0.17.1.tar.gz:
Publisher:
release.yml on amaiya/patchpal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
patchpal-0.17.1.tar.gz -
Subject digest:
de0b8e3e08f0935f2fd4c88023ca8dc0accd175dad875dc2acd97ea2826e709f - Sigstore transparency entry: 986242325
- Sigstore integration time:
-
Permalink:
amaiya/patchpal@61b559245d2ed686fc2e90f26812e0960d11179d -
Branch / Tag:
refs/tags/0.17.1 - Owner: https://github.com/amaiya
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@61b559245d2ed686fc2e90f26812e0960d11179d -
Trigger Event:
release
-
Statement type:
File details
Details for the file patchpal-0.17.1-py3-none-any.whl.
File metadata
- Download URL: patchpal-0.17.1-py3-none-any.whl
- Upload date:
- Size: 120.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4a0c341c2b98dbbd0ed35cd5b70c3ff3df65c84020fb6879776536905536032
|
|
| MD5 |
0bc5b518e899dbbafc8e12461a3f83fc
|
|
| BLAKE2b-256 |
b8302031a9b5246097fc1f5f5bcf0057eb8e7eabbbafbda0fe6eeefce8e008a7
|
Provenance
The following attestation bundles were made for patchpal-0.17.1-py3-none-any.whl:
Publisher:
release.yml on amaiya/patchpal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
patchpal-0.17.1-py3-none-any.whl -
Subject digest:
c4a0c341c2b98dbbd0ed35cd5b70c3ff3df65c84020fb6879776536905536032 - Sigstore transparency entry: 986242395
- Sigstore integration time:
-
Permalink:
amaiya/patchpal@61b559245d2ed686fc2e90f26812e0960d11179d -
Branch / Tag:
refs/tags/0.17.1 - Owner: https://github.com/amaiya
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@61b559245d2ed686fc2e90f26812e0960d11179d -
Trigger Event:
release
-
Statement type: