Authentication
The Test Cabinet drives Cline with API-key authentication against the OpenRouter-backed models it is configured for. For the contracts shared by every harness, see Agent Harnesses.
API key
Section titled “API key”Cline reads an OpenRouter API key from OPENROUTER_API_KEY. Export that
variable on the host; The Test Cabinet injects it into the run container under
the same name. TCAB_API_KEY_CLINE overrides it for this harness alone, so
Cline can use a different key from the other OpenRouter-routed harnesses.
Billing is charged against the OpenRouter account backing the key. The key is supplied to the container as an environment secret, and its value is redacted from a run’s published source.
Subscription
Section titled “Subscription”Cline declares no subscription credentials, so every run authenticates with the API key above.
Selecting a mode
Section titled “Selecting a mode”TCAB_AUTH_MODE selects the mode for every harness and TCAB_AUTH_MODE_CLINE
selects it for Cline alone, taking precedence. Accepted values are auto (the
default), api-key, and subscription.
With only the API-key mode available, both auto and api-key resolve to the
API key, and Cline is ready once OPENROUTER_API_KEY is set. Requesting
subscription leaves the harness unavailable.