Get Started
Guide

Configuration

Where credentials live, and the small config file you commit

Two places matter:

FileWhat it holdsCommit?
~/.local/share/thespider/auth.toml (and the OS keychain)Who you are, on one or more serversNo
.thespider/config.toml in the repoServer, project, profile, model bindingsYes

thespider-agent setup writes both. You almost never edit auth.toml by hand.

Project config

.thespider/config.toml
# Optional. Public Cloud is the default.
# server  = "https://thespider.xyz"

project = "acme/payments"
profile = "security"

[[model]]
code  = "xai/grok-4.6"
agent = "grok"                 # grok, claude, codex, or opencode
# effort = "high"              # optional reasoning effort (setup --effort)
# agent_isolation = "off"      # optional; "on" (default) leaves out your own skills, plugins, hooks, MCP
timeout_seconds = 1200

code is a models.dev id in <lab>/<model> form: who made the model, not who serves it. The same string is what you bind, what the server catalogs, and what reports group by. Reports that ran at a set effort are also labelled with that effort (see Comparing efforts).

TheSpider offers models that can actually run an audit slice (text in and out, recent, 200k+ context, reasoning, not marked deprecated on models.dev). The CLI caches the catalog for 24 hours; --refresh re-downloads it.

A code names what TheSpider can verify ran: the string a lab publishes for its own model. That includes a lab's own aliases. DeepSeek's deepseek/deepseek-flash is one: models.dev says it currently points at deepseek/deepseek-v4.1-flash. An alias is a code of its own. You enable it, bind it and run it like any model, it passes the same checks on its own models.dev entry, and its slices, claims and reports are its own, not its target's. TheSpider can't verify which model the vendor routes an alias to, so its reports stay under the alias code. Findings dedupe across models as usual: a finding that both an alias and its target report is one finding with reports from each. Enabling both an alias and its target plans slices for each, and each counts toward your slice quota. A lab can retire an alias: its code drops out of the catalog, its history stays under the alias code, and you bind another code. Turning it off skips its unfinished slices.

The pointer (alias_of in the API and in check-models --json) means "models.dev currently says this alias points at X". TheSpider shows it only where you pick or bind a model: the search and the model list in Settings → Models, setup, and check-models. It is never shown on findings, reports or the gate, where it would read as attribution.

A reseller's listing is not a code. azure/gpt-5.6-sol is Azure serving OpenAI's model, so the code is openai/gpt-5.6-sol. To run it through Azure, keep that code and give your agent Azure's model id (details).

A block may set agent, command, or both. When both are present, command wins and agent is kept only as the probe identity. That combination is valid and deliberate, so it is never a warning: setup prints it as a note:, and status, models and check-models show it as the binding's own state (a custom command, with the agent probed only for install and login) rather than as a note on every run. THESPIDER_VERBOSE=1 also prints the note on run, daemon, gate, refine, status and models, and check-models --json lists it under project_config.notes. Warnings stay reserved for things that need fixing, such as the deprecated harness alias of agent. Any agent other than the four built-ins needs a command. Full field table: runner contract.

effort sets a built-in agent's reasoning effort, for audits and refine fix runs (accepted values). OpenCode also accepts it as variant; if both are set they must match. It also names the participant the binding claims slices for: a binding at xhigh claims only the slices planned for that model at xhigh. Beside a command, or on an agent that is not built in, the effort is declared rather than applied: it still picks the participant, but TheSpider does not add it to the command, so put the flag in the command yourself. Agents before 0.8.0 ignore it.

Agent isolation

KeyValuesMeaning
agent_isolation"on" (default), "off"Whether a built-in agent's run leaves out your own skills, plugins, hooks, MCP servers and rules. Variables a parent agent session set are removed either way.
keep_pluginslist of plugin namesOpenCode only: user plugins an isolated run keeps, such as an auth plugin that provides the model. Needs OpenCode 2; on OpenCode 1 the binding is refused before anything is claimed. Names use A-Z a-z 0-9 . _ / : - @. Any other agent rejects the key.

The machine-local THESPIDER_AGENT_ISOLATION environment variable wins over agent_isolation: off or on for every binding, or off:<code>[,<code>…] / on:<code>[,…] for some (<code>@<effort> names one participant). An invalid value stops run, daemon and refine before anything is claimed. Beside a command, both keys do nothing and the agent warns, because the command runs as written. Agents released before agent isolation ignore both keys and run without it. What each CLI leaves out is in What an audit loads.

Comparing efforts of one model

