{
  "env": {
    "vars": {
      "GEMINI_API_KEY": "${GEMINI_API_KEY}",
      "OPENAI_API_KEY": "${OPENAI_API_KEY}",
      "ANTHROPIC_API_KEY": "${ANTHROPIC_API_KEY}",
      "GROQ_API_KEY": "${GROQ_API_KEY}",
      "DEEPSEEK_API_KEY": "${DEEPSEEK_API_KEY}",
      "BRAVE_API_KEY": "${BRAVE_API_KEY}",
      "CISPAR_LICENSE_URL": "${CISPAR_LICENSE_URL:-https://api.cispar.io}",
      "CISPAR_ML_SERVICE_URL": "${CISPAR_ML_SERVICE_URL:-http://127.0.0.1:18790}",
      "ABUSEIPDB_KEY": "${ABUSEIPDB_KEY}",
      "VIRUSTOTAL_API_KEY": "${VIRUSTOTAL_API_KEY}",
      "OTX_API_KEY": "${OTX_API_KEY}"
    }
  },
  "models": {
    "providers": {
      "deepseek": {
        "baseUrl": "https://api.deepseek.com",
        "apiKey": "${DEEPSEEK_API_KEY}",
        "api": "openai-completions",
        "models": [
          {
            "id": "deepseek-chat",
            "name": "DeepSeek V3.2",
            "reasoning": false,
            "input": [
              "text"
            ],
            "cost": {
              "input": 0.28,
              "output": 0.42,
              "cacheRead": 0.028,
              "cacheWrite": 0
            },
            "contextWindow": 131072,
            "maxTokens": 8192
          }
        ]
      },
      "groq": {
        "baseUrl": "https://api.groq.com/openai/v1",
        "apiKey": "${GROQ_API_KEY}",
        "api": "openai-completions",
        "models": [
          {
            "id": "compound-beta",
            "name": "Groq Compound Beta",
            "reasoning": false,
            "input": [
              "text"
            ],
            "cost": {
              "input": 0,
              "output": 0,
              "cacheRead": 0,
              "cacheWrite": 0
            },
            "contextWindow": 131072,
            "maxTokens": 8192
          }
        ]
      },
      "google": {
        "baseUrl": "https://generativelanguage.googleapis.com/v1beta",
        "apiKey": "${GEMINI_API_KEY}",
        "api": "google-generative-ai",
        "models": [
          {
            "id": "gemini-flash-latest",
            "name": "Gemini Flash Latest",
            "reasoning": false,
            "input": [
              "text",
              "image"
            ],
            "cost": {
              "input": 0.075,
              "output": 0.3,
              "cacheRead": 0.01875,
              "cacheWrite": 0.075
            },
            "contextWindow": 1048576,
            "maxTokens": 8192
          }
        ]
      },
      "openai": {
        "baseUrl": "https://api.openai.com/v1",
        "apiKey": "${OPENAI_API_KEY}",
        "api": "openai-responses",
        "models": [
          {
            "id": "gpt-4o",
            "name": "GPT-4o",
            "reasoning": false,
            "input": [
              "text",
              "image"
            ],
            "cost": {
              "input": 2.5,
              "output": 10,
              "cacheRead": 1.25,
              "cacheWrite": 2.5
            },
            "contextWindow": 128000,
            "maxTokens": 4096
          }
        ]
      },
      "anthropic": {
        "baseUrl": "https://api.anthropic.com/v1",
        "apiKey": "${ANTHROPIC_API_KEY}",
        "api": "anthropic-messages",
        "models": [
          {
            "id": "claude-3-5-sonnet-latest",
            "name": "Claude 3.5 Sonnet Latest",
            "reasoning": false,
            "input": [
              "text",
              "image"
            ],
            "cost": {
              "input": 3,
              "output": 15,
              "cacheRead": 0,
              "cacheWrite": 0
            },
            "contextWindow": 200000,
            "maxTokens": 8192
          }
        ]
      }
    }
  },
  "agents": {
    "defaults": {
      "model": {
        "primary": "deepseek/deepseek-chat"
      },
      "workspace": "${HOME}/.cispar/workspace",
      "userTimezone": "America/Monterrey",
      "timeoutSeconds": 900,
      "maxConcurrent": 1,
      "sandbox": {
        "mode": "off",
        "browser": {
          "enabled": false,
          "headless": true
        }
      }
    },
    "list": [
      {
        "id": "cispar",
        "default": true,
        "name": "CISPAR SOC",
        "agentDir": "./agents/cispar",
        "identity": {
          "name": "CISPAR",
          "theme": "Autonomous SOC Agent"
        },
        "tools": {
          "allow": [
            "read",
            "write",
            "edit",
            "exec",
            "process",
            "web_search"
          ]
        }
      }
    ]
  },
  "tools": {
    "web": {
      "search": {
        "enabled": true
      }
    }
  },
  "bindings": [
    {
      "agentId": "master",
      "match": {
        "channel": "whatsapp"
      }
    },
    {
      "agentId": "master",
      "match": {
        "channel": "telegram"
      }
    }
  ],
  "commands": {
    "native": "auto",
    "nativeSkills": "auto"
  },
  "channels": {
    "whatsapp": {
      "accounts": {
        "default": {
          "enabled": true,
          "dmPolicy": "pairing",
          "groupPolicy": "allowlist",
          "debounceMs": 0
        }
      },
      "dmPolicy": "pairing",
      "groupPolicy": "allowlist",
      "mediaMaxMb": 50,
      "debounceMs": 0
    }
  },
  "gateway": {
    "port": 18789,
    "mode": "local",
    "bind": "loopback",
    "http": {
      "endpoints": {
        "chatCompletions": {
          "enabled": true
        }
      }
    },
    "auth": {
      "token": "${CISPAR_GATEWAY_TOKEN}"
    }
  },
  "messages": {
    "ackReactionScope": "group-mentions"
  },
  "plugins": {
    "entries": {
      "whatsapp": {
        "enabled": true
      }
    }
  },
  "meta": {
    "lastTouchedVersion": "2026.1.30",
    "lastTouchedAt": "2026-02-03T04:49:17.544Z"
  }
}