> ## Documentation Index
> Fetch the complete documentation index at: https://docs.notte.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# generate_password

> Generate a secure random password

<Tip>
  Read [the Notte skill](https://notte.cc/skill.md) and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.
</Tip>

## Parameters

<ParamField path="length" type="int" default="20">
  The desired length of the password (default: 20)
</ParamField>

<ParamField path="include_special_chars" type="bool" default="True">
  Whether to include special characters (default: True)
</ParamField>

## Returns

`str`:     A secure random password string

## Raises

* `ValueError`: If length is too short to meet security requirements


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.