Skip to content

feat(acp): add provider-specific extra credential fields to ACPProviderInfo registry #3623

Closed as not planned

Description

@simonrosenberg

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:

Related

Activity

  1. added
    enhancement
    and removed on Jun 12, 2026
  2. github-actions commented on Jul 23, 2026

    @github-actions
    Contributor

    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.

  3. github-actions commented on Aug 3, 2026

    @github-actions
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Staleenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions