一键导入
legal-and-trademarks
Legal compliance, license management, trademark guidelines, and distribution requirements for the Onde Inference project and its SDKs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Legal compliance, license management, trademark guidelines, and distribution requirements for the Onde Inference project and its SDKs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Onde Inference SDK branding rules. Covers copyright headers for every language, brand identity (logo, colors, badges), README structure, and file classification (generated vs hand-written). Apply when creating or editing any SDK source file, README, or documentation.
Cross-compilation regression checks for the onde crate. Covers macOS, iOS, tvOS (nightly), Android, Windows, and Linux target verification. Run before merging any change that touches platform-gated code, Cargo.toml, .cargo/config.toml, or build.rs. Also documents the onde-mistralrs fork publishing strategy and cargo publish workflow.
Remove signs of AI-generated writing from text. Use after drafting to make copy sound more natural and human-written. Based on Wikipedia's "Signs of AI writing" guide.
End-to-end SDK release process for all Onde distribution channels. Covers version bump checklist, CI/CD pipelines for Rust (crates.io), Swift (XCFramework → onde-swift), Dart (pub.dev), and npm, tag validation, GitHub Release creation, manual publish fallback, and common pitfalls. Apply whenever bumping versions or troubleshooting release workflows.
Build, generate, and publish the Onde Inference Kotlin Multiplatform SDK (Android + JVM). Covers UniFFI Kotlin binding generation, KMP source set layout with shared srcDir pattern, cargo-ndk cross-compilation for Android ABIs, JVM native library bundling for macOS Apple Silicon, Maven Central publishing via Vanniktech plugin, klibs.io discovery requirements, ProGuard consumer rules, and the Jetpack Compose example app.
Build, debug, and maintain the Onde Inference React Native / Expo SDK. Covers Expo native module wiring, Metro config for file-linked SDKs, iOS deployment target and Expo autolinking, XCFramework device/simulator split, app group entitlement, HF_HOME/TMPDIR sandbox setup, the native bridge JSON string contract, EngineStatus normalization, and npm publishing.
| name | legal-and-trademarks |
| description | Legal compliance, license management, trademark guidelines, and distribution requirements for the Onde Inference project and its SDKs. |
Reference for AI agents and human contributors on all legal, licensing, trademark, and distribution compliance topics for the
ondecrate,onde-swift, and all downstream SDKs.
Onde is dual-licensed under MIT and Apache 2.0, at the user's option. This mirrors the licensing model used by the Rust language itself.
SPDX-License-Identifier: MIT OR Apache-2.0
| Concern | MIT alone | MIT OR Apache-2.0 |
|---|---|---|
| Patent grant | ❌ None | ✅ Apache 2.0 includes irrevocable patent grant |
| Enterprise adoption | ⚠️ Legal teams may ask questions | ✅ Widely understood and accepted |
| Rust ecosystem compatibility | ✅ | ✅ |
| Contributor protection | ❌ | ✅ Patent termination clause deters trolling |
| Simplicity | ✅ | ✅ User just picks one |
| File | Contents |
|---|---|
LICENSE-MIT | MIT License, copyright Onde Inference (Splitfire AB) |
LICENSE-APACHE | Apache License 2.0 |
Never use a single LICENSE file for dual-licensed projects. Always maintain both files separately.
license = "MIT OR Apache-2.0"
Use OR (uppercase, SPDX standard), not AND or /. AND would mean the user must comply with both simultaneously — that is a different and more restrictive claim.
The canonical copyright notice for all Onde Inference files is:
Copyright (c) 2026 Onde Inference (Splitfire AB)
This notice must appear in:
LICENSE-MITLICENSE-APACHE (NOTICE file section)| Crate | License | Notes |
|---|---|---|
mistral.rs (Eric Buehler) | MIT | Must preserve Copyright (c) 2024 Eric Buehler |
uniffi | MPL-2.0 | File-level copyleft; compatible with MIT/Apache 2.0 for binary distribution |
tokio | MIT | — |
serde | MIT OR Apache-2.0 | — |
anyhow / thiserror | MIT OR Apache-2.0 | — |
hf-hub | Apache-2.0 | — |
log | MIT OR Apache-2.0 | — |
uniffi) — what it means in practiceMozilla Public License 2.0 is file-level copyleft:
uniffi (not modifying its internals), no disclosure obligation applies.Never introduce a GPL-licensed dependency (v2-only in particular). GPL v2 is incompatible with Apache 2.0 and would contaminate the entire binary.
Before adding any new dependency, verify its license with:
cargo license --all-features
Acceptable licenses for new dependencies: MIT, Apache-2.0, MIT OR Apache-2.0, ISC, BSD-2-Clause, BSD-3-Clause, MPL-2.0, Unicode-3.0, Zlib.
This is the most critical compliance area for downstream users.
Onde downloads AI models from HuggingFace at runtime. These models carry their own licenses, entirely separate from Onde's MIT OR Apache-2.0 license. Any application that ships with or downloads these models must comply with the model's license.
| Model | HuggingFace Repo | License | Commercial use |
|---|---|---|---|
| Qwen 2.5 1.5B Instruct | Qwen/Qwen2.5-1.5B-Instruct | Qwen Community License | ✅ Allowed with conditions |
| Qwen 2.5 3B Instruct | Qwen/Qwen2.5-3B-Instruct | Qwen Community License | ✅ Allowed with conditions |
| Qwen 2.5 Coder 1.5B | Qwen/Qwen2.5-Coder-1.5B-Instruct | Qwen Community License | ✅ Allowed with conditions |
| Qwen 2.5 Coder 3B | Qwen/Qwen2.5-Coder-3B-Instruct | Qwen Community License | ✅ Allowed with conditions |
| Qwen 2.5 Coder 7B | Qwen/Qwen2.5-Coder-7B-Instruct | Qwen Community License | ✅ Allowed with conditions |
Onde's README and any SDK README must contain a ## Model Licenses section that:
When a new model is added to src/inference/models.rs, the model license table in the README must be updated in the same commit.
"Onde Inference" and the Onde logo (assets/onde-inference-logo.svg) are trademarks of Splitfire AB.
MIT and Apache 2.0 grant code rights only — neither license grants trademark rights. This is intentional and protective.
A fork of onde may use the code freely under MIT OR Apache-2.0 but must not:
This is standard open-source brand protection and is consistent with how the Apache Software Foundation, Mozilla, and Rust Foundation handle their trademarks.
Onde depends on a personal fork of mistral.rs by Eric Buehler:
mistralrs = { git = "https://github.com/setoelkahfi/mistral.rs",
branch = "fix/all-platform-fixes", ... }
mistral.rs/LICENSE must remain intact and contain Copyright (c) 2024 Eric Buehler. Never alter it.mistralrs = { git = "https://github.com/setoelkahfi/mistral.rs", rev = "<commit-sha>" }
EricLBuehler/mistral.rs. Maintaining a long-lived divergent fork creates legal ambiguity about authorship of patches.NOTICE file must include: "This product includes software developed by Eric Buehler (mistral.rs)."license = "MIT OR Apache-2.0" in Cargo.toml ✅LICENSE-MIT and LICENSE-APACHE must be present in the repo rootreadme = "README.md" must point to a file that contains the ## Model Licenses sectionpubspec.yaml must declare license: MIT OR Apache-2.0## Model Licenses section must be present in the published READMEonde-swift/README.md license section must state MIT OR Apache-2.0## Licenses sectionWhen adding a new model to src/inference/models.rs:
## Model Licenses table in onde/README.md## Model Licenses table in onde-swift/README.mdcargo license --all-features and confirm no GPL appearsLICENSE-MIT and LICENSE-APACHE are presentCargo.toml / pubspec.yaml / package.json declare MIT OR Apache-2.0## Model Licenses sectionOnde Inference (Splitfire AB)) is correctLICENSE (Eric Buehler) is intact and unmodified| Question | Answer |
|---|---|
| What license is Onde? | MIT OR Apache-2.0 (user's choice) |
| Who holds the copyright? | Onde Inference (Splitfire AB) |
| Can someone fork Onde and sell it? | Yes, under MIT or Apache 2.0, but they cannot use the "Onde Inference" name or logo |
| Are Qwen models MIT? | No — Qwen Community License. Disclose to users. |
| Can enterprises use Onde commercially? | Yes. Apache 2.0 + Qwen Community License both permit commercial use. |
| Does the patent grant apply? | Yes, under Apache 2.0. Choose Apache 2.0 if patent protection matters to you. |
| Who is Eric Buehler? | Author of mistral.rs. His MIT copyright must be preserved in our fork. |