﻿# OpenHands profile secret scope depends on server capability

OpenHands profile secret scoping requires an Agent Server capability: Canvas stores the selection, while the server enforces it and older backends can remain unrestricted.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/guide-openhands-profile-secret-capability/
Language: en

## Define which kind of secret is involved

An agent needs a test-service credential, while its model provider already has a separate API key. These belong to different configuration concerns. The [Secrets Management guide](https://docs.openhands.dev/openhands/usage/settings/secrets-settings) describes custom runtime secrets; the [LLM Profiles guide](https://docs.openhands.dev/openhands/usage/agent-canvas/llm-profiles) describes credentials for generation routes. Limiting one collection should not be assumed to change the other. Identify the credential's purpose before reviewing its scope.

## Check the advertised server capability

The [Agent Profiles reference](https://docs.openhands.dev/openhands/usage/agent-canvas/agent-profiles) conditions the scope picker on `profile_secret_scope_v1`. With that capability, profiles can select all, none or specific saved secret names. Without it, the picker is hidden and profiles remain unrestricted. An absent control therefore does not imply a restrictive default. Confirm the connected server's support rather than copying an interface screenshot from another installation.

## Locate the enforcement point

Canvas stores the selected scope, while Agent Server enforces it. The documentation preserves references to deleted secret names rather than silently changing scope during an unrelated profile edit. Review the stored selection and server behavior together. The special local OpenHands `default` profile always receives saved secrets and has no picker; a named profile or another agent type can behave differently. Do not expand that special rule into a universal statement about every backend profile named default.

## Distinguish saved secrets from a running request

The secrets guide says saved settings reach conversations started afterward. Its local `request_secret` path can attach a needed credential to an already running conversation through a dedicated user interaction. These are different delivery paths. A masked input protects display of a value, while the attachment determines runtime availability. Review which path supplied the credential instead of treating a settings edit as proof that every open conversation immediately received or lost it.

## Verify scope using a harmless marker

Use synthetic values and an appropriate bounded observation to confirm intended availability without exposing real credentials in logs. A [synthetic-probe contract](/journal/provider-bounded-synthetic-probe-contract/) limits the check, and [tool observations](/journal/learn-codex-tool-observation/) preserve the server and profile used. Record unavailable capability explicitly. A policy claim should name the enforced profile scope, not rely on the visual fact that a key field displayed dots.
