# Pwn AI Providers Anthropic

> Drive PWN::AI::Providers::Anthropic from pwn_eval.

- Skill: `0dayinc/pwn-ai-providers-anthropic` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add 0dayinc/pwn-ai-providers-anthropic`
- Raw SKILL.md: https://api.skillmd.com/api/skills/0dayinc/pwn-ai-providers-anthropic/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: 0dayInc (https://skillmd.com/u/0dayinc)
- Updated: 2026-12-02
- Page: https://skillmd.com/skills/0dayinc/pwn-ai-providers-anthropic

---

---
name: pwn-ai-providers-anthropic
description: Drive PWN::AI::Providers::Anthropic from pwn_eval.
license: MIT
allowed-tools: [pwn, pwn_eval]
metadata:
  bundled: true
  generated: false
  preserve: true
  module: PWN::AI::Providers::Anthropic
  source: pwn/ai/providers/anthropic.rb
---

# PWN::AI::Providers::Anthropic

This plugin interacts with Anthropic's Claude API. It provides methods to list models, generate completions, and chat. API documentation: https://docs.anthropic.com/en/api Obtain an API key from https://console.anthropic.com/

## When to use

Call `PWN::AI::Providers::Anthropic` from `pwn_eval` when the task needs this module.
Do not reimplement it in shell.

## Catalog authentication

Set `ai.anthropic.key` to a Console API key. Alternatively, obtain a short-lived
Claude API access token for an authorized workspace outside PWN and set
`ai.anthropic.oauth.platform_access_token` through `pwn-vault`. The adapter
sends that token only to `https://api.anthropic.com/v1`. It does not
sign in to Pro/Max subscriptions, use Linked billing grants, import a client
login or refresh the token. Renew it at its source. If the API rejects the
token, PWN does not retry with an API key.

## How to call

```ruby
PWN::AI::Providers::Anthropic.get_models(non_interactive: true).length
```

## Public methods

- `refresh_oauth_bearer_token` and `obtain_oauth_bearer_token` are retired entry points: they raise with migration guidance and do not issue credentials.
- `get_models`
- `get_model`
- `chat_with_tools`
- `chat`
- `authors`
- `help`

## References

- `references/urls.md` — URLs from source

## Source

`pwn/ai/providers/anthropic.rb`

## Verification

The number counts returned Claude API catalog entries, not consumer plan
entitlements. Do not move old subscription tokens into either credential field.

