> 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 login access-key

login as a service account or a user using an access key

```
runai login access-key [flags]
```

### Examples

```
  
  # Login interactive using access key
  runai login access-key

  # Login using access key credentials
  runai login access-key --client-id=<client_id> --secret=<secret> --interactive=disabled

  # Login and save access key credentials
  runai login access-key --client-id=<client_id> --secret=<secret> --interactive=disabled --save

```

### Options

```
      --client-id string     client ID for service account or user
  -h, --help                 help for access-key
      --interactive enable   set interactive mode (enabled|disabled)
      --save                 save access key credentials in config file
      --secret string        access key secret
      --secret-file string   use access key secret from file
```

### 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 login](/run-ai/self-hosted/reference/cli/runai/login/runai-login)	 - login to the control plane