Catalog PyPI
PACKAGE EXPLORERView in registry

agentpatch

PyPI

Python SDK and CLI for the AgentPatch tool marketplace

agentagentpatchaimarketplacetools
Versions collected1
Direct dependencies2From release 0.2.0
Last observed20 Oct, 22:51 UTC

README

Version 0.2.0 documentation

AgentPatch

Zero-dependency Python SDK and CLI for the AgentPatch tool marketplace. Single file, stdlib only.

Install

pip install agentpatch

Or with pipx for CLI-only usage:

pipx install agentpatch

Or just copy src/agentpatch.py into your project — it has no dependencies beyond Python 3.10+.

Authentication

Get your API key from agentpatch.ai/dashboard, then either:

# Option 1: Save to config file
ap config set-key

# Option 2: Environment variable
export AGENTPATCH_API_KEY=ap_your_key_here

CLI Usage

# Search for tools
ap search "image generation"
ap search --max-price 100 --json

# Get tool details
ap info agentpatch google-search

# Invoke a tool (waits for result by default)
ap run agentpatch google-search --input '{"query": "best pizza NYC"}'

# Invoke without waiting (for async tools)
ap run agentpatch generate-image-recraft --input '{"prompt": "a cat"}' --no-poll

# Check async job status
ap job job_abc123
ap job job_abc123 --poll    # wait for completion

Every command supports --json for scripting:

ap search "email" --json | jq '.[0].slug'
ap run agentpatch google-search --input '{"query": "test"}' --json | jq '.output'

SDK Usage

from agentpatch import AgentPatch

ap = AgentPatch()  # uses AGENTPATCH_API_KEY env var or ~/.agentpatch/config.toml

# Search for tools
tools = ap.search("image generation")
for t in tools["tools"]:
    print(f"{t['owner_username']}/{t['slug']} — {t['price_credits_per_call']} credits")

# Get tool details
tool = ap.get_tool("agentpatch", "google-search")
print(tool["input_schema"])

# Invoke a tool (auto-polls async jobs)
result = ap.invoke("agentpatch", "google-search", {"query": "best pizza NYC"})
print(result["output"])

# Manual async control
result = ap.invoke("agentpatch", "generate-image-recraft", {"prompt": "a cat"}, poll=False)
job = ap.get_job(result["job_id"])

Configuration

API key resolution order:

  1. api_key= parameter (SDK) or --api-key flag (CLI)
  2. AGENTPATCH_API_KEY environment variable
  3. ~/.agentpatch/config.toml file
ap config set-key    # save API key
ap config show       # show current config
ap config clear      # delete config file

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.2.04 Mar 20262

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
fullthom/agentpatch-python

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:51 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:16eecc213251e01209f82750d9339787fd8f7066633a103d54cf6791030e023c