Skip to main content

Use Existing Authentication Keys

When using EigenCompute, logging in refers to providing your authentication key to the ecloud command line. The following methods are supported and checked in this order:

  1. --private-key flag on any command (not recommended).
  2. ECLOUD_PRIVATE_KEY environment variable.
  3. OS keyring securely stored credentials.
warning

Using the --private-key flag to provide your private key directly on the command line is not recommended. When provided on the command line it may be stored in your shell history. Use the OS keyring to securely store credentials or the ECLOUD_PRIVATE_KEY environment variable for CI/CD pipelines.

Log in to:

  • Import an existing key from Metamask or another wallet.
  • Configure the ecloud CLI on a new machine.

To log in by storing your authentication key in the OS keyring, use the interactive login:

ecloud auth login

The CLI will prompt you to enter your private key:

Enter your private key: [hidden input]
Address: 0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb1

✓ Private key stored securely in OS keyring
✓ You can now use ecloud commands without additional authentication