PentAGI is a self-hosted penetration-testing agent system; this page configures its custom chat endpoint for RedRouter.
Recipe, not run by RedRouter.
Setup
Start from an installed PentAGI stack with embeddings configured separately. In its Compose directory, these commands append settings to .env; remove any existing LLM_SERVER_* lines first. Keep the key file out of source control.
{
printf 'RedRouter API key: '
read -r -s REDROUTER_API_KEY
printf '\n'
cat >> .env <<EOF
LLM_SERVER_URL=https://redrouter.org/v1
LLM_SERVER_KEY=$REDROUTER_API_KEY
LLM_SERVER_MODEL=red-cyber-1
LLM_SERVER_PROVIDER=
LLM_SERVER_API_TYPE=
LLM_SERVER_CONFIG_PATH=
LLM_SERVER_PRESERVE_REASONING=false
EOF
docker compose up -d
}
$REDROUTER_API_KEY = [System.Net.NetworkCredential]::new('', (Read-Host 'RedRouter API key' -AsSecureString)).Password
@"
LLM_SERVER_URL=https://redrouter.org/v1
LLM_SERVER_KEY=$REDROUTER_API_KEY
LLM_SERVER_MODEL=red-cyber-1
LLM_SERVER_PROVIDER=
LLM_SERVER_API_TYPE=
LLM_SERVER_CONFIG_PATH=
LLM_SERVER_PRESERVE_REASONING=false
"@ | Add-Content -Encoding ascii .env
docker compose up -d
Free key check
GET /v1/key checks your key and its restrictions without generating tokens or spending inference credit. It does not validate a PentAGI flow.
{
printf 'RedRouter API key: '
read -r -s REDROUTER_API_KEY
printf '\n'
curl --fail-with-body -sS https://redrouter.org/v1/key \
-H "Authorization: Bearer $REDROUTER_API_KEY"
}
$REDROUTER_API_KEY = [System.Net.NetworkCredential]::new('', (Read-Host 'RedRouter API key' -AsSecureString)).Password
Invoke-RestMethod -Method Get -Uri 'https://redrouter.org/v1/key' `
-Headers @{ Authorization = "Bearer $REDROUTER_API_KEY" }
Known limits
- The source recipe covers PentAGI 2.2.0. Its default
n=1request field may return 400; the long guide describes dropping it through a proxy. - RedRouter has no embeddings endpoint. PentAGI memory needs a separate embeddings configuration.
- Flows require valid tool calls. Output truncation can break them, and parallel agents can reach account request limits.
- Sandbox callback ports can be exposed on the host. Use an isolated, authorized lab and review its network access before starting a flow.
Read the full PentAGI setup guide.