Bind the same code once per effort. Each block is its own participant, so the pair (code, effort) must be unique; two blocks with the same code and effort are a config error.

[[model]]
code   = "anthropic/claude-opus-5-5"
agent  = "claude"
effort = "low"

[[model]]
code   = "anthropic/claude-opus-5-5"
agent  = "claude"
effort = "xhigh"

thespider-agent setup --model anthropic/claude-opus-5-5 --agent claude --effort low, then the same command with --effort xhigh, writes these two blocks and enables both participants on the server. In Settings → Models, use Add effort on the model's row. Each enabled effort plans its own slices on the same prompts, and each slice claim counts toward your quota, so comparing two efforts doubles the slices for that model. The model dashboard then shows low and xhigh side by side.

A block with no effort is the default participant: whatever the agent does when no effort is set. It is a separate participant from every explicit effort. TheSpider records the effort a binding was configured with. It does not verify what the provider actually ran.

Upgrade every runner that shares this file to 0.8.0 or later before you add a second block for one code: older agents reject two blocks with the same code. A single block with effort is safe on older agents, which ignore the key and run it as the default participant.
Upgrading to 0.8.0 with an OpenCode variant. Before 0.8.0, variant only picked OpenCode's --variant and the block claimed the model's default slices. From 0.8.0, variant is the effort, so a block with variant = "high" is the participant code@high and claims only slices planned at high. Projects start with only the default participant enabled, so after the upgrade that block claims nothing until you do one of these:
  • enable its pair and turn off the default one: thespider-agent models enable <code> --effort <variant>, then thespider-agent models disable <code> --yes, which disables the default pair only;
  • or remove variant from the block, so it claims the default slices again and OpenCode runs its own default.
A variant beside a command was ignored before 0.8.0. It now names the participant without being added to the command, and the agent warns on every load until you rename it to effort (to keep that participant) or remove it. A variant longer than 64 characters, which loaded before, now fails to load and the error names the rule.The agent warns about such a block and names the variant. See troubleshooting.

Another agent, or a freeform command

[[model]]
code    = "alibaba/qwen3.8-max"
agent   = "pi"
command = "pi run --model qwen3.8-max {prompt_path}"
timeout_seconds = 1200

See custom runners for the stdout contract and check-models.

Commands you will actually run

thespider-agent setup --model xai/grok-4.6 --agent grok --profile security
thespider-agent check-models              # offline; no server, no model
thespider-agent run --once --max-slices 1

--code and --harness still work as aliases of --model and --agent.

On run / daemon, the agent walks up from the checkout to find .thespider/config.toml, loads the org token for that server, then uses --profile if you passed it, else the file's profile, else the project's default.

Running more than one profile

profile in the file is only a default. A campaign is pinned to one profile, so auditing the same repo for Security and Bugs means two campaigns, and the flag always wins over the file:

thespider-agent run --once --profile security
thespider-agent run --once --profile bugs
thespider-agent run --once --profile hygiene
thespider-agent run --once --profile pipeline

Hygiene and Pipeline need thespider-agent 0.7.0 or later, and older agents reject them in the file. So when you choose one of them, setup writes the line commented out (# profile = "hygiene" # requires thespider-agent >= 0.7.0) and you pass --profile instead. Uncomment it once every machine on the project runs 0.7.0 or later. See Audit profiles.

For unattended runs, start one daemon --profile ... per profile; each polls only its own profile's campaigns. When you continue a specific campaign with --campaign N, the profile comes from the campaign and you can drop the flag. If you never want a default, leave profile out of the file entirely.

The [[model]] bindings say how this machine runs a model — they apply to every profile. Which of them actually get used for a given profile is the project's decision, set per profile in the web UI under Settings → Models (one switch per profile, per model and effort). run claims the intersection, refine picks its fix and retest models from it, and thespider-agent models prints it — so you can give each profile different models without touching this file, and everyone on the project gets the same answer.

A model enabled for a profile but not bound here is reported by run as a warning: its slices are planned and this agent cannot claim them. When such slices are what is left of a campaign, run and status name the model and the count — see troubleshooting. If nobody is going to run that model, turn it off from the terminal with thespider-agent models disable <code> (details); the web UI's per-profile switch does the same thing.

More than one server

SituationWhat to do
Public Cloudsetup with no --server
On-premsetup --server https://spider.corp.example and set the same server in the file
Local devsetup --server http://localhost:8080

logout clears the project's server by default. logout --server URL or logout --all for others.

Copyright © 2026