ModelMeld
Copyright 2026 ModelMeld and contributors

This product includes software developed by ModelMeld.
Licensed under the GNU Affero General Public License, Version 3 or later
(AGPL-3.0-or-later); you may not use this software except in compliance
with the License. You may obtain a copy of the License at:

    https://www.gnu.org/licenses/agpl-3.0.txt

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.

Why AGPL: ModelMeld is network-call software. Most users embed the
gateway as a sidecar to their dev tools, hitting it over HTTP from
unmodified clients — that usage pattern does NOT trigger AGPL's
network-copyleft clause. Clients calling the gateway are not "derived
works" of the gateway. See `docs/license-rationale.md` for the full
explanation of why we chose AGPL over Apache-2.0 and what it means for
different deployment patterns. For commercial licensing (e.g. to embed
`modelmeld` in a closed-source product or offer a managed service
with proprietary modifications) contact hello@modelmeld.ai.

================================================================================
DATA FILES — separate terms apply
================================================================================

The benchmark data files under `src/modelmeld/scout/data/` (notably
`default_registry.json`) are NOT covered by the AGPL-3.0 license that
applies to the surrounding code. See `src/modelmeld/scout/data/LICENSE.md`
for the terms that govern those files.

The bundled `default_registry.json` is a point-in-time SNAPSHOT (marked via
`snapshot_release_date`) of production-tuned model scores, provided under
CC-BY-4.0. The data is real production tuning frozen at OSS release date —
it stales over ~6 months as the foundation-model market shifts. Production
deployments wanting continuously-updated routing data fetch the live
curated registry from the subscription feed (default
`https://feed.modelmeld.ai`) using a license key issued from an active
ModelMeld subscription. The terms of that feed are documented separately
in the subscription agreement; redistribution of the feed data, or its
use to power a competing routing service, is not permitted.

This separation is intentional: the code is copyleft-OSS-licensed to drive
adoption while protecting against hyperscaler forks; the curated registry
data is the operational subscription product. A fork has the code (under
AGPL) but does not automatically receive a license to the live registry
feed.

================================================================================
ROUTING TUNING SEAM — methodology vs values
================================================================================

`modelmeld.scout.heuristics.DEFAULT_HEURISTIC_WEIGHTS`,
`modelmeld.scout.devtool.DefaultPatternProvider`, the default
`TaskCategoryWeights`, and `DEFAULT_QUALITY_THRESHOLD` ship the
production-tuned values we run today, under AGPL-3.0-or-later with the
rest of the code. The *methodology* that derives those values — the A/B
tuning harness, multi-source benchmark aggregation, scoring formula
derivation, and feed publication pipeline — lives in
`modelmeld_enterprise.routing_tuning` and is not part of this distribution.
See `docs/open-core-boundary.md` for the boundary contract.

================================================================================
THIRD-PARTY COMPONENTS
================================================================================

This software depends on the following third-party libraries, distributed
under their own licenses. AGPL-3.0-or-later is compatible with code under
MIT, BSD, Apache-2.0, and similar permissive licenses (we incorporate
them, they don't constrain us). A full list with versions is published
with each SBOM-generating release; see SECURITY.md.

  - FastAPI               MIT
  - httpx                 BSD-3-Clause
  - Pydantic              MIT
  - pydantic-settings     MIT
  - uvicorn               BSD-3-Clause
  - PyYAML                MIT
  - openai (optional)     Apache-2.0
  - anthropic (optional)  MIT
  - litellm (optional)    MIT
  - cryptography          Apache-2.0 / BSD-3-Clause

The full AGPL-3.0 license text is in the LICENSE file in this directory.
