Skip to main content

Wide SDK

Wide SDK

Python SDK for building AI agents on Wide's web development and web security tooling

Download · Build · Changelog · Wide IDE · Wide CLI · Wide App · Wide Action · Wide Rules · License


Wide blends web development and web security into one AI-powered workflow. Write the code, catch the vulnerability, and test the fix in the same place.

Overview

Wide SDK allows Python developers to programmatically build, customize, and orchestrate autonomous AI coding, database analysis, and penetration testing agents with native Wide security tooling.

  • Autonomous Agent Loop: Full ReAct (Reasoning and Action) loop with dynamic context compaction, execution limits, and sub-70ms lazy import times.
  • Native SAST Engine: Programmatic access to Wide's 729 curated vulnerability inspection rules, offline OSV advisory bundles, and SHA256SUMS-verified rule synchronization.
  • Database 2.0 Client: Programmatic inspection, querying, query history tracking, multi-format export (CSV, JSON, SQL INSERT), and Mermaid ERD generation for SQLite, PostgreSQL, MySQL, and Redis.
  • Real CDP Browser Controller: Headless and headed Chromium browser automation supporting element ref interaction, HAR 1.2 traffic capture with sensitive header redaction, stealth evasion mode, and context manager lifecycle (with BrowserController()).
  • DecisionCore Multi-Agent Primitives: Algorithmic multi-agent consensus, dwell gates, lease claim tables, and candidate patch scoring (BarrierBudget, WeightedScorer, ClaimTable, PluralityConsensus, CommitmentGate).
  • Security Fuzzing and Payloads: Built-in web endpoint fuzzer and attack vector generator for automated verification.
  • Multi-Provider Architecture: Pluggable LLM backends supporting Ollama (local offline), Google Gemini, Anthropic Claude, and OpenAI/DeepSeek with connection pooling and automated retries.
  • Custom Tool Ecosystem: Extensible @tool interface with automatic JSON Schema generation from Python function signatures and type hints.

Installation

pip install wide-sdk

Quick Start

from wide_sdk import Agent, GeminiProvider

provider = GeminiProvider(api_key="YOUR_GEMINI_API_KEY")
agent = Agent(provider=provider, working_directory=".")

response = agent.run("Scan this project for SQL injection vulnerabilities and fix any confirmed issues.")
print(response)

Security Scanner API

Run Wide's comprehensive static analysis engine directly in Python:

from wide_sdk.security import SecurityScanner

scanner = SecurityScanner(workspace_dir=".")
results = scanner.scan(min_severity="HIGH")

for finding in results.findings:
    print(f"[{finding.severity}] {finding.category} in {finding.file}:{finding.line}")
    print(f"Issue: {finding.message}")
    print(f"Remediation: {finding.remediation}\n")

Active Fuzzer API

Automatically probe an API endpoint parameter:

from wide_sdk.security import fuzz_endpoint

report = fuzz_endpoint(
    url="http://localhost:3000/api/search",
    param="q",
    payload_type="sqli"
)

if report.is_vulnerable:
    print(f"Vulnerability confirmed on {report.param}!")

Configuration

Set up environment variables for your preferred provider:

export GEMINI_API_KEY="your-gemini-key"
export ANTHROPIC_API_KEY="your-claude-key"
export OPENAI_API_KEY="your-openai-key"
export DEEPSEEK_API_KEY="your-deepseek-key"

The Wide Ecosystem

Wide blends web development and web security into one AI-powered workflow. Every product runs on the same security rules, so a vulnerability caught in one place is caught everywhere.

Product Who it is for
Wide IDE The flagship. A full IDE for web developers and pentesters: write code, see vulnerabilities as you type, and test them with built-in pentest tools and AI agents.
Wide App A prompt-only AI workspace for people who do not need a full IDE. Describe the task; Wide's agents build, fix, and audit the project.
Wide CLI The same AI agents and security scanner in your terminal.
Wide Action The same rules as a pull request security gate in GitHub CI.
Wide SDK A Python library for building your own agents on Wide's security tooling.
Wide Rules The shared rule and advisory database behind every Wide product.

License

GPL-3.0-or-later sl4de

Metadata

Release files for wide-sdk 0.7211126

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

Source distribution (sdist)

Source distribution for wide-sdk 0.7211126
File Size Uploaded Provenance Actions
wide_sdk-0.7211126.tar.gz 340.4 kB With provenance Details for wide_sdk-0.7211126.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wide-sdk 0.7211126
File Interpreter ABI Platform Actions
wide_sdk-0.7211126-py3-none-any.whl Python 3 none any Details for wide_sdk-0.7211126-py3-none-any.whl

Total release size: 683.9 kB

Release files / wide_sdk-0.7211126.tar.gz

Download URL wide_sdk-0.7211126.tar.gz
Size 340.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bef207961ee379e2e064525d22c671abe7e1589145fd67ccbfccea3c71d432ad
BLAKE2b-256 checksum
How to use checksums
7bcf63e8193240f0d011c46a9d2c36109e2866364d3b889480181f32c9b40579
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / wide_sdk-0.7211126-py3-none-any.whl

Download URL wide_sdk-0.7211126-py3-none-any.whl
Size 343.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
595051df0c2f8d281d34dd3b9a74a746e92b92ac4c64c241663f9ddf23ec4949
BLAKE2b-256 checksum
How to use checksums
5838114d3fd23e891054ae520c1857a117ad9310a27dd272521edf3a3ac3229b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for wide-sdk 0.7211126

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for wide_sdk-0.7211126.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

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