Skip to content

armgit / kokon

Public Imported from GitHub
0

Edit photos by describing the change, on your own GPU. A free, open-source alternative to Nano Banana and ChatGPT image editing: photos stay on your computer, no daily limit. One installer for Windows, Mac and Linux sets up the best open model (Qwen-Image 2.1). MCP server for AI agents.

5.6 KB
Raw Blame
Kokon
Copyright 2026 Gabriele Lozupone

This product is licensed under the GNU Affero General Public License, version 3 only
(AGPL-3.0-only, see LICENSE). Commercial licenses for uses the AGPL does not allow are
available from the copyright holder (see the README).

Model weights that Kokon downloads at setup are not part of this product; they come from
their authors under their own licenses (see the README). The upscaler model included in the
installer keeps its own license too (CC BY 4.0, see below).


Third-party software included in the Kokon installer
----------------------------------------------------

- Tauri and its plugins (https://tauri.app), Apache-2.0 OR MIT.
- React and React DOM (https://react.dev), MIT.
- Lucide icons, lucide-react (https://lucide.dev), ISC.
- Inter typeface by The Inter Project Authors (https://github.com/rsms/inter),
  SIL Open Font License 1.1, through @fontsource-variable/inter.
- SQLite (https://sqlite.org), public domain, built into the gallery through rusqlite.
- Node.js runtime (https://nodejs.org), embedded in kokon-mcp as a single executable
  application; see https://github.com/nodejs/node/blob/main/LICENSE.
- Model Context Protocol TypeScript SDK (https://github.com/modelcontextprotocol/typescript-sdk)
  and Zod (https://zod.dev), MIT, bundled in kokon-mcp.
- Other Rust crates and npm packages, each under its own license as listed in Cargo.lock,
  package-lock.json and mcp/package-lock.json.
- The Mac engine (engine-mac/) uses techniques from Siliconed by gwenn-ha
  (https://github.com/gwenn-ha-dev/Siliconed), Apache-2.0: the Neural Engine matrix product as a
  Core ML program written at run time (including the layout of its coremldata.bin), and the GPU,
  AMX and Neural Engine sharing one product by rows.
- 4xNomos2_hq_mosr upscaler model by Philip Hofmann (Phhofm), from
  https://github.com/Phhofm/models/releases/tag/4xNomos2_hq_mosr, licensed under the
  Creative Commons Attribution 4.0 International License (CC BY 4.0,
  https://creativecommons.org/licenses/by/4.0/). Included unmodified; Setup downloads the same
  file from a mirror (https://github.com/GabrieleLozupone/kokon/releases/tag/models-1) if the
  installed copy is missing.
- TrustMark by Adobe (https://github.com/adobe/trustmark), MIT: the P variant's encoder and
  decoder models (encoder_P.onnx, decoder_P.onnx), included unmodified for the AI watermark,
  and its BCH error-correction code (crates/qls-core/src/watermark/bch.rs, from the Rust
  implementation), with an image pipeline ported from its Python reference:

    MIT License

    Copyright (c) 2024 Adobe

    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all
    copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    SOFTWARE.


Downloaded by the setup screen (not part of this product)
---------------------------------------------------------

Every file is pinned by URL, size and SHA-256 in crates/qls-core/src/catalog.rs.

- stable-diffusion.cpp by leejet (https://github.com/leejet/stable-diffusion.cpp), MIT:
  official CUDA 12, Vulkan or Metal build of release master-964-1d0a58a
  (https://github.com/leejet/stable-diffusion.cpp/releases/tag/master-964-1d0a58a), which
  includes the MoSR upscaler support contributed by Kokon (pull request #2128). A newer
  official release listed in engine.json of this repository may replace it.
- ggml by the ggml authors (https://github.com/ggml-org/ggml), MIT, included in the
  stable-diffusion.cpp builds.
- NVIDIA CUDA 12 runtime and cuBLAS DLLs (NVIDIA cards only), redistributed in the
  stable-diffusion.cpp release; see https://docs.nvidia.com/cuda/eula/.
- Qwen-Image 2.1 Turbo by the Qwen team (https://huggingface.co/Qwen/Qwen-Image-2.1-Turbo),
  Qwen Research License (research and evaluation only, no commercial use):
  "Qwen is licensed under the Qwen RESEARCH LICENSE AGREEMENT, Copyright (c) 2026 Hangzhou
  Tongyi Laboratory Technology Co., Ltd. All Rights Reserved." Downloaded as Unsloth's GGUF
  (https://huggingface.co/unsloth/Qwen-Image-2.1-Turbo-GGUF); installs from Kokon 0.11.0 or earlier may
  still use the GGUF conversion by DogukanUrker (https://huggingface.co/DogukanUrker/Qwen-Image-2.1-Turbo-GGUF).
- Qwen-Image 2.1 VAE, from https://huggingface.co/Comfy-Org/Qwen-Image-2.1; see
  https://huggingface.co/Qwen/Qwen-Image-2.1 for the terms.
- Qwen3-VL 8B Instruct text encoder and vision projector by the Qwen team, from
  https://huggingface.co/Qwen/Qwen3-VL-8B-Instruct-GGUF; see that page for the terms.
- 4x_NMKD-Superscale-SP_178000_G upscaler by Nmkd (the default), WTFPL, from
  https://huggingface.co/uwg/upscaler.
- 4x-UltraSharp upscaler by Kim2091 (optional, downloaded from Settings), CC BY-NC-SA 4.0
  (non-commercial), from https://huggingface.co/uwg/upscaler.