# FluxFiles > FluxFiles is a free, open-source (MIT) embeddable file manager for PHP apps and WordPress. Files stay in the operator's own storage (local disk, Amazon S3, Cloudflare R2, any S3-compatible bucket, or SFTP); no FluxFiles server ever sees them. The paid FluxFiles Pro adds branded share links and client upload portals with document requests. Key facts: - License: the core file manager is MIT and free forever. Paid modules are proprietary, sold as monthly or annual subscriptions (flat fee, unlimited sites) through Polar as merchant of record. - Billing: plans renew automatically until cancelled; buyers can turn off renewal any time in the customer portal (https://polar.sh/flux-family/portal). An annual licence stays usable for the version bought after cancelling (only updates and support stop); a monthly licence stops 31 days after the last renewal plus 7 days' grace. Files are never deleted. 14-day refund. - Runs as: a WordPress plugin, a Laravel package, a standalone PHP app (or Docker image), or an iframe embedded through the JavaScript SDK and the React, Vue/Nuxt, CKEditor 4/5, TinyMCE or Summernote adapters. Token SDKs exist for Node and Python, plus an MCP server. - Requirements: PHP 8.1 or newer. - Auth model: the host app mints a short-lived JWT that scopes each user to a disk, a path and a set of permissions. There is no central FluxFiles database; metadata travels with the user's own storage (or, opt-in, the operator's own MySQL/PostgreSQL/SQLite). - Free features: upload/download (chunked, resumable and presigned), folders, trash, search, on-demand WebP/AVIF images and WebP optimization at rest, crop, watermarking, zip, a usage dashboard, a duplicate finder, URL import, an HMAC-chained audit log, and optional AI tagging and alt text with your own provider key. - FluxFiles Pro ($9/month or $79/year): Branded Share (links with expiry, password, download cap and view analytics) and Upload Portals (a public "send us your files" page with no account needed; document requests with a checklist, a due date and automatic reminders; e-mail notices through the site's own mail). It includes the FluxFiles Pro add-on for WordPress. - Studio ($19/month or $199/year): everything in Pro plus versioning, AI vision and OCR (bring your own key), and signed webhooks for Zapier, Make and n8n. - Enterprise (custom): everything in Studio plus DLP redaction, legal hold and retention rules, virus scanning, C2PA provenance, audit-log export, OIDC single sign-on and backup to a second disk. - Typical users: agencies and freelancers collecting files from clients, SaaS products that give each customer their own storage, and developers who need a file manager inside their app. **Developers: quick start.** Try the server in Docker (from the repository README, "Try it in 30 seconds"): ```bash # One secret (>= 32 bytes), shared by this server and by whatever backend mints your tokens echo "FLUXFILES_SECRET=$(openssl rand -hex 32)" >> .env docker run -d --name fluxfiles -p 8080:80 --env-file .env ghcr.io/thai-pc/fluxfiles:latest TOKEN=$(docker exec fluxfiles php -r 'require "/app/packages/core/embed.php"; echo fluxfiles_token(["user" => "demo", "perms" => ["read","write","delete"], "disks" => ["local"]]);') echo "http://localhost:8080/public/index.html?token=$TOKEN" ``` The `?token=` URL is for trying it locally only. Without Docker: `composer require fluxfiles/fluxfiles`, then `php vendor/bin/fluxfiles serve`. Packages (all MIT, all free): - `fluxfiles/fluxfiles` (Composer): the core server, API and iframe UI; `embed.php` provides `fluxfiles_token()`. - `fluxfiles/laravel` (Composer): Laravel adapter with the `` Blade component, `FluxFiles::token()`, config and a route proxy. - `ghcr.io/thai-pc/fluxfiles` (Docker image): the core server, ready to run. - WordPress plugin: a ZIP from the GitHub releases page (tags `wordpress-v*`): Media > FluxFiles, a shortcode, a block, settings for S3/R2/SFTP and AI tagging. - `fluxfiles` (npm): the JavaScript SDK, the iframe + `postMessage` bridge every other front-end adapter builds on (`FluxFiles.open({...})`). - `@fluxfiles/react` (npm): ``, `` and `useFluxFiles()`, typed. - `@fluxfiles/vue` (npm): Vue 3 components and composables, with Nuxt 3 auto-import. - `@fluxfiles/ckeditor4`, `@fluxfiles/ckeditor5`, `@fluxfiles/tinymce`, `@fluxfiles/summernote` (npm): editor plugins (a toolbar button and, where the editor has one, the image dialog's browse button). - `@fluxfiles/node` (npm) and `fluxfiles-token` (PyPI): mint tokens from a Node or Python backend, byte-compatible with the PHP helper. They only mint tokens; you still run the core server. - `@fluxfiles/mcp` (npm): an MCP server for AI agents (Claude Desktop, Claude Code, any MCP client) to list, search and read files, and optionally write, through a scoped token. Run it with `npx -y @fluxfiles/mcp`. Mint a token on your backend (PHP, Node, Python, Laravel and WordPress all accept a `claims` map for any claim by its raw name; see the configuration reference): ```php require 'vendor/fluxfiles/fluxfiles/embed.php'; $token = fluxfiles_token(['user' => (string) $user->id, 'perms' => ['read', 'write'], 'disks' => ['s3'], 'prefix' => "users/{$user->id}/"]); ``` ```js import { createToken } from '@fluxfiles/node'; // reads FLUXFILES_SECRET when `secret` is omitted const token = createToken({ userId: String(user.id), perms: ['read', 'write'], disks: ['s3'], prefix: `users/${user.id}/` }); ``` Security rules for an integration: - Mint the token on your server, never in the browser, and keep `FLUXFILES_SECRET` server-side. - The token backend and the FluxFiles server must use the same `FLUXFILES_SECRET`, at least 32 bytes (HS256); a token signed with another secret is rejected. - Never put the main JWT in a URL. The SDK and adapters hand it to the iframe over `postMessage` and the API reads `Authorization: Bearer`. - Set `FLUXFILES_ALLOWED_ORIGINS` (CORS) and `FLUXFILES_FRAME_ANCESTORS` (who may frame the UI) to your app's exact origins. If neither is set, any website can frame the UI. - Keep token lifetimes short (1 hour by default): a token can't be revoked before it expires except by rotating the secret. ## Developer docs (raw Markdown) - [README](https://raw.githubusercontent.com/thai-pc/fluxfiles/master/README.md): overview, quick start, embedding, adapters and security in brief - [Guide](https://raw.githubusercontent.com/thai-pc/fluxfiles/master/docs/guides/GUIDE.md): install, configure, embed (SDK options, events, token refresh), storage disks, multi-tenant setups, security - [Configuration reference](https://raw.githubusercontent.com/thai-pc/fluxfiles/master/docs/reference/CONFIG.md): every JWT claim and server environment variable (the single source of truth) - [API reference](https://raw.githubusercontent.com/thai-pc/fluxfiles/master/docs/guides/API.md): every HTTP route - [Deployment](https://raw.githubusercontent.com/thai-pc/fluxfiles/master/docs/guides/DEPLOYMENT.md): nginx and Apache, permissions, upload limits - [Migrating](https://raw.githubusercontent.com/thai-pc/fluxfiles/master/docs/guides/MIGRATING.md): from Responsive FileManager, RichFilemanager, KCFinder and others - [llms-full.txt](https://fluxfiles.thai-pc.com/llms-full.txt): this file plus the README, guide, configuration and API references and every adapter README, in one file ## Adapter READMEs (raw Markdown) - [JavaScript SDK (fluxfiles)](https://raw.githubusercontent.com/thai-pc/fluxfiles/master/packages/sdk/README.md) - [React (@fluxfiles/react)](https://raw.githubusercontent.com/thai-pc/fluxfiles/master/packages/react/README.md) - [Vue / Nuxt (@fluxfiles/vue)](https://raw.githubusercontent.com/thai-pc/fluxfiles/master/packages/vue/README.md) - [Laravel (fluxfiles/laravel)](https://raw.githubusercontent.com/thai-pc/fluxfiles/master/packages/laravel/README.md) - [WordPress plugin](https://raw.githubusercontent.com/thai-pc/fluxfiles/master/packages/wordpress/README.md) - [Node token SDK (@fluxfiles/node)](https://raw.githubusercontent.com/thai-pc/fluxfiles/master/packages/node/README.md) - [Python token SDK (fluxfiles-token)](https://raw.githubusercontent.com/thai-pc/fluxfiles/master/packages/python/README.md) - [MCP server (@fluxfiles/mcp)](https://raw.githubusercontent.com/thai-pc/fluxfiles/master/packages/mcp/README.md) - [CKEditor 4 (@fluxfiles/ckeditor4)](https://raw.githubusercontent.com/thai-pc/fluxfiles/master/packages/ckeditor4/README.md) - [CKEditor 5 (@fluxfiles/ckeditor5)](https://raw.githubusercontent.com/thai-pc/fluxfiles/master/packages/ckeditor5/README.md) - [TinyMCE (@fluxfiles/tinymce)](https://raw.githubusercontent.com/thai-pc/fluxfiles/master/packages/tinymce/README.md) - [Summernote (@fluxfiles/summernote)](https://raw.githubusercontent.com/thai-pc/fluxfiles/master/packages/summernote/README.md) - [Core package (fluxfiles/fluxfiles)](https://raw.githubusercontent.com/thai-pc/fluxfiles/master/packages/core/README.md) ## Product - [Home](https://fluxfiles.thai-pc.com/): overview, live demo and FAQ - [Product](https://fluxfiles.thai-pc.com/product/): features of the free core and the paid modules - [Solutions](https://fluxfiles.thai-pc.com/solutions/): use cases (agencies, SaaS, WordPress sites) - [WordPress](https://fluxfiles.thai-pc.com/wordpress/): the free WordPress plugin (a file manager under Media > FluxFiles, files on local disk, S3, R2 or SFTP, optional AI tags and alt text with your own provider key), install steps, a comparison with FileBird, WP Media Folder and WP Offload, a WordPress FAQ, and the FluxFiles Pro add-on for client upload portals - [Integrations](https://fluxfiles.thai-pc.com/integrations/): WordPress, Laravel, React, Vue, editors, SDKs - [Pricing](https://fluxfiles.thai-pc.com/pricing/): Free, Pro, Studio and Enterprise plans ## Try it - [Live file manager demo](https://fluxfiles-demo.thai-pc.com/): a sandbox that resets automatically - [Sample branded share link](https://fluxfiles-demo.thai-pc.com/try/share) - [Live upload portal](https://fluxfiles-demo.thai-pc.com/try/portal) - [Sample document request with a checklist](https://fluxfiles-demo.thai-pc.com/try/request) ## Developers - [Documentation](https://fluxfiles.thai-pc.com/docs/): installation and configuration - [Source code on GitHub](https://github.com/thai-pc/fluxfiles): MIT core, adapters, SDKs and changelog - [WordPress plugin releases](https://github.com/thai-pc/fluxfiles/releases?q=wordpress-v): the free plugin ZIP - [FluxFiles Pro download](https://fluxfiles.thai-pc.com/download/): customers paste their licence key to get the FluxFiles Pro WordPress add-on (the free plugin is on GitHub releases) - [Changelog](https://raw.githubusercontent.com/thai-pc/fluxfiles/master/CHANGELOG.md): every release (large, about 400 KB) ## Contact and support - E-mail: fluxfiles@thai-pc.com (licence e-mails come from fluxfiles-license@thai-pc.com) - [Sponsor the open-source project](https://buy.polar.sh/polar_cl_77JypT0hYYpmpYPCe8R8iUqV4X0jUP4hAUYq33YRCrM): pay what you want from $3, one-time or monthly; a donation, no licence - [Manage or cancel a subscription](https://polar.sh/flux-family/portal) ## Optional - [Privacy policy](https://fluxfiles.thai-pc.com/privacy/) - [Terms](https://fluxfiles.thai-pc.com/terms/)