Coding agents
Use Libremodel in Strix
Strix is a security testing agent: it looks for vulnerabilities in your app and suggests fixes. You set it up with environment variables, and with the model’s prices it works out what each scan costs.
1. Install Strix
Strix needs Docker running. The first run pulls its sandbox image.
curl -sSL https://strix.ai/install | bashpipx install strix-agent2. Set your API key
Create a key in API keys and save it as LIBREMODEL_API_KEY. On macOS and Linux, add the line to ~/.zshrc or ~/.bashrc so every new terminal has it.
export LIBREMODEL_API_KEY="sk-libremodel-..."[Environment]::SetEnvironmentVariable("LIBREMODEL_API_KEY", "sk-libremodel-...", "User")3. Add Libremodel
Set these variables in the terminal you run Strix from. They point Strix at Kimi K3.1 Pro through our OpenAI-compatible API, with its prices in dollars per million tokens: Strix uses them in its reports and in the --max-budget cap. Strix saves this setup to ~/.strix/cli-config.json, so you don’t have to enter it again on every run.
export STRIX_LLM="openai/kimi-k3.1-pro"
export LLM_API_BASE="https://api.libremodel.ai/v1"
export LLM_API_KEY="$LIBREMODEL_API_KEY"
export STRIX_API_TYPE="chat_completions"
export STRIX_LLM_INPUT_COST_PER_MTOK="1"
export STRIX_LLM_OUTPUT_COST_PER_MTOK="6"
export STRIX_LLM_CACHED_INPUT_COST_PER_MTOK="0.25"$env:STRIX_LLM = "openai/kimi-k3.1-pro"
$env:LLM_API_BASE = "https://api.libremodel.ai/v1"
$env:LLM_API_KEY = $env:LIBREMODEL_API_KEY
$env:STRIX_API_TYPE = "chat_completions"
$env:STRIX_LLM_INPUT_COST_PER_MTOK = "1"
$env:STRIX_LLM_OUTPUT_COST_PER_MTOK = "6"
$env:STRIX_LLM_CACHED_INPUT_COST_PER_MTOK = "0.25"For security testing, an Uncensored model such as Kimi K3.1 Pro Uncensored is a better fit. To use it, change these variables:
export STRIX_LLM="openai/kimi-k3.1-pro-uncensored"
export STRIX_LLM_INPUT_COST_PER_MTOK="3"
export STRIX_LLM_OUTPUT_COST_PER_MTOK="9"
export STRIX_LLM_CACHED_INPUT_COST_PER_MTOK="0.3"$env:STRIX_LLM = "openai/kimi-k3.1-pro-uncensored"
$env:STRIX_LLM_INPUT_COST_PER_MTOK = "3"
$env:STRIX_LLM_OUTPUT_COST_PER_MTOK = "9"
$env:STRIX_LLM_CACHED_INPUT_COST_PER_MTOK = "0.3"4. Run a scan
Point --target at a local folder, a GitHub repository or the URL of a running app.
strix --target ./your-appTo cap spending, add --max-budget with the most, in dollars, the whole scan may spend.
Troubleshooting
Run this in the same terminal you start the tool from. It costs nothing. A list of models means the key is fine. A 401 means LIBREMODEL_API_KEY is empty or wrong in that terminal; open a new one after saving it.
curl -s https://api.libremodel.ai/v1/models -H "Authorization: Bearer $LIBREMODEL_API_KEY"curl.exe -s https://api.libremodel.ai/v1/models -H "Authorization: Bearer $env:LIBREMODEL_API_KEY"If the key is fine and the tool gets a 402, your balance does not cover the request. See Billing and credits.
Notes
Agents that run subagents send several requests at once. When capacity is busy, the extra ones wait in a short queue instead of failing. See Limits and errors.
Strix actively tests the targets you give it: only run it against systems you own or have written permission to test.