llm-provider-integration
Skill2.9k starsChanged 9 months agoMITView on GitHub
Adding an LLM provider to RedAmon: the credential boundary (keys must never reach scan containers), prefix-routed model ids, and the provider registry. A misrouted model id or a leaked key are the two failures this guards. Trigger: adding or editing an LLM provider; editing parse_model_provider in agentic/orchestrator_helpers/llm_setup.py, the webapp provider-type registry, the user_llm_providers model, or an LLM call site that passes an API key; a non-chat provider type (TypeSafe Jev) or a path that picks "any provider row".
Trending
More talk lately.thin dataabout the whole repository
Who's talking about samugit83/redamon
- @agentwire.thecompound.tech“https://github.com/samugit83/redamon more like this: https://agentwire.thecompound.tech/aw/s7ukpg”Bluesky · Oct 2, 2026 · 1 likes
- raphabot/awesome-cybersecurity-agentic-ai“Add RedAmon to Tools”GitHub · Oct 1, 2026
- kyrolabs/awesome-langchain“Add RedAmon to Agents”GitHub · Oct 1, 2026
- enaqx/awesome-pentest“Add RedAmon to Multi-paradigm Frameworks”GitHub · Oct 1, 2026
- The-Art-of-Hacking/h4cker“Add RedAmon to AI Agentic Tools for Cybersecurity”GitHub · Oct 1, 2026
The biggest 5 of 7 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 7
Talked about on GitHub and Bluesky (7 times).
On GitHub · 6
- Oct 1, 2026Add RedAmon to Tools — raphabot/awesome-cybersecurity-agentic-ai0 reactions
- Oct 1, 2026Add RedAmon to Agents — kyrolabs/awesome-langchain0 reactions
- Oct 1, 2026Add RedAmon to Multi-paradigm Frameworks — enaqx/awesome-pentest0 reactions
- Oct 1, 2026Add RedAmon to AI Agentic Tools for Cybersecurity — The-Art-of-Hacking/h4cker0 reactions
- Oct 1, 2026Add RedAmon to Pentest & Red-Team Agents — scadastrangelove/awesome-ai-security-tools0 reactions · 1 comment
1 more on GitHub
- Jun 6, 2026[Add] RedAmon (samugit83/redamon) — PyTorchKR/landscape0 reactions
On Bluesky · 1
- Oct 2, 2026https://github.com/samugit83/redamon more like this: https://agentwire.thecompound.tech/aw/s7ukpg — @agentwire.thecompound.tech1 likes and repost
In this repository24 other files it gives its agents.
- agentic/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- recon/AGENTS.mdAGENTS.md
- recon_orchestrator/AGENTS.mdAGENTS.md
- webapp/AGENTS.mdAGENTS.md
- agentic/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- recon/CLAUDE.mdCLAUDE.md
- recon_orchestrator/CLAUDE.mdCLAUDE.md
- webapp/CLAUDE.mdCLAUDE.md
- add-community-skillSkill
- add-partial-reconSkill
- agentic-tool-integrationSkill
- builtin-agent-skillSkill
- graph-db-writesSkill
- mcp-server-toolsSkill
- orchestrator-container-spawnSkill
- priority-board-triageSkill
- project-settings-cascadeSkill
- recon-ai-enrichmentSkill
- recon-tool-integrationSkill
- redamon-testingSkill
- supply-chain-scanSkill
- traffic-captureSkill
The file
Files
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_providersrows 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 aprovider/<model>prefix, resolved byparse_model_provider()at agentic/orchestrator_helpers/llm_setup.py:67. An unprefixed id routes to the wrong provider silently. - NEVER treat every
user_llm_providersrow as a chat LLM. A non-chat type (todayjev, the TypeSafe decision API) must be skipped by every path that builds a chat model, or its token is sent to the wrong host:setup_llm's custom branch buildsChatOpenAI(api_key=<row key>)with no base URL, which is api.openai.com. Add the type toNON_CHAT_PROVIDER_TYPESin BOTH twins (agentic/llm_builder.py,webapp/src/lib/llmProviderKinds.ts); usechat_providers()/isChatProviderwherever rows are listed, counted, gated or forwarded (the/api/modelsforward, the project LLM gate, the triage preflight, the feature-model grid); and never let a stalecustom/<id>fall back to "the first provider" (custom_provider_or_fallbackfalls back only to custom-capable types).setup_llmalso refuses a non-chat type outright. - A non-chat provider's endpoint is a constant, and its type is locked.
agentic/jev_client.pyis the only code that talks toapi.typesafe.ai: a fixed base URL, no redirects, fixed error texts. On the webapp, POST forces model, URL and headers and allows one row per user; PUT and the test route refuse a type change in either direction and ignore a body-supplied URL/headers for a stored row, so a stored token can never be re-pointed at another host. - 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
- docs/readmes/coding_agent_prompts/PROVIDER_INTEGRATION_GUIDELINES.md - the 11 integration points, decision tree, and model-id prefix table
- Related skill:
agentic-tool-integration
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

