Skip to main content

pentestllm

Python client for PentestLLM: security-tuned, abliterated and uncensored models on one prepaid API key, for authorized penetration testing, red teaming, bug bounty and CTF work. The API speaks the OpenAI and Anthropic formats, so you keep the official SDKs.

For authorized security testing only: systems you own or have written permission to test. auto/security picks a security build per request and bills at that model's own price.

pip install "pentestllm[openai]"      # or [anthropic], or [all]
export PENTESTLLM_API_KEY="..."

Get a key at app.pentestllm.ai/console. Credit is prepaid from $10, with no subscription.

OpenAI SDK

import pentestllm

client = pentestllm.openai_client()
reply = client.chat.completions.create(
    model="auto/security",
    messages=[{"role": "user", "content": "Say hi in five words."}],
)
print(reply.choices[0].message.content)

Anthropic SDK

import pentestllm

client = pentestllm.anthropic_client()
msg = client.messages.create(
    model="auto/security",
    max_tokens=200,
    messages=[{"role": "user", "content": "Say hi in five words."}],
)
print(msg.content[0].text)

Prices, no key needed

import pentestllm

for m in pentestllm.models():
    p = m["pricing"]
    print(f'{m["id"]:<40} ${p["input"]}/${p["output"]} per 1M tokens')

Without this package

Set OPENAI_BASE_URL or ANTHROPIC_BASE_URL to https://api.pentestllm.ai/v1 and use your key.

Run by Uplink Switch LLC.

Sister sites

The same gateway, sold each on its own key and console:

  • UncensoredLLM: the uncensored and abliterated builds as an API, priced per token.
  • Unrestrictable: uncensored AI chat, images and video in the browser, no key needed.
  • RelaySwitch: one API key for coding agents, paid by card or crypto.
  • UplinkSwitch: the gateway itself: one key and one base URL for every model.

All of them: UplinkSwitch for every model, UncensoredLLM for abliterated builds, Unrestrictable for chat in the browser, PentestLLM for security work, RelaySwitch for coding agents.

Metadata

Release files for pentestllm 0.1.1

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

Built distribution (wheel)

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

Release files / pentestllm-0.1.1-py3-none-any.whl

Download URL pentestllm-0.1.1-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7355a507fdd4bffa03d29a1ed042acb537a9ab84e4aac2e66cd80a15be3d9e24
BLAKE2b-256 checksum
How to use checksums
c838c4aaaa0f66264d6f038f51a06752b800bda9a1b671424ee8a9abad90bd92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for pentestllm 0.1.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