Free, open, portable AI infrastructure for everyone.
Build AI systems that are inspectable, governed, measurable, replaceable, and not trapped inside a single vendor.
Overview • Mission • The Problem • Projects • Screenshots • Architecture • Principles • Get Started
Linux of AI makes it cheap and provable to leave any AI vendor. Vendors are where things run; your Git repository is where things are defined.
Every package is Beta, Apache-2.0, runs offline by default, and supports Python 3.11 to 3.13.
The vendor exit report: 12 vectors
ai-suite exit-report scores how hard it would be to leave a vendor on twelve vectors, each from 0 (most portable) to 100 (most locked, or no evidence):
policies · prompts · embeddings · fine-tunes · memory · audit history · cost history · tool connectors · identities · ontology · contract terms · model providers
Every row states which checks the scanner re-ran itself and which claims stay operator-attested. The suite never runs a model. Restores are verified against deterministic offline fake profiles, not real vendor restores, and contract terms are always attested. See the exit report documentation.
Design documents are in docs/.
New to Linux of AI? Start with the Start Here guide to choose the right tool for your problem.
You can also inspect the Linux of AI Vendor Exit Demo to see the ecosystem pattern in one deterministic, offline-first example.
The three-profile restore demo separately verifies content, behavior, and re-export gates against provider-shaped offline fakes (Azure-, AWS-, and Ollama-shaped), including a chained migration through all three profiles. It is not a real vendor restore.
New to Linux of AI? Generate a complete offline vendor-exit workspace:
python scripts/create_vendor_exit_project.py my-ai-exit-check cd my-ai-exit-check python run.py The quickstart creates a fictional customer-support AI workload with:
AIMeter OSS-style cost and outcome summaries;
AIAuditLog-style audit events;
It uses deterministic fixture data, requires only the Python standard library, and makes no external API calls. See the Quickstart Kit guide for the generated file map, replacement workflow, and limitations.
The Linux of AI Vendor Exit Demo shows how the ecosystem can help a team evaluate replacing an expensive or locked-in AI model using portable ontology, policy, benchmarking, audit evidence, and cost/outcome measurement.
This demo is deterministic and offline-first. It demonstrates the integration pattern using portable files and reports, including AIMeter OSS-style cost/outcome JSON and AIAuditLog-style audit-event JSONL exports from the model replacement decision.
ModelSwapBench can now produce both an AI Vendor Exit Report and a Model Routing Plan, helping teams decide not only whether a model can be replaced, but which tasks can move safely, which need human review, and which should stay on the baseline model.
a compliance certification;
a replacement for human review in high-risk workflows;
proof that any model migration is automatically safe.
It is open infrastructure for building, evaluating, governing, auditing, and measuring AI systems.
If you are new, start here:
Generate a workspace with python scripts/create_vendor_exit_project.py my-ai-exit-check
Run the generated run.py and inspect its AI System Map and reports
Run or inspect examples/vendor-exit-demo/
Try the individual packages for deeper validation and runtime workflows
Linux of AI is an eight-project open-source ecosystem created to reduce vendor lock-in and make practical AI infrastructure available to everyone.
No organization should be forced to surrender control of its AI systems, data, costs, policies, or future to a single vendor.
AI is becoming critical infrastructure. But many organizations are discovering that the systems they built are difficult to move, difficult to inspect, difficult to govern, and increasingly expensive to operate.
This ecosystem exists to provide another path.
A path where AI infrastructure is:
Portable across models, providers, and environments
Inspectable instead of hidden behind opaque services
Governed through explicit policies
Measurable in cost, usage, efficiency, and outcomes
Replaceable when a model or provider no longer serves the user
Local-first where privacy or control matters
Free and open source for public benefit
This software is intended to remain available to developers, researchers, nonprofits, businesses, governments, students, and communities without placing the core infrastructure behind a paywall.
Organizations adopting AI repeatedly encounter the same pain points.
Applications become tightly coupled to one model provider, SDK, API format, pricing model, or hosted platform. Replacing the provider later can require major rewrites.
A prototype may be affordable, but production usage can grow rapidly. Teams often lack clear controls for routing, budgeting, measuring cost, and comparing alternatives.
No practical replacement path
Organizations may know they are overpaying or underperforming, but they lack a repeatable way to test another model without disrupting the application.
AI agents can call tools, access data, and make decisions without clear, portable rules governing what they are allowed to do.
Limited operational evidence
Logs are often inconsistent, provider-specific, incomplete, or difficult to verify after the fact.
API success does not necessarily mean business success. Many systems track requests and tokens but not whether the AI produced an acceptable outcome.
Loss of organizational meaning
Business concepts, relationships, permissions, and actions are frequently embedded directly inside application code, making systems difficult to understand and migrate.
Privacy and deployment constraints
Some organizations cannot send sensitive data to external providers. They need local or controlled deployment options that do not require rebuilding the entire stack.
Linux of AI addresses these problems as one connected ecosystem.
OpenOntologyLite │ ▼ Portable organizational meaning │ ▼ AgentPolicyPack │ ▼ Portable governance rules │ ▼ AgentForge │ ▼ Portable agent orchestration │ ▼ PrivateAIStack │ ▼ Private and controlled deployment │ ▼ ModelSwapBench │ ▼ Model replacement and economics verification │ ▼ AIAuditLog │ ▼ Portable tamper-evident operational evidence │ ▼ AIMeter OSS │ ▼ Usage, cost, efficiency, and outcome measurement AI Infrastructure Suite sits alongside these independently usable components as a lightweight installer and compatibility layer. It does not replace their packages or add their business logic.
Each project can be used independently. Together, they form a portable foundation for building AI systems without making one provider the permanent center of the architecture.
Pain point: Organizational knowledge is buried inside source code, database schemas, prompts, and vendor-specific platforms.
Portable ontology definitions in YAML or JSON
Typed entities, properties, relationships, and actions
Permissions and preconditions
Defines portable AI System Maps for tasks, risk levels, allowed model routes, human-review rules, audit expectations, and cost/outcome measurement expectations
Validation and canonical representation
Diffing, inspection, documentation, and diagram export
The vendor-exit demo includes a portable AI System Map that assigns each customer-support task to candidate_model, baseline_model, human_review, or blocked_or_escalate paths. Its ecosystem entries document integration patterns only; they do not claim verified live integrations between the projects.
Local-first and offline operation
Why it matters: Your organization’s meaning should belong to your organization, not to a proprietary platform.
Pain point: Agent behavior is often governed by scattered prompt instructions and application-specific checks.
Explicit rules for agent actions
Reusable governance across systems
A foundation for reviewable and testable agent behavior
Why it matters: Governance should be visible, portable, and separate from the model itself.
Pain point: Multi-agent systems become tightly coupled to one provider, one orchestration framework, or one pricing model.
Supervisor and worker patterns
Why it matters: The orchestration layer should make models replaceable rather than make lock-in stronger.
Pain point: Many organizations need AI capabilities but cannot send all data to external services.
Ollama-backed local models
PostgreSQL and pgvector support
Local retrieval-augmented generation
Why it matters: Privacy, local control, and portability should be practical options, not enterprise luxuries.
Pain point: Teams cannot easily prove whether another model is good enough to replace their current provider.
Repeatable model comparison
Cost and latency comparison
Provider replacement testing
Evidence for model-routing and migration decisions
Why it matters: A model should earn its place through measured performance, not remain because switching feels too difficult.
Pain point: AI logs are inconsistent, incomplete, and often locked into provider-specific systems.
A portable audit-event format
Hash chaining for tamper evidence
Consistent operational evidence across AI systems
Tamper-evident does not mean immutable
A signature does not prove real-world identity by itself
Audit logs do not automatically create legal non-repudiation
Using the format does not automatically create regulatory compliance
Why it matters: Organizations need evidence they can retain, inspect, export, and understand independently of a vendor.
Pain point: Token counts and API bills do not explain whether an AI system is efficient or useful.
Cost calculation using precise decimal arithmetic
Provider and model comparison
Missing pricing is never treated as zero
Calculated cost is not invoice-confirmed cost
Projected savings are not realized savings
API success is not automatically business success
Budgets are evaluated, not automatically enforced
Why it matters: AI economics should be measured in terms of cost and acceptable outcomes, not tokens alone.
The core software is free and open source under the Apache License 2.0.
No forced vendor dependency
The ecosystem is designed to keep models, providers, and deployment environments replaceable.
The projects should not claim tests, integrations, security guarantees, compliance, publication status, or verification unless those claims were actually demonstrated.
Organizations should be able to run critical parts of their AI infrastructure locally or inside environments they control.
Measurement before loyalty
Models and providers should be selected based on measured outcomes, cost, latency, privacy, and operational needs.
Governance should travel with the system
Policies, organizational meaning, audit evidence, and measurements should remain portable when the model or provider changes.
Open infrastructure is a public good
AI infrastructure should not be available only to the largest companies. Smaller organizations, public institutions, researchers, and independent developers should have access to practical alternatives.
Linux of AI is intended for:
Developers building AI applications
Teams trying to reduce model-provider dependency
Organizations facing rising token costs
Businesses evaluating local or private AI
Researchers who need inspectable infrastructure
Nonprofits and public-interest organizations
Governments and regulated environments
Platform teams building internal AI capabilities
Anyone who believes critical AI infrastructure should remain open
Install individual projects from PyPI:
pip install agentforge-oss pip install privateaistack pip install modelswapbench pip install openontologylite pip install agentpolicypack pip install aiauditlog pip install aimeter-oss pip install ai-infrastructure-suite AI Infrastructure Suite provides the ai-suite installer and compatibility diagnostics. The individual projects remain independently installable and usable.
Supported Python versions:
Python 3.11–3.13 Visit each repository for project-specific installation instructions, examples, limitations, and documentation.
GitHub organization and public work:
Each project publishes its own advisories and security policy. Published advisories so far:
To report a vulnerability, see SECURITY.md.
Contributions are welcome.
Useful contributions include:
Documentation improvements
Bug reports with reproducible examples
Tests across Python 3.11–3.13
Model-evaluation scenarios
Cost and outcome measurement adapters
Accessibility improvements
Packaging and release improvements
Please read the contribution guidance in the individual project repository before submitting changes.
Free software still requires maintenance.
The long-term goal is to keep the core ecosystem free while supporting sustainability through methods such as:
Optional implementation support
Optional training and consulting
The mission is not to place the core infrastructure behind a paywall. The mission is to keep it useful, maintained, and available.
All projects in the Linux of AI ecosystem use the Apache License 2.0, unless a repository explicitly states otherwise.
AI should expand human capability without forcing humanity into permanent dependence on a small number of vendors.
Linux of AI exists so that organizations can understand their systems, control their costs, govern their agents, preserve their knowledge, replace their models, retain their evidence, and measure whether AI is actually helping.
Free infrastructure. Portable systems. Human control.
Linux of AI is a free, open-source ecosystem for building portable, governed, measurable, and replaceable AI infrastructure. It connects tools for agent orchestration, private deployment, model switching, policy, ontology, audit logs, and AI cost measurement to help reduce vendor lock-in.




