Environments

Create and manage environments for your needs

Environments are a powerful feature in Msty Studio that allow you to create and manage different settings for your different projects or use cases. By using environments, you can easily switch between different configurations without having to manually change settings each time.

Add and Manage Environments

On the left menu, select the ellipsis icon and then select Environments and then Manage Environments.

By defualt, there is a Base Environment that is created for you. This environment is used to store variables that are common across all environments.

Also, if the active environment doesn't have a variable set, it will fall back to the Base Environment and check to see if the variable is defined there.

Add New Environment

To add a new environment, select the Add Environment button. Then, add an Environment Name and enter the Variables you want to set for this environment.

You can also click on the ellipsis icon next to an existing environment to Clone Environment and then use that as a starting point for a new environment. add new environment

You can always come back and modify the environment variables later.

Backup and Restore Environments

Select the down arrow icon next to the Add Environment button to backup or restore your environments.

Remove Environment

To remove an environment, select the ellipsis icon next to the environment you want to remove and select Delete Environment.

Set Active Environment

You can select an active Environment from the Manage Environments section by selecting the ellipsis icon and then select option to Make Active Environment.

You can also quickly select an Active Environment from the ellipsis icon on the main left menu and then select an icon under the Environments submenu.

If an Environment Variable is not in the selected Environment; however, is in the Base Environment, then the variable will fall back to the one listed in the Base Environment.

Use Environment Variables

You can use Environment Variable in the following areas of Msty Studio:

  1. Model provider API keys
  2. System prompts
  3. Conversations
  4. Tools

You can copy and paste variables into these areas. Note that variable names will automatically begin with MSTY_, such as MSTY_MY_VARIABLE.

When a process runs, the variable placeholder will be replaced with the value of the variable in the active environment.

Dynamic Variables

There are a few dynamic variables that accessible from the Shiftcut Environment Variable picker (shift+shift+e). These variables are automatically populated with the current date and time, and can be used in your conversations to provide context or information. The following dynamic variables are available:

These include:

  • {MSTY_LOCAL_DATE} - the current system date
  • {MSTY_LOCAL_DATE_TIME} - the current system date and time
  • {MSTY_LOCAL_TIMEZONE} - the current system timezone

env dynamic variables In the quick select modal, when you select a variable, it will be copied to your clipboard.