Metadata-Version: 2.5
Name: pentestllm
Version: 0.1.0
Summary: Security-tuned, abliterated and uncensored models on one prepaid API key, for authorized penetration testing, red teaming, bug bounty and CTF work.
Project-URL: Homepage, https://pentestllm.ai
Project-URL: Models, https://pentestllm.ai/models
Author-email: Uplink Switch LLC <hello@pentestllm.ai>
License-Expression: MIT
License-File: LICENSE
Keywords: ctf,cybersecurity,llm,llm api,openai compatible,penetration testing,pentest,red team
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.9
Provides-Extra: all
Requires-Dist: anthropic>=0.34; extra == 'all'
Requires-Dist: openai>=1.40; extra == 'all'
Provides-Extra: anthropic
Requires-Dist: anthropic>=0.34; extra == 'anthropic'
Provides-Extra: openai
Requires-Dist: openai>=1.40; extra == 'openai'
Description-Content-Type: text/markdown

# pentestllm

Python client for [PentestLLM](https://pentestllm.ai): 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.

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

Get a key at [app.pentestllm.ai/console](https://app.pentestllm.ai/console). Credit is prepaid from $10, with no subscription.

## OpenAI SDK

```python
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

```python
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

```python
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](https://pentestllm.ai/models)
- Daily real-model check: [pentestllm.ai/proof](https://pentestllm.ai/proof)
- API docs: [pentestllm.ai/docs](https://pentestllm.ai/docs)
- Acceptable use: [pentestllm.ai/acceptable-use](https://pentestllm.ai/acceptable-use)

Run by Uplink Switch LLC.
