Skip to main content

Recon QA

Turn an OpenAPI spec into executable API checks and an HTML failure report.

PyPI version CI status Supported Python versions MIT license

Recon QA CLI in Action

Recon QA discovers endpoints, derives test cases from their schemas, executes them with bounded concurrency, and writes self-contained HTML and JSON reports. It works without an AI account; LLM-assisted generation and failure analysis are optional.

Use Recon only on applications you own or are explicitly authorized to test. Generated requests can create, update, or delete data described by the target API.

Quick Start (Just 1 Command)

Requires Python 3.12 or newer.

pip install recon-qa
recon test http://localhost:8000

That's it. Recon automatically:

  1. Discovers OpenAPI endpoints & web routes
  2. Generates happy-path, boundary fuzzing, negative validation & authentication tests
  3. Executes tests with bounded concurrency and live terminal feedback
  4. Classifies failures with deterministic root-cause analysis
  5. Generates a self-contained interactive HTML & JSON report

Or Let the Autonomous Agent Handle It

Give Recon natural language instructions to test your web app and fix bugs:

recon agent "Test checkout on localhost:8000 and fix any bugs"

Or drop into an interactive QA pair-programming session:

recon agent

Optional Commands

You only need the command above to get your testing done. These optional commands are available when you need extra control:

Command Description
recon fix Automatically patch source code defects found in your test run
recon report Open the interactive HTML test report in your default browser
recon config Configure AI provider keys (recon set-key) or switch models (recon model)
recon doctor Check runtime, Playwright Chromium setup, and system diagnostics

Common Flags for recon test

# Include browser discovery & UI interaction checks
recon test http://localhost:8000 --browser

# Supply authentication
recon test http://localhost:8000 --header "Authorization: Bearer <token>"

# Limit testing to specific endpoints
recon test http://localhost:8000 --include "/api/orders*" --exclude "/api/admin*"

# Pass custom or non-standard OpenAPI specification file
recon test http://localhost:8000 --spec ./openapi.yaml

Reports are stored under ~/.recon/reports/ by default. Use --report-dir to choose another location. A test run exits with code 1 when it finds failed checks, which makes the command useful as a CI quality gate.

See the output

Recon keeps the terminal summary concise and puts the complete evidence in a self-contained interactive report.

Terminal run HTML report
Recon QA terminal output showing discovered routes, generated checks, and detected defects Recon QA HTML report showing results and failure details

Architecture & Execution Pipeline

flowchart TD
    Target["Target Web Application / API"] --> Discovery["Discovery Engine\n(OpenAPI 3.x Parser & Web Crawler)"]
    Discovery --> Fuzzer["Schema Fuzzer & Planner\n(Happy-path, Boundary, Negative & Auth Cases)"]
    Fuzzer --> Pool["Bounded Async Worker Pool\n(Semaphore Concurrency Control)"]
    Pool --> Execution["Execution Runner\n(HTTP Client & Playwright Headless Browser)"]
    Execution --> Classifier["Deterministic Failure Classifier\n(Status Codes, Console Logs, Error Payloads)"]
    Classifier --> Report["Self-Contained HTML & JSON Reports\n(Failure Screenshots, Traces, Assertions)"]
    Classifier --> LLM["Optional Multi-Provider LLM RCA\n(Gemini, Mistral, OpenAI, Ollama Diagnostics)"]

What Recon checks

  • Discovers OpenAPI 3.x and Swagger 2.0 operations.
  • Generates happy-path, validation, boundary, negative, and authentication cases.
  • Uses schema constraints including types, enums, numeric ranges, string lengths, and formats.
  • Orders dependent operations and can reuse IDs returned by earlier requests.
  • Applies bounded asynchronous concurrency.
  • Classifies HTTP, timeout, assertion, and security-related failures.
  • Produces standalone HTML reports and machine-readable JSON results.
  • Optionally crawls pages and runs Playwright browser checks.
  • Optionally asks a configured LLM for additional cases and failure explanations.

Recon is intended to expose suspicious behavior for review. It is not a proof of correctness, a replacement for application-specific tests, or a substitute for a professional security assessment.

AI Providers & Models

Recon works out of the box with zero configuration using deterministic failure analysis. To connect frontier reasoning models for autonomous agent tasks:

recon config set-key
# Select from Anthropic (claude-sonnet-5-5), OpenAI (gpt-6-luna), Gemini (gemini-3.8-flash), DeepSeek, Mistral, or local Ollama

To switch models anytime:

recon config model

Inspect active providers:

recon config list

CI example

name: API quality
on: [push, pull_request]

jobs:
  recon:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
        with:
          python-version: "3.12"
      - run: pip install recon-qa
      - run: recon test http://127.0.0.1:8000 --no-ai

Start your application in an earlier step and upload the chosen report directory as an artifact if the report should be retained.

How the pipeline fits together

OpenAPI document / application URL
              │
              ▼
       Endpoint discovery
              │
              ▼
  Schema-driven test generation
              │
              ▼
 Stateful, bounded execution ───── optional Playwright checks
              │
              ▼
 Deterministic classification ──── optional LLM analysis
              │
              ▼
        HTML + JSON reports

The LLM layer does not decide whether deterministic assertions passed or failed.

Current limitations

  • Python 3.12 or newer is required.
  • Authentication discovery handles common flows but cannot infer every custom login or multi-factor workflow.
  • Generated payloads are schema-driven and may not satisfy undocumented business rules.
  • Browser support requires the browser extra and a separate Chromium installation.
  • OpenAPI documents that rely heavily on vendor extensions may need a reduced reproduction and compatibility fix.
  • The project is alpha software; review generated requests before pointing it at data-bearing environments.

Development

git clone https://github.com/ttnhan227/recon.git
cd recon
python -m pip install -e ".[browser,dev]"
python -m playwright install chromium

ruff check .
ruff format --check .
mypy recon tests
pytest -q
python -m build

See the contribution guide before proposing a change, the roadmap for current priorities, and the changelog for release history.

Feedback wanted

If you try Recon against a real API, please share what worked, what blocked you, and the framework or OpenAPI generator you used in the trial feedback form. Sanitized minimal specifications are especially useful. See the technical walkthrough for a concise explanation you can share with another developer.

License

Recon QA is available under the MIT License.

Metadata

Release files for recon-qa 0.3.1

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

Source distribution (sdist)

Source distribution for recon-qa 0.3.1
File Size Uploaded Provenance Actions
recon_qa-0.3.1.tar.gz 106.7 kB Without provenance Details for recon_qa-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for recon-qa 0.3.1
File Interpreter ABI Platform Actions
recon_qa-0.3.1-py3-none-any.whl Python 3 none any Details for recon_qa-0.3.1-py3-none-any.whl

Total release size: 228.8 kB

Release files / recon_qa-0.3.1.tar.gz

Download URL recon_qa-0.3.1.tar.gz
Size 106.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9b14105e974c0b3c625cad2bd257e1d62d52184294dfdd10c088efc4e4f365a5
BLAKE2b-256 checksum
How to use checksums
3b99df82c333748c4344d615542fdb2777e4b77ecff966a41590378486c01f0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / recon_qa-0.3.1-py3-none-any.whl

Download URL recon_qa-0.3.1-py3-none-any.whl
Size 122.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2b377b0d588f12de853be08a3a28df9c42350de26fa7edca2cca39461e1e3de
BLAKE2b-256 checksum
How to use checksums
64d68b4e0bcb77b6b54df16de942a41e13ffcd47697ed634b3fb5c6b69f4bb18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for recon-qa 0.3.1

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.

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