/.well-known/opencode endpoint returns a JSON object with auth and config fields. The config field contains the provider definition (without apiKey) and the current text-generation model map generated dynamically from the live catalog. The auth field enables opencode auth login https://api.compose.market to register the endpoint for remote config fetching. Credentials are added separately via OpenCode’s /connect command.
The /external/opencode alias returns the same config but with apiKey: "{env:COMPOSE_MARKET_API_KEY}" included, for clients that read the config directly and inject keys via environment variables.