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

# Configuration

> Configure your Prime CLI settings

The Prime CLI provides several commands to manage your configuration settings. All configuration commands are accessed through the `prime config` command group.

## View Configuration

View your current configuration settings:

```bash theme={null}
prime config view
```

This displays a table with your current settings, including:

* API Key (partially masked)
* Team ID
* Base URL
* SSH Key Path

## API Key Management

Set your Prime Intellect API key:

```bash theme={null}
prime config set-api-key
```

## Team Settings

<CardGroup cols={2}>
  <Card title="Set Team ID" icon="users">
    Configure your team ID for team-based access:

    ```bash theme={null}
    prime config set-team-id
    ```
  </Card>

  <Card title="Remove Team ID" icon="user">
    Switch back to your personal account:

    ```bash theme={null}
    prime config remove-team-id
    ```
  </Card>
</CardGroup>

## Sharing Settings

Configure whether new instances are automatically shared with all team members:

```bash theme={null}
prime config set-share-resources-with-team true
```

When enabled, `prime pods create` will automatically set `sharedWithTeam` on new instances without needing to pass `--share-with-team` each time. Set to `false` to disable:

```bash theme={null}
prime config set-share-resources-with-team false
```

## Connection Settings

<CardGroup cols={2}>
  <Card title="Base URL" icon="globe">
    Set the API endpoint URL:

    ```bash theme={null}
    prime config set-base-url
    ```
  </Card>

  <Card title="SSH Key" icon="key">
    Configure SSH key path:

    ```bash theme={null}
    prime config set-ssh-key-path
    ```
  </Card>
</CardGroup>

## Reset Configuration

Reset all settings to their default values:

```bash theme={null}
prime config reset
```

<Warning>
  This will remove all your custom settings, including your API key. You'll need to reconfigure the CLI after resetting.
</Warning>

## Configuration Options

| Command                         | Description                        | Default                         |
| ------------------------------- | ---------------------------------- | ------------------------------- |
| `view`                          | Display current configuration      | -                               |
| `set-api-key`                   | Set your API key                   | -                               |
| `set-team-id`                   | Set team ID for team access        | -                               |
| `remove-team-id`                | Switch to personal account         | -                               |
| `set-base-url`                  | Set API base URL                   | `https://api.primeintellect.ai` |
| `set-ssh-key-path`              | Set SSH private key path           | `~/.ssh/id_rsa`                 |
| `set-share-resources-with-team` | Auto-share new instances with team | `false`                         |
| `reset`                         | Reset to default settings          | -                               |

<Tip>
  All configuration commands will prompt for values if not provided as command-line arguments.
</Tip>
