Providers with known public APIs use their official endpoints: - meta-llama → api.llama.com/v1 - microsoft → models.inference.ai.azure.com (GitHub Models) - ibm-granite → us-south.ml.cloud.ibm.com/ml/v1 (watsonx) - tencent → api.hunyuan.cloud.tencent.com/v1 - morph → api.morphllm.com/v1 16 remaining providers without known public APIs route through OpenRouter (base_url = openrouter.ai/api/v1, OPENROUTER_API_KEY). sync-pricing.py updated with PROVIDER_API mapping.
Scripts
Utility scripts for maintaining the LibreFang registry.
validate.py
Validates all TOML content files across the registry.
python scripts/validate.py
What It Checks
Per content type:
- Providers -- required fields, valid tiers, non-negative costs, no duplicate model IDs
- Agents -- required fields (name, description, module), name matches directory
- Hands -- required fields (id, name, description), valid category, [agent] section, id matches directory
- Integrations -- required fields (id, name), [transport] section, id matches filename
- Skills -- [skill] section with name, [runtime] with valid type
- Plugins -- name matches directory, [hooks] section, hook files exist
Cross-type checks:
- Routing alias collisions between agents and hands (reported as warnings)
- Cross-file duplicate model IDs within the same provider
Requirements
- Python 3.11+ (uses
tomllib) - Or Python 3.8+ with
pip install tomli
Exit Codes
0-- all checks passed1-- one or more validation errors