Skip to main content

PPCOpen

The Open-Source Amazon PPC Strategy Engine, Backtest Leaderboard & AI Agent MCP Hub.

Website License: AGPL v3 Python 3.10+ MCP Ready

Closed-source Amazon PPC tools get acquired, hike prices, lock you into black-box algorithms, and eventually shut down. Your ad automation and bidding logic should never die with a corporate buyout.

PPCOpen gives sellers, agencies, and AI agents a transparent, deterministic strategy engine with hard safety guardrails, a 20-strategy open-source catalog, a backtest leaderboard, and a zero-dependency MCP server.


Why PPCOpen?

  • Open Strategy Marketplace: Pick from 20 built-in battle-tested Amazon PPC strategies or author your own Python BaseStrategy in 20 lines of code.
  • Deterministic Hard Guardrails: No third-party or AI-authored strategy can ever exceed your min_bid, max_bid, max_bid_change_pct, or pause/negate protected brand terms.
  • AI Agent Native (MCP): Connect Claude, Cursor, OpenClaw, or your own agent via ppcopen mcp so AI can inspect campaigns, backtest strategies, and scaffold new algorithms safely.
  • Self-Host or Managed Cloud: Run locally with pip install ppcopen, or deploy with zero Amazon Ads API setup friction on ppcopen.com.

Quickstart

pip install ppcopen

List all 20 built-in strategies:

ppcopen list

Run a backtest leaderboard across all strategies:

ppcopen leaderboard --target-acos 0.30

Backtest a specific strategy on your exported campaign/search-term CSV:

ppcopen backtest target_acos_optimizer --csv examples/sample_entities.csv --target-acos 0.28

Validate a custom community or AI-authored strategy:

ppcopen validate examples/custom_strategy_template.py

AI Agent / MCP Integration

Start the built-in Model Context Protocol server over stdio:

ppcopen mcp

Exposed MCP tools:

  • list_strategies — filter catalog by category or risk level (LOW, MEDIUM, HIGH)
  • run_backtest — simulate projected ACoS, spend saved, and action counts
  • leaderboard — rank all strategies against benchmark portfolio data
  • evaluate_guardrails — dry-run any proposed bid change against safety bounds
  • generate_strategy_scaffold — emit a ready-to-edit BaseStrategy Python template

Writing Your Own Strategy

from ppcopen import BaseStrategy, BidAdjustment, EntitySnapshot, EntityStatus, EntityType, Guardrails, RiskLevel, StrategyMetadata, StrategyResult


class WeekendAcosDefender(BaseStrategy):
    metadata = StrategyMetadata(
        id="weekend_acos_defender",
        name="Weekend ACoS Defender",
        version="0.1.0",
        author="Your Name",
        category="bidding",
        risk_level=RiskLevel.LOW,
        description="Cools overspending exact targets before margins erode.",
    )

    def evaluate(self, entities: list[EntitySnapshot], guardrails: Guardrails) -> StrategyResult:
        res = StrategyResult(strategy_id=self.metadata.id)
        for e in entities:
            if e.status == EntityStatus.ENABLED and e.entity_type == EntityType.KEYWORD:
                if e.clicks >= 6 and e.acos > guardrails.target_acos:
                    res.bid_adjustments.append(
                        BidAdjustment(e.entity_id, e.current_bid, round(e.current_bid * 0.85, 2), "ACoS above target", "WKD_1")
                    )
        return res

Even if a strategy accidentally proposes $999.00, BaseStrategy.run() enforces apply_guardrails() automatically before any action leaves the engine.


Built-In Strategy Catalog (20 Strategies)

Category Strategies
Bidding target_acos_optimizer, zero_impression_booster, profit_harvester_conservative, high_acos_bleeder_cut, margin_break_even_balancer
Negation bleeding_term_blocker, cannibalization_guard
Harvesting exact_keyword_harvester, asin_target_harvester, zombie_keyword_reviver, new_asin_discovery
Protection click_threshold_guardian, spend_cap_guardian, brand_defense_shield, low_ctr_trimmer, inventory_aware_throttle
Scaling launch_aggressive_ranker, top_of_search_sniper, seasonality_ramp, portfolio_budget_rebalancer

License

  • Core Engine (src/ppcopen/): GNU AGPL v3.0 or later (AGPL-3.0-or-later). Anyone can self-host freely; hosted commercial SaaS derivatives must remain open source or obtain a commercial license.
  • Example & Community Strategy SDK Templates (examples/): MIT.

Built by PPCOpen (ppcopen.com) — ppcopen.com@gmail.com

Metadata

Release files for ppcopen 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ppcopen 0.1.0
File Size Uploaded Provenance Actions
ppcopen-0.1.0.tar.gz 23.2 kB Without provenance Details for ppcopen-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ppcopen 0.1.0
File Interpreter ABI Platform Actions
ppcopen-0.1.0-py3-none-any.whl Python 3 none any Details for ppcopen-0.1.0-py3-none-any.whl

Total release size: 46.0 kB

Release files / ppcopen-0.1.0.tar.gz

Download URL ppcopen-0.1.0.tar.gz
Size 23.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d7508456d23ae02e0d739fecced969e879b2744aa0b88fb80e89813fa2965d4e
BLAKE2b-256 checksum
How to use checksums
41bb3f1d0366b96583579d859be3bc4af39f364970c5669a7c92dc688bb971d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via ppcopen-uploader/0.1.0

Release files / ppcopen-0.1.0-py3-none-any.whl

Download URL ppcopen-0.1.0-py3-none-any.whl
Size 22.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bdd22c769dff7690b1f3bcc5cffde710243cac123190996eaaa935cda3f6ca6e
BLAKE2b-256 checksum
How to use checksums
df34128b89528c910041014bed704d590278d5a0279ac80726a6903a66747779
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via ppcopen-uploader/0.1.0

Security for ppcopen 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page