Strix Setup with AnonRouter

Configure Strix with private, uncensored AI models through AnonRouter. Covers the custom API endpoint, model selection, tools, and spending controls.

Strix is an autonomous security-testing agent. Connect its local CLI to AnonRouter through Strix's OpenAI-compatible provider settings. Strix runs its testing tools in a Docker sandbox; AnonRouter handles the model requests.

1. Install Strix and create a key

Install the current strix-agent package with pipx:

pipx install strix-agent

Docker must be installed and running. Strix downloads its sandbox image on the first run. See the Strix quickstart for other installation options.

Create an AnonRouter inference key with OpenAI-compatible access enabled (on by default). Your account needs available credits or a subscription allowance. Give this key a total credit limit before starting an automated assessment.

Create an API key

Use a test application you own or have permission to assess. A local target directory is mounted into Strix's sandbox with write access, so use a clean checkout or a disposable copy for the first run.

2. Configure the AnonRouter endpoint

Choose a model, then set these variables in the shell that will launch Strix:

Choose a model
See more models
export LLM_API_KEY="ar_REPLACE_WITH_YOUR_API_KEY"
export LLM_API_BASE="https://api.anonrouter.ai/v1"
export STRIX_API_TYPE="chat_completions"
export STRIX_LLM='openai/deepseek/deepseek-v4.1-flash-uncensored'

The key above is a placeholder. Inject the real value through your shell's secret handling or a CI secret; keep it out of committed scripts and shared configuration.

SettingPurpose
LLM_API_KEYYour AnonRouter inference key
LLM_API_BASEAnonRouter's API root, ending at /v1
STRIX_API_TYPEExplicitly selects Chat Completions for this setup
STRIX_LLMopenai/ followed by the exact AnonRouter API model ID

The first openai/ is Strix's provider selector. It selects the OpenAI-compatible transport; it does not send requests to OpenAI when LLM_API_BASE points to AnonRouter. In this example, AnonRouter receives deepseek/deepseek-v4.1-flash-uncensored as the model ID.

Keep the full model ID after that prefix, including its creator. Do not use openrouter/ for this connection: that selects Strix's OpenRouter integration. Do not append /chat/completions to the base URL.

Current Strix can choose an API type from its model metadata. Setting STRIX_API_TYPE makes the protocol explicit instead of relying on that inference. See Strix configuration.

3. Choose a model and start

DeepSeek V4.1 Flash Uncensored is selected above. Check its current availability in the AnonRouter catalog, or replace it with another route that supports streaming and tool calling. Compare context size, output limits, pricing and privacy labels for your work.

For a first run against your own disposable test project:

strix --target ./your-test-app --scan-mode quick --max-turns 30

Replace the path with your test project. --max-turns applies to each agent, including child agents; it is not a total request or spending limit. Review the first run before extending the assessment or adding unattended execution.

Strix saves results under strix_runs/<run-name>. Treat those local files as sensitive assessment artifacts. See the CLI reference.

How tools work

Strix needs structured tool calls to make progress. AnonRouter transports tool definitions, model tool calls and subsequent results. Strix executes the tools in its sandbox and manages the assessment.

A model writing a command or a JSON-shaped tool call as ordinary text is not the same as returning a structured tool_calls response. Select a route with tool support and verify actual tool execution. Strix's OpenAI-compatible model guide explains this distinction.

Start with text and tool workflows. AnonRouter supports user-message images on vision-capable routes, but that does not establish support for images returned inside Strix tool results. Browser screenshot workflows need separate validation with your installed Strix version.

Spending controls

Use the dedicated AnonRouter key's total credit limit as the spending boundary. Strix can make concurrent requests through several agents, and automatic retries can incur additional generation charges.

Strix also offers --max-budget, but it estimates costs and checks the budget after model responses. For custom gateway model IDs, its pricing metadata may be missing or differ from the selected AnonRouter route. The Strix configuration reference provides input and output price overrides per million tokens. Enter both from the current route pricing if using this feature. A Strix budget can overshoot with requests already in flight and does not replace the key limit.

Privacy boundary

Strix may send source code, target details, HTTP content, tool output and findings as model context. That context reaches AnonRouter and the selected model provider. Limit the test checkout and credentials to what the assessment needs, and protect Strix's local reports separately.

This connection uses compatibility mode. The broker temporarily sees the static key identity and plaintext request together. AnonRouter does not intentionally retain prompts or responses; this setup does not provide the unlinkability of the native private ticket flow.

Troubleshooting

Authentication returns 401 or 403

Confirm LLM_API_KEY contains an inference key with OpenAI-compatible access enabled. A management key cannot run inference. Check that the same shell or CI job passes the variables to Strix.

Model not found or requests go to the wrong provider

Use openai/ followed by the complete current AnonRouter model ID. Confirm LLM_API_BASE is https://api.anonrouter.ai/v1.

Startup connection check fails

Check the account allowance, key limit, model availability and endpoint first. Keep STRIX_API_TYPE=chat_completions for the configuration above. Update older Strix installations if custom-endpoint routing or the API-type setting is not supported by your release.

The agent repeats itself without using tools

Confirm the model supports native tools, inspect whether Strix is receiving structured tool calls, and check the route's context limit. Increasing the turn limit will not fix an incompatible model.

Docker or the sandbox fails

Check that Docker is running and can pull Strix's sandbox image. This is separate from the model API connection.

Sources and further reading

AnonRouter is an independent service and is not affiliated with Strix.

Let your agent handle the setup

One prompt carries the entire setup.