Supported runtime catalog contract for custom API identities

Could you point me to the supported native contract for a provider plugin’s runtime catalog?

I’m reviewing a historical OpenClaw 2026.8.2 bundle/source snapshot. Explicit custom API values were rejected in provider/model configuration, while the lower model reader and AI registry/type contracts appeared to permit custom API strings. This has not been rechecked against the current release.

  1. Can api.registerProvider({ catalog: { run } }) publish models with a non-built-in API identity without declaring that same custom value in models.providers? Which native caller invokes catalog.run, validates the returned API fields, adds generated-catalog provenance and passes it to persistence/the runtime reader?
  2. For supported versions, when a required custom stream/registry implementation is unavailable, does native dispatch preserve that API identity and refuse before transport, or can model fallback substitute a built-in implementation? I want to preserve native model substitution while understanding the supported boundary.

A documentation link or versioned source/test permalink for that path would be enough. If this is unsupported, please identify that limit and the supported extension point, if any, rather than a schema edit or internal-state workaround.

This is a capability/source-reference question, not a claim about a current defect.

Hey there @DKL, and welcome to the community!

Thanks for being specific about the version and for distinguishing this from a current bug report.

There is a supported native path for provider catalogs, but it’s important to separate model discovery, transport registration, and model fallback.

1. Provider catalogs

api.registerProvider({ catalog: { run } }) is supported. The catalog hook returns { provider } or { providers }, and OpenClaw merges those entries into its generated model inventory.

The relevant 2026.10.10 source paths are:

These establish the native catalog invocation and generated-catalog publication path without requiring the same provider to be manually declared in models.providers.

However, publishing a model does not register a new executable API transport. The catalog must still satisfy the supported model configuration and runtime contracts. I wouldn’t treat the lower-level reader’s acceptance of arbitrary API strings as a guarantee of supported native dispatch.

2. Custom transports and fallback

The documented provider extension point for a fully custom transport is createStreamFn. For modifications to an existing supported transport, use wrapStreamFn or the appropriate provider normalization hooks.

Model fallback is a separate mechanism. It selects another configured provider/model candidate when the failure is eligible for fallback. It should not be confused with substituting a built-in transport implementation for an unrecognized API identity.

I haven’t verified a source/test contract guaranteeing the precise fail-closed behavior you’re asking about when a custom stream implementation is missing. I wouldn’t claim that guarantee based solely on the catalog and registry types.

The relevant documentation is here:

For a supported implementation, I’d use catalog to publish the models, createStreamFn for a genuinely custom wire protocol, and the normal configured model fallback chain for substitution between models.

A schema edit, manually inserted catalog state, or reliance on an arbitrary API string reaching the lower registry would not establish a supported extension contract.

Hope those references help clarify the boundary!

-Joe