---
name: forgehand-secrets
description: Add, share, rotate, and remove Forgehand session environment secrets in the web app.
---

# Forgehand secrets

Manage secrets on the web **Secrets** page. The `fh` CLI currently has no secret commands. Secret values are shown only when entered; do not echo them in chat, command logs, or workspace files.

## Add and scope

Choose an uppercase environment-variable name such as `HF_TOKEN`, a value, and a scope:

- **Personal**: injected into sessions owned by the user.
- **Team**: available to sessions in that team.

The page lists accessible personal, team, and teammate-shared secrets without revealing values. A personal secret can be shared with one team using its **Share** selector; choose **nobody** to unshare it. A team secret is already shared with that team. When names collide, the session owner's personal secret takes precedence.

Changes apply on the **next session start**, so restart only the session that needs a changed value after accounting for any running work. To rotate a value, delete the old secret and create it again with the same name; confirm the scope and sharing after recreation. Before deleting or sharing, identify the exact secret and team because this affects subsequent sessions.

## Forgehand-hosted LLMs

For `gpt-6-sol` and `gpt-6-luna` through Forgehand, use a Forgehand personal access token and the team-scoped API URL described in `forgehand-llm`. The Azure key belongs to the platform and is never needed in a session secret. A token injected into a shared team session is readable by people with access to that session; choose its scope accordingly.
