Skip to content

STRIX_LLM configuration fails with BadRequestError or AuthenticationError using OpenRouter/Gemini APIs #17275

@Mirzabaig313

Description

@Mirzabaig313

Describe the issue
Configuration and compatibility errors occur when setting up the strix-agent CLI tool locally. The errors happen when connecting to various LLM providers (OpenRouter, ZhipuAI, and Google Gemini).

The setup instructions were followed to use a dedicated virtual environment. Different connection/authentication errors are encountered depending on the configuration used.

Environment

  • OS: macOS [Your OS Version]
  • Python Version: 3.12.3 (via Homebrew/venv, but system default was 3.14)
  • Strix Version: (Most recent version installed via pip install strix-agent)
  • Installation Method: pipx initially, then isolated venv
  • Docker: Docker Desktop running

Steps to Reproduce

  1. Installed strix-agent in a Python 3.12 virtual environment.
  2. Ensured Docker Desktop is running.
  3. Attempted configuration for different providers, setting STRIX_LLM, LLM_API_KEY, and LLM_API_BASE accordingly.

Observed Behavior and Error Messages

Errors encountered:

  • When using OpenRouter/Zhipu AI (glm-4.6 or x-ai/grok-4.1-fast:free): The tool returns an authentication error or provider not found error:

    # [Paste the exact litellm.BadRequestError or AuthenticationError output here]
    
  • When using Google Gemini (gemini/gemini-2.5-flash): The tool returns a 404 error:

    # [Paste the exact litellm.NotFoundError output here]
    
  • General Warning (Less critical): A Python 3.14 warning is consistently seen, although it does not seem to stop execution when variables are set:

    /Users/mirza/.local/pipx/venvs/strix-agent/lib/python3.14/site-packages/openai/_compat.py:48: UserWarning: Core Pydantic V1 functionality isn't compatible with Python 3.14 or greater.
      from pydantic.v1.typing import (
    

Expected Behavior

Strix should connect to the configured provider using the provided API keys and begin the security assessment.

Configuration Commands Used (Example for AgentRouter):

export STRIX_LLM="x-ai/grok-4.1-fast:free"
export LLM_API_KEY="[My openRouter Key]"
export LLM_API_BASE="https://openrouter.ai/api/v1"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions