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:
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
- In the Lakera Red Platform, go to Targets → New Target.
- Enter a name (and optional description).
- Under Target configuration, choose how Red should connect:
- Connect to a model – direct model connection.
- Create a connection to your agent – your API or agent endpoint (stateless or stateful).
- Complete the fields for your chosen type, then click Test connection (for Agent targets) to verify before saving.
- Optionally configure Advanced settings (additional request fields, max concurrent requests).
- 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
- Connect to a model – configure a model target.
- Create a connection to your agent – configure an API/agent target (stateless or stateful, auth, request/response contract).