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

# Get Credentials

> Step-by-step instructions for obtaining Strava OAuth credentials.

## Authentication Method

* **[`oauth_2`](/concepts/oauth)** - OAuth 2.0

## OAuth App Setup

### Step 1: Create a Strava App

1. Log in to [Strava](https://www.strava.com)
2. Go to [strava.com/settings/api](https://www.strava.com/settings/api)
3. Fill in the app details:
   * **Application Name**: Your app name
   * **Category**: Choose an appropriate category
   * **Website**: Your website URL
   * **Authorization Callback Domain**: `localhost` (for development)
4. Click **Create**

### Step 2: Get Your Credentials

After creating the app, you'll see:

* **Client ID**
* **Client Secret**

### Step 3: Store Credentials

```bash theme={null}
pnpm corsair setup --plugin=strava client_id=your-client-id client_secret=your-client-secret
```

### Step 4: Authorize

```bash theme={null}
pnpm corsair auth --plugin=strava
```

This opens a browser window to complete the Strava OAuth flow. Tokens are saved automatically.

## Required Credentials Summary

| Credential    | Required For | Where to Find       |
| ------------- | ------------ | ------------------- |
| Client ID     | OAuth flow   | Strava API settings |
| Client Secret | OAuth flow   | Strava API settings |

For general information about how Corsair handles authentication, see [Authentication](/concepts/auth).
