Creating a Target

A target is a reusable configuration that defines how Lakera Red connects to the system you want to test. You create and edit targets under Targets in the Red app, then choose a target when starting a scan or evaluation.

Two ways to connect

Red supports connections to two types of systems:

TypeUse when
ModelYou want to test a model directly. Red sends requests to the provider; you configure model name and optional system prompt.
AgentYou want to test your own API or agent. You provide an endpoint URL and authentication; Red sends prompts in a defined request format and expects a specific response format.

You choose the type when creating a target. The target form has two tabs under Target configuration: Agent and Model. You can only set the type at creation time; to switch later, create a new target.

Create a target

  1. In the Lakera Red Platform, go to TargetsNew Target.
  2. Enter a name (and optional description).
  3. Under Target configuration, choose how Red should connect:
  4. Complete the fields for your chosen type, then click Test connection (for Agent targets) to verify before saving.
  5. Optionally configure Advanced settings (additional request fields, max concurrent requests).
  6. Click Create to save the target.

After saving, the target appears in your target list and can be selected when you create a scan or run an evaluation.

Next steps