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.
- Models and prices: pentestllm.ai/models
- Daily real-model check: pentestllm.ai/proof
- API docs: pentestllm.ai/docs
- Acceptable use: pentestllm.ai/acceptable-use
Run by Uplink Switch LLC.
Metadata
Release files for pentestllm 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pentestllm-0.1.0.tar.gz | 3.1 kB | Without provenance | Details for pentestllm-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pentestllm-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pentestllm-0.1.0-py3-none-any.whl |
Total release size: 6.8 kB
Release files / pentestllm-0.1.0.tar.gz
| Download URL | pentestllm-0.1.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7768b347936fb1b6e58a82bc74c1e0a3afb0c98bffb8b9fe7012c6cdf2a9fc6f
|
|
BLAKE2b-256 checksum How to use checksums |
1161057c9e24ba6618e06071b049518361df082513a3efae3dd609adcaa4636b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / pentestllm-0.1.0-py3-none-any.whl
| Download URL | pentestllm-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc7f8200eaacf6a3eac0b2158838f1b8ea3f87051c90c5ee32b88a23ab2e7ef0
|
|
BLAKE2b-256 checksum How to use checksums |
73ee4da7ffc5185192fbabcf9ae2236e2226e4dcfb7c21b116e404bb4240bf75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for pentestllm 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.