Custom LLM Provider (Groq) + Ollama CPU timeout — configuration questions #315
Replies: 2 comments
-
|
For this use case, I would avoid thinking about it as one "best cheap model" and instead split the pentest workflow by task type. On a CPU-only VM, local 32B models are likely to hit timeout/latency issues for frequent runs. A more sustainable setup might be:
That gives you a middle ground between expensive Claude-only runs and slow local-only runs. I am building a private-beta API aggregation layer focused on Chinese models like Qwen / DeepSeek / GLM-style providers, using official-provider keys. This kind of high-frequency security workflow is exactly where cheaper model routing can matter. Happy to share test credits if you want to benchmark a few models against your PentAGI pipeline. For your current setup, is the main blocker quality, latency, or keeping per-run cost predictable? |
Beta Was this translation helpful? Give feedback.
-
|
Good |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team,
Running PentAGI on a local Ubuntu VM and trying to configure a
free/low-cost LLM setup. Sharing full environment details below.
Background & Goal
PentAGI worked perfectly with Anthropic/Claude paid APIs — full
pentest completed successfully with all 8 test areas covered and
16 vulnerabilities found. However the cost per run was significant.
Our goal is to run PentAGI at scale with minimum to zero cost.
The use case: our developers are heavily vibe coding (AI-generated
code with minimal manual review), which means we need to run
frequent automated penetration tests against new app builds as
part of our security workflow. Paying per pentest run is not
sustainable at that frequency.
We are looking for the most cost-effective LLM configuration
that can still produce reliable pentest results.
Environment
llama3.1:8b (5GB)
What We Tried
Ollama (local — preferred for zero cost)
OLLAMA_SERVER_URL=http://<docker-bridge-ip>:11434OLLAMA_HOST=0.0.0.0andOLLAMA_KEEP_ALIVE=30mvia systemd overrideOLLAMA_SERVER_REQUEST_TIMEOUT=900context canceled — Post http://<docker-bridge-ip>:11434/api/chatafter ~4 minutes regardless of timeout setting
Docker containers are running alongside
Groq (custom provider — free tier attempt)
LLM_SERVER_URL=https://api.groq.com/openai/v1LLM_SERVER_PROVIDER=(blank)LLM_SERVER_MODEL=meta-llama/llama-4-scout-17b-16e-instructmax_tokens: 8192on all agentsPENTAGI_LLM_SERVER_CONFIG_PATH=./groq.provider.ymlLLM_SERVER_CONFIG_PATH=/opt/pentagi/conf/custom.provider.ymlwhich exceeds Groq free tier limits:
rate limit hit on first request (~25K used of 30K)
every parallel agent call
Questions
Ollama CPU — Is
context canceleda known issue withCPU-only inference on a VM? Is there a way to extend PentAGI's
internal HTTP client timeout beyond what
OLLAMA_SERVER_REQUEST_TIMEOUTcontrols?Groq TPM — PentAGI's system prompt alone (~16K tokens)
exceeds most Groq free tier model limits. Is there a way to
reduce the system prompt size or use a lighter agent config
for resource-constrained setups?
Custom YAML — Is the YAML provider config file the only
way to set
max_completion_tokensper agent, or is there an.envvariable we missed?Recommended minimum cost setup — Given our use case
(frequent automated pentests of vibe-coded apps), what is
the recommended lowest-cost or free LLM configuration that
can reliably complete a full PentAGI flow?
Thanks for building this — it produced excellent results with
Claude and we want to make it a standard part of our security
pipeline.
Beta Was this translation helpful? Give feedback.
All reactions