> This page is for Self-Hosted, version v3.0 (default).
> For other versions, use one of these documentation indexes:
> - v3.0 (default): https://docs.nvidia.com/run-ai/self-hosted/v3.0/llms.txt
> - v2.26: https://docs.nvidia.com/run-ai/self-hosted/v2.26/llms.txt
> - v2.25: https://docs.nvidia.com/run-ai/self-hosted/v2.25/llms.txt
> - v2.24: https://docs.nvidia.com/run-ai/self-hosted/v2.24/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/run-ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/run-ai/_mcp/server.

# runai my-credential create

create a personal credential

### Synopsis

Create a personal credential. Set --type and pass data with --item using the keys below.

  genericSecret   Keys: key, value (repeat --item for multiple pairs). Requires cluster version 2.22+.
  dockerRegistry  Keys: user, password, url. Requires cluster version 2.22+.
  ngcApiKey       Keys: ngc-api-key. Requires cluster version 2.23+.

```
runai my-credential create SECRET_NAME --type <genericSecret|dockerRegistry|ngcApiKey> [flags]
```

### Examples

```
  runai my-credential create app-config --type genericSecret --item key=API_URL,value=https://api.example.com --item key=DB_PASS,value=secret
  runai my-credential create dockerhub-creds --type dockerRegistry --item user=myuser,password=secret,url=https://index.docker.io/v1/
  runai my-credential create ngc-prod --type ngcApiKey --item ngc-api-key=YOUR_KEY
```

### Options

```
      --description string   Optional description for the credential (e.g. "My API config" or a single word).
  -h, --help                 help for create
      --item stringArray     Key=value pairs; required keys depend on --type (see above). For genericSecret only, repeat to add multiple pairs to one credential.
      --type string          Credential type: genericSecret, dockerRegistry, or ngcApiKey (required)
```

### Options inherited from parent commands

```
      --config-file string   config file name; can be set by environment variable RUNAI_CLI_CONFIG_FILE (default "config.json")
      --config-path string   config path; can be set by environment variable RUNAI_CLI_CONFIG_PATH
  -d, --debug                enable debug mode
  -q, --quiet                enable quiet mode, suppress all output except error messages
      --verbose              enable verbose mode
```

### SEE ALSO

* [runai my-credential](/run-ai/self-hosted/reference/cli/runai/my-credential/runai-my-credential)	 - manage personal credentials associated with the current user