Skip to content

How-to guide

How to store project secrets

Create environments, add secrets, and manage permissions so your AI assistant can use them safely.

Published

Prerequisites

You need Owner or Admin access to an Agiflow project, plus a basic understanding of why your project needs environment variables or API keys.

Create an environment

An environment groups secrets by stage — such as Development, Staging, or Production — so the right values are used in the right context.

Agiflow Environments list page showing the Production environment card with Manage Secrets, Edit, and Delete action buttons.
The Environments page lists every environment for the project.

Step by step

1. Open your project and select Environments.

2. Click Add Environment.

3. In the Add Environment dialog, fill the fields:

Agiflow Add Environment dialog showing form fields for Name, Key, Type, Description, Set as default environment checkbox, and Read and Write permission checkboxes for Owner, Admin, and Member roles.
The Add Environment dialog collects the name, key, type, description, and permissions.
  • Name — a display name such as "Production".
  • Key — a lowercase identifier using only letters, numbers, dashes, and underscores, such as production.
  • Type — choose Development, Staging, Production, or Custom.
  • Description (optional) — add context if others will manage this environment.
  • Set as default environment — check this if this should be the default for new operations.

Permissions

Under Permissions, set Read and Write access per role:

  • Owner — Read and Write
  • Admin — Read and Write
  • Member — Read only

4. Click Create.

The new environment appears in the list with its type badge and a Manage Secrets button.

Add a secret to an environment

Secrets are encrypted at rest. You can store sensitive values or plain configuration variables.

Step by step

1. From the Environments list, click Manage Secrets on the environment you want.

2. Click Add Secret.

3. In the Add Secret dialog, fill the fields:

Agiflow Add Secret dialog showing Key, Value, Description (optional), and Mark as secret (value will be masked in UI) checkbox fields.
The Add Secret dialog collects the key, value, description, and whether to mask the value.
  • Key — the variable name, such as DATABASE_URL.
  • Value — the secret or configuration value.
  • Description (optional) — note what this secret is for.
  • Mark as secret (value will be masked in UI) — check this to hide the value behind ***SECRET*** in the table.

4. Click Add.

The secret appears in the Vault Secrets table with its Type badge: Secret if masked, or Plain if visible.

Agiflow Vault Secrets table listing DATABASE_URL with Plain type badge and API_KEY with Secret type badge and masked value displayed as ***SECRET***.
The Vault Secrets table shows every key, its masked or visible value, description, and type badge.

If you need to update a value later, click the edit icon on the row and enter the new value in the Edit Secret dialog.

Manage environment permissions

Permissions control who can view or change secrets in an environment.

Agiflow permission editor inside the Add Environment dialog showing Read and Write permission checkboxes for Owner, Admin, and Member roles with default selections.
The Permissions section lets you set Read and Write access for each role.

Read

Lets permitted roles list and view vault entries. Members with Read can see secret keys, descriptions, and type badges. Values marked as secret are always masked as ***SECRET*** in the dashboard and in API responses.

Write

Lets a role add, edit, and delete secrets. Only Owners and Admins have Write by default.

If you want Members to manage secrets, edit the environment and grant Write under Permissions.

Use secrets with your AI assistant

Once secrets are stored, your AI assistant can read them from the default environment when working on tasks.

Say something like

"Use my Agiflow board and work on the task 'Set up database connection'. Use the DATABASE_URL from the project vault."

The assistant reads secrets through an internal execution context that is separate from dashboard Read/Write permissions. This lets the assistant use actual secret values during tasks while the dashboard continues to mask them for safety.

Need help?

Something not working as described? We're here to help.

Email support

Community

See how others are using Agiflow to manage their projects.

Join Discord

Developer docs

Looking for technical documentation and API references?

View docs