Skip to main content
The attesta init command creates an attesta.yaml configuration file in the current working directory. This file controls challenge policies, risk scoring, trust engine behavior, and audit settings for your project.

Usage

Example

If the file already exists:
Force overwrite:

Generated Config Template

The generated attesta.yaml contains all configurable sections with sensible defaults and inline documentation:
attesta.yaml
All sections are optional. When omitted, Attesta uses safe defaults: actions are denied on timeout, CRITICAL operations require 2-party approval, and trust starts low at 0.3.

Typical Workflow

1

Initialize the config

2

Activate a domain profile (optional)

If you’ve registered a custom domain profile, uncomment and set the domain field:
Register custom profiles with register_preset(). See the domain profiles guide.
3

Add risk overrides

Pin specific actions to known risk levels:
4

Load in your application

Never set fail_mode: allow in production. This permits actions to proceed when challenges time out, bypassing the approval requirement entirely. Use it only for local development.

Next Steps

attesta.yaml Reference

Complete configuration reference with all options

Domain Profiles

Activate industry-specific risk scoring