small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
albedo robot-docs models.md

Models catalog #

The models extension supplies model metadata to the harness. Provider extensions can also supply model lists and metadata. Authentication and profile selection are described in model authentication.

Cache #

The models extension stores the catalog as models.json in the Albedo home. Its default URL is https://models.dev/api.json, and its default refresh interval is 24 hours. A refresh runs in the background when the cache is missing or old. A failed fetch keeps the previous cache. refreshHours set to zero disables that automatic fetch. An explicit reload reports fetch errors.

The typed catalog projection decodes provider and model metadata and trims fetched catalogs to the fields lookup uses. The native cache owns file revisions, isolated parsing, the persisted version-2 index, and publication of the provider and model maps together. Legacy untrimmed files are rewritten on first parse while preserving their modification time. The catalog is external data, not a guarantee of a provider's current offerings.

Lookup #

catalog.select uses the endpoint host to select a provider when possible. chatgpt.com selects the OpenAI catalog identity. Without an attributed match, it uses the smallest known context limit, reports an output limit only when known limits agree, and intersects reported modalities and efforts. select_provider instead requires the named provider.

When a model is missing, the extension lookup can infer low, medium, and high reasoning efforts from certain model names. That fallback does not supply catalog limits. A failed lookup otherwise returns no metadata.

Model lists #

model_lists exposes ids, refetch, saved, and ready for provider-specific lists. The native cache stores lists separately from the general catalog and applies success and failure expiry periods. Consumers must handle a missing or unavailable list. The proxy uses profile and catalog information when it lists models.

OpenAI-compatible lists share catalog.ids for sorted, unique IDs. Providers retain eligibility, credential precedence, headers, timeouts, and HTTP status policy. The ordinary HTTP client preserves response headers for conditional catalog requests. Mixed-credential catalog reads do not establish model-session affinity.