# Authentication

> Authenticate Thunder services within VSCode. Manage API keys and SSH credentials to ensure secure access to your remote instances.

VS Code

Editor extension

[Open](https://www.thundercompute.one/docs/vscode/operations/authentication.md)

CLI

Command line

[Open](https://www.thundercompute.one/docs/cli/operations/authentication.md)

Console

Web interface

[Open](https://www.thundercompute.one/docs/console/operations/authentication.md)

## Log In

The extension may prompt you to log in automatically when you first install it.

If not, open the command palette with `Ctrl + Shift + P` (or `Cmd + Shift + P` on macOS) and run:

```
Thunder Compute: Login
```

Your browser will open automatically to complete authentication via OAuth.

## Log Out

Open the command palette and run:

```
Thunder Compute: Logout
```

## Managing API Tokens

API tokens authenticate your CLI and extension access. You can manage them in the [console](${THUNDER_CONSOLE_ORIGIN}/settings/tokens).

* **Generate tokens**: Create new tokens for each device or use case
* **Revoke tokens**: Remove access for specific tokens without affecting others
* **Token persistence**: Tokens never expire unless manually revoked

> [!NOTE]
>
> Use unique tokens for each device so you can revoke access individually if needed.

## Adding a Payment Method

Before creating instances, you need a payment method on file. Visit the [billing settings](${THUNDER_CONSOLE_ORIGIN}/settings/billing) to add a credit card.
