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

# vibe profiles

> Manage multiple VibeHub accounts

## Overview

If you work with multiple VibeHub accounts (e.g., personal and work), profiles let you switch between them easily without logging in and out.

## Commands

### List Profiles

```bash theme={null}
vibe profiles
```

Shows all configured profiles and which one is active.

### Switch Profile

```bash theme={null}
vibe use <profile-name>
```

Switch to a different profile for subsequent commands.

## Examples

### View All Profiles

```bash theme={null}
vibe profiles
```

Output:

```
VibeHub Profiles
───────────────
* default     your.email@gmail.com
  work        work.email@company.com
  client      freelance@email.com

Active profile: default
```

The `*` indicates the currently active profile.

### Switch to Work Profile

```bash theme={null}
vibe use work
```

Output:

```
Switched to profile: work
Now using: work.email@company.com
```

### Create a New Profile

```bash theme={null}
vibe login --profile client
```

This creates and logs into a new profile called "client".

## Profile Workflow

### Setting Up Multiple Profiles

```bash theme={null}
# Login to your personal account (default profile)
vibe login

# Login to your work account
vibe login --profile work

# Login to a client account
vibe login --profile client
```

### Working with Different Accounts

```bash theme={null}
# Work on personal project
vibe use default
cd ~/personal/my-project
vibe push

# Switch to work
vibe use work
cd ~/work/company-project
vibe push

# Switch to client
vibe use client
cd ~/freelance/client-project
vibe push
```

## Profile Storage

Profiles are stored in `~/.vibehub/credentials`:

```
~/.vibehub/
├── credentials
│   ├── default.json
│   ├── work.json
│   └── client.json
└── config.json
```

Each profile has its own credential file.

## Profile Names

Profile names:

* Can contain letters, numbers, hyphens, and underscores
* Are case-sensitive
* Cannot contain spaces
* Default profile is named `default`

Good names:

* `work`
* `personal`
* `client-projectx`
* `company_internal`

## Managing Profiles

### Delete a Profile

To remove a profile, log out from it:

```bash theme={null}
vibe logout --profile client
```

This removes the stored credentials for that profile.

### Rename a Profile

There's no direct rename command. To rename:

1. Login with the new profile name
2. Logout from the old profile name

```bash theme={null}
# Login with new name
vibe login --profile new-name
# This reuses the same credentials if same account

# Remove old profile
vibe logout --profile old-name
```

### Check Current Profile

```bash theme={null}
vibe whoami
```

Output:

```
Logged in as: your.email@gmail.com
Profile: work
```

## Common Use Cases

<AccordionGroup>
  <Accordion title="Personal + Work" icon="briefcase">
    Keep personal and work VibeHub accounts separate:

    ```bash theme={null}
    vibe login                    # personal (default)
    vibe login --profile work     # work account

    # When working on personal projects
    vibe use default

    # When working on work projects
    vibe use work
    ```
  </Accordion>

  <Accordion title="Multiple Clients" icon="handshake">
    Freelancers can manage multiple client accounts:

    ```bash theme={null}
    vibe login --profile client-a
    vibe login --profile client-b
    vibe login --profile client-c

    # Switch as needed
    vibe use client-a
    ```
  </Accordion>

  <Accordion title="Testing" icon="flask">
    Test with different accounts:

    ```bash theme={null}
    vibe login --profile test-account
    # Do testing
    vibe logout --profile test-account
    ```
  </Accordion>
</AccordionGroup>

## Tips

<Tip>
  Set up shell aliases for quick profile switching:

  ```bash theme={null}
  alias vibe-work='vibe use work'
  alias vibe-personal='vibe use default'
  ```
</Tip>

## Troubleshooting

### Wrong Profile Active

If commands are using the wrong account:

```bash theme={null}
# Check current profile
vibe whoami

# Switch to correct profile
vibe use correct-profile
```

### Profile Not Found

```
Error: Profile 'unknown' not found.
```

The profile doesn't exist. Create it with:

```bash theme={null}
vibe login --profile unknown
```

## Related Commands

* [vibe login](/cli/authentication) - Authenticate with VibeHub
* [vibe logout](/cli/authentication) - Sign out
* [vibe whoami](/cli/authentication) - Check current user
