Fully autonomous AI Agents system capable of performing complex penetration testing tasks
Go ai-agentsai-security-toolanthropicautonomous-agentsgolanggptgraphqlmulti-agent-systemoffensive-securityopen-sourceopenaipenetration-testingpenetration-testing-toolsreactsecurity-automationsecurity-testingsecurity-toolsself-hosted
docs: propagate MiniMax + Claude 4.7/4.8 across deploy files and guides (refs #288, #328)
Sergey Kozyrenkod7653450512a
diff --git a/.env.example b/.env.exampleindex faed9285..35ee89b8 100644--- a/.env.example+++ b/.env.example@@ -49,6 +49,11 @@ QWEN_API_KEY=QWEN_SERVER_URL=https://dashscope-us.aliyuncs.com/compatible-mode/v1QWEN_PROVIDER=+## MiniMax LLM provider+MINIMAX_API_KEY=+MINIMAX_SERVER_URL=https://api.minimax.io/v1+MINIMAX_PROVIDER=+## Custom LLM providerLLM_SERVER_URL=LLM_SERVER_KEY=diff --git a/README.md b/README.mdindex f20e717e..f9093997 100644--- a/README.md+++ b/README.md@@ -72,7 +72,7 @@ You can watch the video **PentAGI overview**:- Persistent Storage. All commands and outputs are stored in PostgreSQL with [pgvector](https://hub.docker.com/r/vxcontrol/pgvector) extension.- Scalable Architecture. Microservices-based design supporting horizontal scaling.- Self-Hosted Solution. Complete control over your deployment and data.-- Flexible Authentication. Support for 10+ LLM providers ([OpenAI](https://platform.openai.com/), [Anthropic](https://www.anthropic.com/), [Google AI/Gemini](https://ai.google.dev/), [AWS Bedrock](https://aws.amazon.com/bedrock/), [Ollama](https://ollama.com/), [DeepSeek](https://www.deepseek.com/en/), [GLM](https://z.ai/), [Kimi](https://platform.moonshot.ai/), [Qwen](https://www.alibabacloud.com/en/), Custom) plus aggregators ([OpenRouter](https://openrouter.ai/), [DeepInfra](https://deepinfra.com/), [Atlas Cloud](https://www.atlascloud.ai/)). For production local deployments, see our [vLLM + Qwen3.5-27B-FP8 guide](examples/guides/vllm-qwen35-27b-fp8.md).+- Flexible Authentication. Support for 10+ LLM providers ([OpenAI](https://platform.openai.com/), [Anthropic](https://www.anthropic.com/), [Google AI/Gemini](https://ai.google.dev/), [AWS Bedrock](https://aws.amazon.com/bedrock/), [Ollama](https://ollama.com/), [DeepSeek](https://www.deepseek.com/en/), [GLM](https://z.ai/), [Kimi](https://platform.moonshot.ai/), [Qwen](https://www.alibabacloud.com/en/), [MiniMax](https://www.minimax.io/), Custom) plus aggregators ([OpenRouter](https://openrouter.ai/), [DeepInfra](https://deepinfra.com/), [Atlas Cloud](https://www.atlascloud.ai/)). For production local deployments, see our [vLLM + Qwen3.5-27B-FP8 guide](examples/guides/vllm-qwen35-27b-fp8.md).- API Token Authentication. Secure Bearer token system for programmatic access to REST and GraphQL APIs.- Quick Deployment. Easy setup through [Docker Compose](https://docs.docker.com/compose/) with comprehensive environment configuration.@@ -1728,12 +1728,14 @@ PROXY_URL=http://your-proxy:8080#### Supported Models-PentAGI supports 10 Claude models with tool calling, streaming, extended thinking, adaptive thinking, and prompt caching. Models marked with `*` are used in default configuration.+PentAGI supports 11 Claude models with tool calling, streaming, extended thinking, adaptive thinking, and prompt caching. Models marked with `*` are used in default configuration.**Claude 4 Series - Latest Models (2025-2026)**| Model ID | Thinking | Release Date | Price (Input/Output/Cache R/W) | Use Case || ------------------------ | -------- | ------------ | ------------------------------ | ----------------------------------------------- |+| `claude-opus-4-8` | ✅ adaptive-only | May 2026 | $5.00/$25.00/$0.50/$6.25 | Flagship for coding, agents, and deep reasoning. Adaptive thinking only — budget thinking and sampling params (temperature/top_p/top_k) are rejected. Most demanding exploit development and multi-stage attack simulation |+| `claude-opus-4-7` | ✅ adaptive-only | Apr 2026 | $5.00/$25.00/$0.50/$6.25 | Advanced software engineering and long-running agentic security analysis. Adaptive thinking only (manual budget thinking rejected) || `claude-opus-4-6`* | ✅ | May 2025 | $5.00/$25.00/$0.50/$6.25 | Most intelligent model for autonomous agents and coding. Extended + adaptive thinking for complex exploit development, multi-stage attack simulation || `claude-sonnet-4-6`* | ✅ | Aug 2025 | $3.00/$15.00/$0.30/$3.75 | Best speed/intelligence balance with adaptive thinking. Multi-phase security assessments, intelligent vulnerability analysis, real-time threat hunting || `claude-haiku-4-5`* | ✅ | Oct 2025 | $1.00/$5.00/$0.10/$1.25 | Fastest model with near-frontier intelligence. High-frequency scanning, real-time monitoring, bulk automated testing |@@ -1764,7 +1766,7 @@ PentAGI supports 10 Claude models with tool calling, streaming, extended thinkin**Key Features**:- **Extended Thinking**: All Claude 4.5+ and 4.6 models with configurable chain-of-thought reasoning depths for complex security analysis-- **Adaptive Thinking**: Claude 4.6 series (Opus/Sonnet) dynamically adjusts reasoning depth based on task complexity for optimal performance+- **Adaptive Thinking**: Claude 4.6 series (Opus/Sonnet) dynamically adjusts reasoning depth based on task complexity; Claude Opus 4.7/4.8 are adaptive-thinking-only (manual budget thinking and sampling parameters are rejected with HTTP 400)- **Prompt Caching**: Significant cost reduction with separate read/write pricing (10% read, 125% write of input)- **Extended Context Window**: 200K tokens standard, up to 1M tokens (beta) for Claude Opus/Sonnet 4.6 for comprehensive codebase analysis- **Tool Calling**: Robust function calling with exceptional accuracy for security tool orchestration@@ -1928,7 +1930,7 @@ BEDROCK_MODELS_PATH=/opt/pentagi/conf/bedrock.models.yml#### Supported Models-PentAGI supports 21 AWS Bedrock models with tool calling, streaming, and multimodal capabilities. Models marked with `*` are used in default configuration.+PentAGI supports 24 AWS Bedrock models with tool calling, streaming, and multimodal capabilities. Models marked with `*` are used in default configuration.| Model ID | Provider | Thinking | Multimodal | Price (Input/Output) | Use Case || ------------------------------------------------ | --------------- | -------- | ---------- | -------------------- | --------------------------------------- |@@ -1937,6 +1939,8 @@ PentAGI supports 21 AWS Bedrock models with tool calling, streaming, and multimo| `us.amazon.nova-pro-v1:0` | Amazon Nova | ❌ | ✅ | $0.80/$3.20 | Balanced accuracy, speed, cost || `us.amazon.nova-lite-v1:0` | Amazon Nova | ❌ | ✅ | $0.06/$0.24 | Fast processing, high-volume operations || `us.amazon.nova-micro-v1:0` | Amazon Nova | ❌ | ❌ | $0.035/$0.14 | Ultra-low latency, real-time monitoring |+| `us.anthropic.claude-opus-4-8` | Anthropic | ✅ adaptive-only | ✅ | $5.00/$25.00 | Flagship coding/agents/deep reasoning; adaptive thinking only (sampling params rejected) |+| `us.anthropic.claude-opus-4-7` | Anthropic | ✅ adaptive-only | ✅ | $5.00/$25.00 | Advanced engineering, long-running agents; adaptive thinking only || `us.anthropic.claude-opus-4-6-v1`* | Anthropic | ✅ | ✅ | $5.00/$25.00 | World-class coding, enterprise agents || `us.anthropic.claude-sonnet-4-6` | Anthropic | ✅ | ✅ | $3.00/$15.00 | Frontier intelligence, enterprise scale || `us.anthropic.claude-opus-4-5-20251101-v1:0` | Anthropic | ✅ | ✅ | $5.00/$25.00 | Multi-day software development |@@ -2437,6 +2441,43 @@ EMBEDDING_STRIP_NEW_LINES= # optional, default applies**As OpenAI-typed custom LLM provider**: instead of the dedicated `QWEN_*` variables, you can wire any Qwen chat model through PentAGI's custom OpenAI-compatible provider by pointing `OPENAI_SERVER_URL` (or a custom provider entry) to the DashScope `/compatible-mode/v1` endpoint and selecting the desired Qwen model name. Useful when you already manage all model traffic through a single OpenAI-shaped client (e.g. shared with LiteLLM/OneAPI proxies).+### MiniMax Provider Configuration++PentAGI integrates with MiniMax's M-series through the OpenAI-compatible `https://api.minimax.io/v1` endpoint: large-context agentic models with tool calling, JSON output, and streaming.++#### Configuration Variables++| Variable | Default Value | Description |+| -------------------- | --------------------------- | -------------------------------------------------- |+| `MINIMAX_API_KEY` | | MiniMax API key for authentication |+| `MINIMAX_SERVER_URL` | `https://api.minimax.io/v1` | MiniMax API endpoint URL |+| `MINIMAX_PROVIDER` | | Provider prefix for LiteLLM integration (optional) |++#### Configuration Examples++```bash+# Direct API usage+MINIMAX_API_KEY=your_minimax_api_key+MINIMAX_SERVER_URL=https://api.minimax.io/v1++# With LiteLLM proxy+MINIMAX_API_KEY=your_litellm_key+MINIMAX_SERVER_URL=http://litellm-proxy:4000+MINIMAX_PROVIDER=minimax # Adds prefix to model names (minimax/MiniMax-M3) for LiteLLM+```++#### Supported Models++PentAGI ships 3 MiniMax models with tool calling, JSON output, and streaming. `MiniMax-M3` is the default for all agent types.++| Model ID | Context | Price (Input/Output) | Use Case |+| ------------------------ | ------- | -------------------- | --------------------------------------------------------------------------------------------------- |+| `MiniMax-M3`* | ~1M | $0.60/$2.40 | Latest flagship for agentic reasoning, tool use, code generation, and long-context tasks (default) |+| `MiniMax-M2.7` | 204K | $0.40/$1.10 | Previous-generation model with strong reasoning and coding |+| `MiniMax-M2.7-highspeed` | 204K | $0.40/$1.10 | Low-latency variant of M2.7 for fast-response scenarios |++**LiteLLM Integration**: Set `MINIMAX_PROVIDER=minimax` to enable model name prefixing when using default PentAGI configurations with LiteLLM proxy. Leave empty for direct API usage.+## Advanced Setup### Langfuse Integrationdiff --git a/backend/docs/config.md b/backend/docs/config.mdindex f62ef622..aa44c640 100644--- a/backend/docs/config.md+++ b/backend/docs/config.md@@ -31,6 +31,7 @@ This document serves as a comprehensive guide to the configuration system in Pen- [GLM LLM Provider](#glm-llm-provider)- [Kimi LLM Provider](#kimi-llm-provider)- [Qwen LLM Provider](#qwen-llm-provider)+ - [MiniMax LLM Provider](#minimax-llm-provider)- [Custom LLM Provider](#custom-llm-provider)- [Usage Details](#usage-details-6)- [Embedding Settings](#embedding-settings)@@ -666,6 +667,16 @@ There is no `VERTEX_API_KEY` or `GOOGLE_APPLICATION_CREDENTIALS` variable wired**LiteLLM Integration**: Set `QWEN_PROVIDER=dashscope` to enable model prefixing (e.g., `dashscope/qwen-plus`) when using LiteLLM proxy with default PentAGI configs.+### MiniMax LLM Provider++| Option | Environment Variable | Default Value | Description |+| ---------------- | -------------------- | --------------------------- | ------------------------------------------------------- |+| MiniMaxAPIKey | `MINIMAX_API_KEY` | *(none)* | MiniMax API key for authentication |+| MiniMaxServerURL | `MINIMAX_SERVER_URL` | `https://api.minimax.io/v1` | MiniMax API endpoint URL |+| MiniMaxProvider | `MINIMAX_PROVIDER` | *(none)* | Provider name prefix for LiteLLM integration (optional) |++**LiteLLM Integration**: Set `MINIMAX_PROVIDER=minimax` to enable model prefixing (e.g., `minimax/MiniMax-M3`) when using LiteLLM proxy with default PentAGI configs.+### Custom LLM Provider| Option | Environment Variable | Default Value | Description |diff --git a/backend/docs/database.md b/backend/docs/database.mdindex c4e17fdc..a51e52d6 100644--- a/backend/docs/database.md+++ b/backend/docs/database.md@@ -437,7 +437,7 @@ LLM conversation management and usage tracking:#### ProviderLLM provider configurations for multi-provider support:-- `type` - PROVIDER_TYPE enum (openai/anthropic/gemini/bedrock/deepseek/glm/kimi/qwen/ollama/custom)+- `type` - PROVIDER_TYPE enum (openai/anthropic/gemini/bedrock/deepseek/glm/kimi/qwen/minimax/ollama/custom)- `name` - user-defined provider name- `config` - JSON configuration for API keys and settings- `user_id` - user ownershipdiff --git a/backend/docs/llms_how_to.md b/backend/docs/llms_how_to.mdindex d54c8161..b3fe1798 100644--- a/backend/docs/llms_how_to.md+++ b/backend/docs/llms_how_to.md@@ -163,19 +163,21 @@ messages = append(messages, llms.MessageContent{- `Content`: Human-readable thinking text- `Signature`: Binary cryptographic signature (REQUIRED for roundtrip)-#### 1.2 Temperature Requirement+#### 1.2 Temperature Requirement (budget thinking)-**Rule**: Set `Temperature = 1.0` for extended thinking.+**Rule**: Set `Temperature = 1.0` for **budget** extended thinking (`WithReasoning(effort, maxTokens)`).-**Why**: Anthropic's thinking mode requires temperature=1.0 to function correctly. Lower values degrade reasoning quality or cause API errors.+**Why**: Anthropic's budget thinking mode requires temperature=1.0 to function correctly. Lower values degrade reasoning quality or cause API errors.```gollm.GenerateContent(ctx, messages,llms.WithReasoning(llms.ReasoningMedium, 2048),- llms.WithTemperature(1.0), // REQUIRED+ llms.WithTemperature(1.0), // REQUIRED for budget thinking)```+> **Adaptive thinking is the exception — do NOT set temperature for it.** Claude Opus 4.7/4.8 (and the 4.6 series when run in adaptive mode) use `thinking.type=adaptive` + `output_config.effort` and **reject every sampling parameter** (`temperature`/`top_p`/`top_k`) with HTTP 400. PentAGI handles this in `pkg/providers/anthropic/adaptive_thinking.go` and `pkg/providers/bedrock/adaptive_thinking.go`, which rewrite the request to adaptive form and strip those params for adaptive(-only) models. A model's capability is declared in its provider `models.yml` via `reasoning.mode` (`adaptive` = budget or adaptive; `adaptive-only` = adaptive required, budget returns 400); the per-agent `ReasoningConfig.Mode`/`Effort` then selects the mode at call time.+#### 1.3 Interleaved Thinking with Tools**Auto-enable**: Library automatically adds `interleaved-thinking-2025-05-14` beta header when both `Tools` and `Reasoning` are present.diff --git a/docker-compose.yml b/docker-compose.ymlindex 025a6118..efa21fbf 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -69,6 +69,9 @@ services:- QWEN_API_KEY=${QWEN_API_KEY:-}- QWEN_SERVER_URL=${QWEN_SERVER_URL:-}- QWEN_PROVIDER=${QWEN_PROVIDER:-}+ - MINIMAX_API_KEY=${MINIMAX_API_KEY:-}+ - MINIMAX_SERVER_URL=${MINIMAX_SERVER_URL:-}+ - MINIMAX_PROVIDER=${MINIMAX_PROVIDER:-}- LLM_SERVER_URL=${LLM_SERVER_URL:-}- LLM_SERVER_KEY=${LLM_SERVER_KEY:-}- LLM_SERVER_MODEL=${LLM_SERVER_MODEL:-}@@ -184,8 +187,8 @@ services:- ${PENTAGI_DOCKER_SOCKET:-/var/run/docker.sock}:/var/run/docker.sock- ${PENTAGI_LLM_SERVER_CONFIG_PATH:-./example.custom.provider.yml}:/opt/pentagi/conf/custom.provider.yml- ${PENTAGI_OLLAMA_SERVER_CONFIG_PATH:-./example.ollama.provider.yml}:/opt/pentagi/conf/ollama.provider.yml- - ${PENTAGI_BEDROCK_CONFIG_PATH:-./example.bedrock.provider.yml}:/opt/pentagi/conf/bedrock.provider.yml- - ${PENTAGI_BEDROCK_MODELS_PATH:-./example.bedrock.models.yml}:/opt/pentagi/conf/bedrock.models.yml+ - ${PENTAGI_BEDROCK_CONFIG_PATH:-./examples/configs/bedrock-glm-flash.provider.yml}:/opt/pentagi/conf/bedrock.provider.yml+ - ${PENTAGI_BEDROCK_MODELS_PATH:-./examples/configs/bedrock-glm-flash.models.yml}:/opt/pentagi/conf/bedrock.models.yml- ${PENTAGI_DOCKER_CERT_PATH:-./docker-ssl}:/opt/pentagi/docker/ssluser: root:root # while using docker.socknetworks: