Welcome to the Flux documentation. This directory contains detailed guides and reference material for the Universal LLM Provider Runtime.
- Architecture — System architecture, data flow, and design decisions
- Host-Engine Boundary — Stable
engine/llm/graph/toolscontract - Flux Enterprise — Enterprise surfaces
- Provider Setup Guide — How to configure credentials and providers
- Dynamic Model Discovery — Architecture and implementation details for live model discovery
- Decentralized Flux routing — Instance-local routing and signed peer manifests
- Feature-oriented architecture — Package layout and layering rules
- OpenAPI — Contract for the internal HTTP server in
internal/api(health, prompt, nodes, aliases, analytics);/v1/chat/completions,/rerankand/readyare served but not yet in the spec. flux ships no binary that starts this server.
- README — Project overview and quick start
- Contributing Guide — How to contribute to Flux
- Security Policy — Security reporting and best practices
- Changelog — Version history and release notes
The examples/ directory contains runnable code samples:
- Basic Chat — Simple synchronous chat with a single provider
- Streaming — Server-sent events streaming with continuation
- Multi-Provider — Using fallback chains across multiple providers
docs/
├── README.md # This file
├── ARCHITECTURE.md # System architecture
├── architecture/
│ ├── HOST-ENGINE-BOUNDARY.md # Host contract, frozen engine-internal types
│ ├── DECENTRALIZED-FLUX.md # Instance-local routing, signed peer manifests
│ └── FEATURE-MONOREPO.md # Package layout and layering
├── design/
│ └── FLUX-ENTERPRISE.md # Enterprise surfaces (design)
├── guides/
│ ├── CREDENTIAL-SETUP-FLOW.md
│ └── DYNAMIC-MODEL-DISCOVERY.md
└── plans/ # Remediation plans and reviews
The HTTP contract lives outside this directory, at
../api/openapi.yaml. Retry/fallback, caching and
routing strategies are described in ARCHITECTURE.md; there
are no separate guides for them yet.
If you're contributing to Flux:
- Read CONTRIBUTING.md for development setup
- Review ARCHITECTURE.md to understand the system
- Check AGENTS.md for AI agent context and conventions
- Run
make cilocally before submitting PRs
If you're using Flux in your application:
- Start with the Quick Start in the main README
- Review the Usage examples for common patterns
- Check the examples/ directory for complete code samples
- Read the Provider Setup Guide for credential configuration
API documentation is available at:
- pkg.go.dev — Generated Go documentation
- ARCHITECTURE.md — Core abstractions and interfaces
- Issues: GitHub Issues
- Security: See SECURITY.md for vulnerability reporting