> Markdown version of https://tuna.am/en/docs/cli/api-key/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# tuna api-key

Manage your api-keys.

Manage your API keys. New keys are created in the dashboard.

In an interactive terminal opens a TUI to rename and delete keys. Otherwise prints this help: use the subcommands below.

Guide with examples: [Sessions and API keys](https://tuna.am/en/docs/guides/sessions-and-api-keys.md).

Usage

```bash
tuna api-key [flags]

```

| Flag               | Description                                |
| ------------------ | ------------------------------------------ |
| `--api-key string` | Your tuna.am api key (env `TUNA_API_KEY`). |

## Subcommands

| Command                          | Description                           |
| -------------------------------- | ------------------------------------- |
| [`tuna api-key delete`](#delete) | Delete an api-key by ID.              |
| [`tuna api-key edit`](#edit)     | Change the description of an api-key. |
| [`tuna api-key list`](#list)     | List all the api-keys.                |

## tuna api-key delete

Delete an api-key by ID.

Alias: `del`.

Usage

```bash
tuna api-key delete <id> [flags]

```

| Flag        | Description                   |
| ----------- | ----------------------------- |
| `-y, --yes` | Skip the confirmation prompt. |

Also accepts the flags of `tuna api-key`.

## tuna api-key edit

Change the description of an api-key.

Usage

```bash
tuna api-key edit <id> <description>

```

Also accepts the flags of `tuna api-key`.

## tuna api-key list

List all the api-keys.

Alias: `ls`.

Usage

```bash
tuna api-key list [flags]

```

| Flag     | Description            |
| -------- | ---------------------- |
| `--json` | Output in JSON format. |

Also accepts the flags of `tuna api-key`.

[Global flags](https://tuna.am/en/docs/cli.md#global-flags) work too.
