# Pwn AI Openwebui

> Drive PWN::AI::OpenWebUI from pwn_eval.

- Skill: `0dayinc/pwn-ai-openwebui` (Agent Skill)
- Install (CLI): `npx get-skill add 0dayinc/pwn-ai-openwebui`
- Raw SKILL.md: https://api.skillmd.com/api/skills/0dayinc/pwn-ai-openwebui/raw
- Safety review: pending (external: skill-scanner PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: MIT
- Author: 0dayInc (https://skillmd.com/u/0dayinc)
- Updated: 2026-11-19
- Page: https://skillmd.com/skills/0dayinc/pwn-ai-openwebui

---


# PWN::AI::OpenWebUI

Client for Open WebUI's REST API via PWN::Plugins::TransparentBrowser (:rest). Live Open WebUI routes (gateway base_uri, no trailing slash): GET /api/v1/models OpenAI-compat model list (:data) POST /api/v1/chat/completions OpenAI-compat chat (SSE when stream:true) POST /api/chat/completions alias of the above GET /ollama/api/tags proxied Ollama tags (:models) POST /ollama/api/chat proxied Ollama chat (NDJSON when stream:true) POST /ollama/api/embed proxied embeddings (see PWN::MemoryIndex) Bare /api/chat and bare /v1/* are NOT API routes on stock Open WebUI — they 405 or return the SPA HTML shell.

## When to use

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

## Methodologies

Generated from `pwn/ai/open_web_ui.rb`. Prefer the public class methods below.
Class methods take `(opts = {})` and read `opts`.

## How to call

```ruby
PWN::AI::OpenWebUI.help
PWN::AI::OpenWebUI.get_models(opts)
```

## Public methods

- `get_models`
- `get_model`
- `chat_with_tools`
- `chat`
- `authors`
- `help`

## Source

`pwn/ai/open_web_ui.rb`

## Verification

`PWN::AI::OpenWebUI.respond_to?(:get_models)` after the
module is loaded. Read the source for parameter names.

