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

# CLI reference

> The onebucket CLI — sign in, manage access keys, and control active sessions.

The `onebucket` CLI handles **authentication and credentials**. Data operations (upload, download, list) go through any S3 client pointed at your endpoint — see the [Quickstart](/quickstart) — or through [Claude over MCP](/connectors/claude).

## Commands

### `onebucket login`

Sign in via OAuth in your browser. The CLI stores the resulting login locally and uses it for the commands below.

```bash theme={null}
onebucket login
```

### `onebucket keys`

List your access keys — the key pairs used for S3 (SigV4) access.

```bash theme={null}
onebucket keys
```

### `onebucket sessions`

List or revoke active sessions, including connector (MCP) authorizations.

```bash theme={null}
onebucket sessions
```

### `onebucket logout`

Clear the stored login on this machine.

```bash theme={null}
onebucket logout
```

## Related

* Access can also be revoked at any time from your [OneBucket console](https://app.onebucket.io).
* MCP connectors authenticate with OAuth 2.1 + PKCE — see [How authentication works](/connectors/claude#how-authentication-works).
