> For the complete documentation index, see [llms.txt](https://docs.kosmoslabs.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kosmoslabs.ai/product-documentation/two-factor-authentication.md).

# Two-Factor Authentication

Add an authenticator app as a second step when you sign in to Kosmos

***

Kosmos supports two-factor authentication (2FA) with an authenticator app. **2FA is available on request.** Ask your Kosmos team to turn it on for your workspace.

**Authenticator apps only:** Kosmos uses time-based one-time codes from an authenticator app. SMS codes are not supported.

***

### Setting Up 2FA

Once 2FA is turned on for your workspace, each user sets it up from **Settings → Account**. Setup gives you recovery codes. Store them somewhere safe, because they are how you recover access if you lose your authenticator.

These actions need you to have signed in with your second factor within the last 5 minutes:

* Regenerating recovery codes
* Turning 2FA off for your own account

***

### Requiring 2FA for Owners and Managers

Your Kosmos team can also require a second factor for workspace owners and managers. When it is required, team management and other workspace settings, such as integrations, API keys, and webhooks, need a second factor.

**Enforcement applies to those actions, not to sign-in.** A user without a second factor can still sign in, but team management and workspace settings are refused until they set up 2FA.

**Turn on enforcement only after every owner and manager has set up 2FA.** Otherwise they lose access to those screens until they do.

If 2FA is later turned off for your workspace, users who already set it up keep their authenticator and are still asked for a code.

***

### Lost Authenticator

#### You still have a recovery code

1. On the sign-in page, choose the recovery option.
2. Enter your email, your password, and one recovery code.
3. Kosmos removes your authenticator and ends all of your sessions.
4. Sign in with your password and set up a new authenticator.

Recovery attempts are limited to 10 per hour per IP address and 5 per hour per email address.

#### You lost your recovery codes too

Contact <support@kosmoslabs.ai>. Kosmos confirms your identity outside the app first, for example on a video call, and then resets your 2FA. Kosmos records the reason for the reset and how your identity was confirmed.

After a reset:

* Your authenticator is removed and your recovery codes are revoked.
* Your sessions end within an hour, and you receive an email.
* If 2FA is required for you, you are asked to set it up again.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.kosmoslabs.ai/product-documentation/two-factor-authentication.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
