Repository navigation
Description
Background
ACPProviderInfo already carries api_key_env_var and base_url_env_var — the two credential env-vars the SDK itself needs to inject at subprocess spawn.
Consumer UIs (OpenHands frontend, agent-canvas) need a richer set of credential fields to render their credential onboarding sections. Today each consumer maintains its own static map (ACP_PROVIDER_SECRETS_EXTRA in OpenHands, an equivalent in canvas) for the extra fields that aren't in the SDK:
| Provider | Extra fields (not in SDK today) |
|---|---|
claude-code |
CLAUDE_CODE_OAUTH_TOKEN (subscription OAuth token) |
codex |
CODEX_AUTH_JSON (file-content blob → ~/.codex/auth.json) |
gemini-cli |
GOOGLE_APPLICATION_CREDENTIALS_JSON, GOOGLE_CLOUD_PROJECT, GOOGLE_CLOUD_LOCATION, GOOGLE_GENAI_USE_VERTEXAI |
This is fine as an interim approach, but it means adding a new provider or credential field requires updating every consumer separately.
Proposed change
Add an extra_credential_fields (or similar) field to ACPProviderInfo that captures these provider-specific credentials the SDK doesn't inject itself but consumers need to surface:
@dataclass(frozen=True)
class ACPCredentialField:
name: str # env var name / global-secret key
secret: bool = True # whether the value should be masked in UI
multiline: bool = False # file-content blobs (auth.json, SA key)
file_hint: str | None = None # e.g. "~/.codex/auth.json"@dataclass(frozen=True)
class ACPProviderInfo:
...
extra_credential_fields: tuple[ACPCredentialField, ...] = ()Populated for the three built-in providers with the fields listed in the table above.
Why this belongs in the SDK
The SDK is already the canonical single source of truth for provider metadata (ACP_PROVIDERS). Keeping credential field definitions here means:
- A new provider only needs one registration point
- Consumers can drop their static extra-fields maps and derive the full credential list from
ACPProviderConfig(served via the options endpoint) - Part of the broader goal from canvas [ACP on Cloud] SDK: complete ACP secret consolidation — registry-only one channel OpenHands#15722 of stopping ACP from being a special case in each consumer
Related
- [ACP on Cloud] SDK: complete ACP secret consolidation — registry-only one channel OpenHands#15722 — complete ACP secret consolidation (registry-only one channel)
- feat(acp): add model dropdown and credential fields to agent settings page OpenHands#14733 — PR that introduced
ACP_PROVIDER_SECRETS_EXTRAas an interim;api_key_env_var/base_url_env_varwere lifted to the registry in that PR, but the extra fields remain hardcoded in the frontend
Activity
github-actions commentedon Jul 23, 2026
This issue is stale because it has been open for 40 days with no activity. Remove the stale label or leave a comment, otherwise it will be closed in 10 days.
github-actions commentedon Aug 3, 2026
This issue was automatically closed due to 50 days of inactivity. We do this to help keep the issues somewhat manageable and focus on active issues.