llm-provider-integration

llm-provider-integration is a skill for Claude Code, Codex from samugit83/redamon. It costs 109 tokens per session (709 once invoked), scanned A, original, MIT.

A set of integration rules for adding a large language model (LLM) provider to RedAmon, an application that uses AI models. It covers provider registration, model-name routing, credential storage, and the places where credentials must be passed to model calls.

In plain words
What is it for?
Use it when adding or editing an LLM provider, registering its model names, updating model setup, and connecting credentials to the application’s LLM calls.
Why use it?
It prevents provider keys from reaching scan containers and avoids sending a model request to the wrong provider. It also ensures newly added providers receive credentials at every required call site.

Skill for Claude CodeCodex

About the project

RedAmon is an AI framework that connects reconnaissance, exploitation, and post-exploitation activities into an automated security-testing pipeline, while organizing findings and proposing code fixes. It is for authorized penetration testing, security research, and education. The catalogue entries provide skills and instructions for working with the framework.

samugit83/redamon · 2,391 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/samugit83/redamon/llm-provider-integration
Any agent
npx skills add samugit83/redamon --skill llm-provider-integration
Clone the repo
git clone --depth 1 https://github.com/samugit83/redamon

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for llm-provider-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/samugit83/redamon/llm-provider-integration.svg)](https://agentmods.dev/skills/samugit83/redamon/llm-provider-integration)
Your own site
<a href="https://agentmods.dev/skills/samugit83/redamon/llm-provider-integration"><img src="https://agentmods.dev/badge/skills/samugit83/redamon/llm-provider-integration.svg" alt="Measured on agentmods" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 709 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00109 $0.00709
Opus 5 $0.00055 $0.00354
Sonnet 5 $0.00022 $0.00142
Haiku 4.5 $0.00011 $0.00071

Measured 5d ago against content hash d8bd31bde654, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

llm-provider-integration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/llm-provider-integration/SKILL.md · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

When to Use

  • Adding a new LLM provider (OpenAI-compatible or otherwise) the agent can use.

For a non-LLM external API tool, use agentic-tool-integration.


Critical Rules

  • NEVER let a provider API key reach a scan container. Keys live in exactly two places: Postgres user_llm_providers rows and, in transit, on the wire between webapp and agent. The recon / scan / MCP containers must never see them. Do not thread a provider key through recon settings or container env.
  • NEVER add a model id that is not prefix-routed. Anything other than claude-* and bare OpenAI ids MUST carry a provider/<model> prefix, resolved by parse_model_provider() at agentic/orchestrator_helpers/llm_setup.py:67. An unprefixed id routes to the wrong provider silently.
  • ALWAYS register the provider in the webapp provider-type registry and propagate the key kwarg into every LLM call site. A provider registered but not propagated builds a client with no credentials. The guide enumerates all 11 integration points; touch each.

The two invariants

Invariant Where Failure if broken
Keys only in Postgres + webapp<->agent transit webapp/prisma/schema.prisma user_llm_providers; agent settings fetch key leaks into scan/MCP containers
Model id prefix routing parse_model_provider() llm_setup.py:67 model routes to the wrong provider

Commands

docker compose build agent && docker compose up -d agent   # agentic/ is baked
docker compose exec webapp npx prisma db push              # provider schema changes (NEVER prisma migrate)

Resources

Read the full file on GitHub · 64 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 64 lines · 109 tokens per session scan A d8bd31bde654

Subscribe to this mod's changes

llm-provider-integration is a skill published in the GitHub repository samugit83/redamon (2,391 stars, last pushed 2d ago), licensed MIT. It adds 109 tokens to every session and 709 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.