Managing secrets

The th secrets command allows you to manage API keys for model providers used in your Toolhouse agents. This is a required step when you choose to bring your model.

Add or Update a Secret

To add or update an API key, use the add or set command followed by the key-value pair:

th secrets set GROQ_API_KEY=your_api_key

List API keys

To list all stored API keys, run the following command:

th secrets ls

This command will output a list of all stored API keys.

You can also list a single API key by specifying its key name:

th secrets ls GROQ_API_KEY

Make sure to keep your API keys secure and do not share them publicly.

Use the ls command to regularly review your stored API keys and remove any unnecessary ones.

Remove a Secret

To remove a stored API key, use the rm command followed by the key:

th secrets rm GROQ_API_KEY

Last updated