Create a key
You can create API keys in MeshAgent Studio or with the CLI. The secret value is only shown once.MeshAgent Studio
- Open your project in MeshAgent Studio.
- Go to API Keys.
- Create a new key and save the secret value.
MeshAgent CLI
If you want to create a key from the terminal and activate it for local CLI use at the same time:--activate saves the new key in your local CLI project settings so commands that use an API key can pick it up automatically.
To activate an existing key later, use:
Rotate or remove keys
List the keys in the active project:Best practices
- Rotate regularly and delete unused keys.
- Store keys securely in a secret manager or CI vault.
- Avoid sharing keys across multiple services.